body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #f8fafc;
}

code {
  font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
    monospace;
}

/* Global table behavior: ensure rows start at the top without changing container sizing */
table tbody {
  display: table-row-group !important;
  vertical-align: top !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}
/* Ensure first row hugs the top in all tables without changing container layout */
table { border-collapse: collapse !important; }
table, thead, tbody, tr { margin-top: 0 !important; }
table tbody tr:first-child { margin-top: 0 !important; }
table tbody, table tbody tr, table tbody td, table tbody th { vertical-align: top !important; }
/* Remove any spacer pseudo-element some libs insert */
table tbody::before { content: none !important; display: none !important; }
table tbody tr {
  height: auto !important;
  min-height: 0 !important;
}

:root {
  --toastify-color-light: #fff;
  --toastify-color-dark: #121212;
  --toastify-color-info: #3498db;
  --toastify-color-success: #07bc0c;
  --toastify-color-warning: #f1c40f;
  --toastify-color-error: #e74c3c;
  --toastify-color-transparent: rgba(255, 255, 255, 0.7);
  --toastify-icon-color-info: var(--toastify-color-info);
  --toastify-icon-color-success: var(--toastify-color-success);
  --toastify-icon-color-warning: var(--toastify-color-warning);
  --toastify-icon-color-error: var(--toastify-color-error);
  --toastify-toast-width: 320px;
  --toastify-toast-offset: 16px;
  --toastify-toast-top: max(var(--toastify-toast-offset), env(safe-area-inset-top));
  --toastify-toast-right: max(var(--toastify-toast-offset), env(safe-area-inset-right));
  --toastify-toast-left: max(var(--toastify-toast-offset), env(safe-area-inset-left));
  --toastify-toast-bottom: max(var(--toastify-toast-offset), env(safe-area-inset-bottom));
  --toastify-toast-background: #fff;
  --toastify-toast-min-height: 64px;
  --toastify-toast-max-height: 800px;
  --toastify-toast-bd-radius: 6px;
  --toastify-font-family: sans-serif;
  --toastify-z-index: 9999;
  --toastify-text-color-light: #757575;
  --toastify-text-color-dark: #fff;
  --toastify-text-color-info: #fff;
  --toastify-text-color-success: #fff;
  --toastify-text-color-warning: #fff;
  --toastify-text-color-error: #fff;
  --toastify-spinner-color: #616161;
  --toastify-spinner-color-empty-area: #e0e0e0;
  --toastify-color-progress-light: linear-gradient(
    to right,
    #4cd964,
    #5ac8fa,
    #007aff,
    #34aadc,
    #5856d6,
    #ff2d55
  );
  --toastify-color-progress-dark: #bb86fc;
  --toastify-color-progress-info: var(--toastify-color-info);
  --toastify-color-progress-success: var(--toastify-color-success);
  --toastify-color-progress-warning: var(--toastify-color-warning);
  --toastify-color-progress-error: var(--toastify-color-error);
  --toastify-color-progress-bgo: 0.2;
}

.Toastify__toast-container {
  z-index: 9999;
  z-index: var(--toastify-z-index);
  -webkit-transform: translate3d(0, 0, 9999);
  -webkit-transform: translate3d(0, 0, var(--toastify-z-index));
  position: fixed;
  padding: 4px;
  width: 320px;
  width: var(--toastify-toast-width);
  box-sizing: border-box;
  color: #fff;
}
.Toastify__toast-container--top-left {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--top-center {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  left: 50%;
  transform: translateX(-50%);
}
.Toastify__toast-container--top-right {
  top: max(16px, env(safe-area-inset-top));
  top: var(--toastify-toast-top);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
}
.Toastify__toast-container--bottom-left {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: max(16px, env(safe-area-inset-left));
  left: var(--toastify-toast-left);
}
.Toastify__toast-container--bottom-center {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  left: 50%;
  transform: translateX(-50%);
}
.Toastify__toast-container--bottom-right {
  bottom: max(16px, env(safe-area-inset-bottom));
  bottom: var(--toastify-toast-bottom);
  right: max(16px, env(safe-area-inset-right));
  right: var(--toastify-toast-right);
}

@media only screen and (max-width : 480px) {
  .Toastify__toast-container {
    width: 100vw;
    padding: 0;
    left: env(safe-area-inset-left);
    margin: 0;
  }
  .Toastify__toast-container--top-left, .Toastify__toast-container--top-center, .Toastify__toast-container--top-right {
    top: env(safe-area-inset-top);
    transform: translateX(0);
  }
  .Toastify__toast-container--bottom-left, .Toastify__toast-container--bottom-center, .Toastify__toast-container--bottom-right {
    bottom: env(safe-area-inset-bottom);
    transform: translateX(0);
  }
  .Toastify__toast-container--rtl {
    right: env(safe-area-inset-right);
    left: auto;
    left: initial;
  }
}
.Toastify__toast {
  --y: 0;
  position: relative;
  touch-action: none;
  min-height: 64px;
  min-height: var(--toastify-toast-min-height);
  box-sizing: border-box;
  margin-bottom: 1rem;
  padding: 8px;
  border-radius: 6px;
  border-radius: var(--toastify-toast-bd-radius);
  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  max-height: 800px;
  max-height: var(--toastify-toast-max-height);
  font-family: sans-serif;
  font-family: var(--toastify-font-family);
  cursor: default;
  direction: ltr;
  /* webkit only issue #791 */
  z-index: 0;
  overflow: hidden;
}
.Toastify__toast--stacked {
  position: absolute;
  width: 100%;
  transform: translate3d(0, var(--y), 0) scale(var(--s));
  transition: transform 0.3s;
}
.Toastify__toast--stacked[data-collapsed] .Toastify__toast-body, .Toastify__toast--stacked[data-collapsed] .Toastify__close-button {
  transition: opacity 0.1s;
}
.Toastify__toast--stacked[data-collapsed=false] {
  overflow: visible;
}
.Toastify__toast--stacked[data-collapsed=true]:not(:last-child) > * {
  opacity: 0;
}
.Toastify__toast--stacked:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--g) * 1px);
  bottom: 100%;
}
.Toastify__toast--stacked[data-pos=top] {
  top: 0;
}
.Toastify__toast--stacked[data-pos=bot] {
  bottom: 0;
}
.Toastify__toast--stacked[data-pos=bot].Toastify__toast--stacked:before {
  transform-origin: top;
}
.Toastify__toast--stacked[data-pos=top].Toastify__toast--stacked:before {
  transform-origin: bottom;
}
.Toastify__toast--stacked:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  transform: scaleY(3);
  z-index: -1;
}
.Toastify__toast--rtl {
  direction: rtl;
}
.Toastify__toast--close-on-click {
  cursor: pointer;
}
.Toastify__toast-body {
  margin: auto 0;
  flex: 1 1 auto;
  padding: 6px;
  display: flex;
  align-items: center;
}
.Toastify__toast-body > div:last-child {
  word-break: break-word;
  flex: 1 1;
}
.Toastify__toast-icon {
  -webkit-margin-end: 10px;
          margin-inline-end: 10px;
  width: 20px;
  flex-shrink: 0;
  display: flex;
}

.Toastify--animate {
  animation-fill-mode: both;
  animation-duration: 0.5s;
}

.Toastify--animate-icon {
  animation-fill-mode: both;
  animation-duration: 0.3s;
}

@media only screen and (max-width : 480px) {
  .Toastify__toast {
    margin-bottom: 0;
    border-radius: 0;
  }
}
.Toastify__toast-theme--dark {
  background: #121212;
  background: var(--toastify-color-dark);
  color: #fff;
  color: var(--toastify-text-color-dark);
}
.Toastify__toast-theme--light {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}
.Toastify__toast-theme--colored.Toastify__toast--default {
  background: #fff;
  background: var(--toastify-color-light);
  color: #757575;
  color: var(--toastify-text-color-light);
}
.Toastify__toast-theme--colored.Toastify__toast--info {
  color: #fff;
  color: var(--toastify-text-color-info);
  background: #3498db;
  background: var(--toastify-color-info);
}
.Toastify__toast-theme--colored.Toastify__toast--success {
  color: #fff;
  color: var(--toastify-text-color-success);
  background: #07bc0c;
  background: var(--toastify-color-success);
}
.Toastify__toast-theme--colored.Toastify__toast--warning {
  color: #fff;
  color: var(--toastify-text-color-warning);
  background: #f1c40f;
  background: var(--toastify-color-warning);
}
.Toastify__toast-theme--colored.Toastify__toast--error {
  color: #fff;
  color: var(--toastify-text-color-error);
  background: #e74c3c;
  background: var(--toastify-color-error);
}

.Toastify__progress-bar-theme--light {
  background: linear-gradient(
    to right,
    #4cd964,
    #5ac8fa,
    #007aff,
    #34aadc,
    #5856d6,
    #ff2d55
  );
  background: var(--toastify-color-progress-light);
}
.Toastify__progress-bar-theme--dark {
  background: #bb86fc;
  background: var(--toastify-color-progress-dark);
}
.Toastify__progress-bar--info {
  background: #3498db;
  background: var(--toastify-color-progress-info);
}
.Toastify__progress-bar--success {
  background: #07bc0c;
  background: var(--toastify-color-progress-success);
}
.Toastify__progress-bar--warning {
  background: #f1c40f;
  background: var(--toastify-color-progress-warning);
}
.Toastify__progress-bar--error {
  background: #e74c3c;
  background: var(--toastify-color-progress-error);
}
.Toastify__progress-bar-theme--colored.Toastify__progress-bar--info, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--success, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--warning, .Toastify__progress-bar-theme--colored.Toastify__progress-bar--error {
  background: rgba(255, 255, 255, 0.7);
  background: var(--toastify-color-transparent);
}

.Toastify__close-button {
  color: #fff;
  background: transparent;
  outline: none;
  border: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.3s ease;
  align-self: flex-start;
  z-index: 1;
}
.Toastify__close-button--light {
  color: #000;
  opacity: 0.3;
}
.Toastify__close-button > svg {
  fill: currentColor;
  height: 16px;
  width: 14px;
}
.Toastify__close-button:hover, .Toastify__close-button:focus {
  opacity: 1;
}

@keyframes Toastify__trackProgress {
  0% {
    transform: scaleX(1);
  }
  100% {
    transform: scaleX(0);
  }
}
.Toastify__progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  z-index: var(--toastify-z-index);
  opacity: 0.7;
  transform-origin: left;
  border-bottom-left-radius: 6px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
}
.Toastify__progress-bar--animated {
  animation: Toastify__trackProgress linear 1 forwards;
}
.Toastify__progress-bar--controlled {
  transition: transform 0.2s;
}
.Toastify__progress-bar--rtl {
  right: 0;
  left: auto;
  left: initial;
  transform-origin: right;
  border-bottom-left-radius: 0;
  border-bottom-left-radius: initial;
  border-bottom-right-radius: 6px;
  border-bottom-right-radius: var(--toastify-toast-bd-radius);
}
.Toastify__progress-bar--wrp {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 5px;
  border-bottom-left-radius: 6px;
  border-bottom-left-radius: var(--toastify-toast-bd-radius);
}
.Toastify__progress-bar--wrp[data-hidden=true] {
  opacity: 0;
}
.Toastify__progress-bar--bg {
  opacity: 0.2;
  opacity: var(--toastify-color-progress-bgo);
  width: 100%;
  height: 100%;
}

.Toastify__spinner {
  width: 20px;
  height: 20px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: #e0e0e0;
  border-color: var(--toastify-spinner-color-empty-area);
  border-right-color: #616161;
  border-right-color: var(--toastify-spinner-color);
  animation: Toastify__spin 0.65s linear infinite;
}

@keyframes Toastify__bounceInRight {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(-25px, 0, 0);
  }
  75% {
    transform: translate3d(10px, 0, 0);
  }
  90% {
    transform: translate3d(-5px, 0, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutRight {
  20% {
    opacity: 1;
    transform: translate3d(-20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(2000px, var(--y), 0);
  }
}
@keyframes Toastify__bounceInLeft {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(-3000px, 0, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(25px, 0, 0);
  }
  75% {
    transform: translate3d(-10px, 0, 0);
  }
  90% {
    transform: translate3d(5px, 0, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutLeft {
  20% {
    opacity: 1;
    transform: translate3d(20px, var(--y), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-2000px, var(--y), 0);
  }
}
@keyframes Toastify__bounceInUp {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  from {
    opacity: 0;
    transform: translate3d(0, 3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, -20px, 0);
  }
  75% {
    transform: translate3d(0, 10px, 0);
  }
  90% {
    transform: translate3d(0, -5px, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}
@keyframes Toastify__bounceOutUp {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%, 45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, -2000px, 0);
  }
}
@keyframes Toastify__bounceInDown {
  from, 60%, 75%, 90%, to {
    animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
  }
  0% {
    opacity: 0;
    transform: translate3d(0, -3000px, 0);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 25px, 0);
  }
  75% {
    transform: translate3d(0, -10px, 0);
  }
  90% {
    transform: translate3d(0, 5px, 0);
  }
  to {
    transform: none;
  }
}
@keyframes Toastify__bounceOutDown {
  20% {
    transform: translate3d(0, calc(var(--y) - 10px), 0);
  }
  40%, 45% {
    opacity: 1;
    transform: translate3d(0, calc(var(--y) + 20px), 0);
  }
  to {
    opacity: 0;
    transform: translate3d(0, 2000px, 0);
  }
}
.Toastify__bounce-enter--top-left, .Toastify__bounce-enter--bottom-left {
  animation-name: Toastify__bounceInLeft;
}
.Toastify__bounce-enter--top-right, .Toastify__bounce-enter--bottom-right {
  animation-name: Toastify__bounceInRight;
}
.Toastify__bounce-enter--top-center {
  animation-name: Toastify__bounceInDown;
}
.Toastify__bounce-enter--bottom-center {
  animation-name: Toastify__bounceInUp;
}

.Toastify__bounce-exit--top-left, .Toastify__bounce-exit--bottom-left {
  animation-name: Toastify__bounceOutLeft;
}
.Toastify__bounce-exit--top-right, .Toastify__bounce-exit--bottom-right {
  animation-name: Toastify__bounceOutRight;
}
.Toastify__bounce-exit--top-center {
  animation-name: Toastify__bounceOutUp;
}
.Toastify__bounce-exit--bottom-center {
  animation-name: Toastify__bounceOutDown;
}

@keyframes Toastify__zoomIn {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}
@keyframes Toastify__zoomOut {
  from {
    opacity: 1;
  }
  50% {
    opacity: 0;
    transform: translate3d(0, var(--y), 0) scale3d(0.3, 0.3, 0.3);
  }
  to {
    opacity: 0;
  }
}
.Toastify__zoom-enter {
  animation-name: Toastify__zoomIn;
}

.Toastify__zoom-exit {
  animation-name: Toastify__zoomOut;
}

@keyframes Toastify__flipIn {
  from {
    transform: perspective(400px) rotate3d(1, 0, 0, 90deg);
    animation-timing-function: ease-in;
    opacity: 0;
  }
  40% {
    transform: perspective(400px) rotate3d(1, 0, 0, -20deg);
    animation-timing-function: ease-in;
  }
  60% {
    transform: perspective(400px) rotate3d(1, 0, 0, 10deg);
    opacity: 1;
  }
  80% {
    transform: perspective(400px) rotate3d(1, 0, 0, -5deg);
  }
  to {
    transform: perspective(400px);
  }
}
@keyframes Toastify__flipOut {
  from {
    transform: translate3d(0, var(--y), 0) perspective(400px);
  }
  30% {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, -20deg);
    opacity: 1;
  }
  to {
    transform: translate3d(0, var(--y), 0) perspective(400px) rotate3d(1, 0, 0, 90deg);
    opacity: 0;
  }
}
.Toastify__flip-enter {
  animation-name: Toastify__flipIn;
}

.Toastify__flip-exit {
  animation-name: Toastify__flipOut;
}

@keyframes Toastify__slideInRight {
  from {
    transform: translate3d(110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}
@keyframes Toastify__slideInLeft {
  from {
    transform: translate3d(-110%, 0, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}
@keyframes Toastify__slideInUp {
  from {
    transform: translate3d(0, 110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}
@keyframes Toastify__slideInDown {
  from {
    transform: translate3d(0, -110%, 0);
    visibility: visible;
  }
  to {
    transform: translate3d(0, var(--y), 0);
  }
}
@keyframes Toastify__slideOutRight {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(110%, var(--y), 0);
  }
}
@keyframes Toastify__slideOutLeft {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(-110%, var(--y), 0);
  }
}
@keyframes Toastify__slideOutDown {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, 500px, 0);
  }
}
@keyframes Toastify__slideOutUp {
  from {
    transform: translate3d(0, var(--y), 0);
  }
  to {
    visibility: hidden;
    transform: translate3d(0, -500px, 0);
  }
}
.Toastify__slide-enter--top-left, .Toastify__slide-enter--bottom-left {
  animation-name: Toastify__slideInLeft;
}
.Toastify__slide-enter--top-right, .Toastify__slide-enter--bottom-right {
  animation-name: Toastify__slideInRight;
}
.Toastify__slide-enter--top-center {
  animation-name: Toastify__slideInDown;
}
.Toastify__slide-enter--bottom-center {
  animation-name: Toastify__slideInUp;
}

.Toastify__slide-exit--top-left, .Toastify__slide-exit--bottom-left {
  animation-name: Toastify__slideOutLeft;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}
.Toastify__slide-exit--top-right, .Toastify__slide-exit--bottom-right {
  animation-name: Toastify__slideOutRight;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}
.Toastify__slide-exit--top-center {
  animation-name: Toastify__slideOutUp;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}
.Toastify__slide-exit--bottom-center {
  animation-name: Toastify__slideOutDown;
  animation-timing-function: ease-in;
  animation-duration: 0.3s;
}

@keyframes Toastify__spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}


.App {
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

:root {
  --primary-color: #1980e5;
  --text-color: #334151;
  --background-color: #ffffff;
  --input-background: #f0f2f5;
  --input-border: #cccfd3;
}

body {
  background-color: #ffffff;
  background-color: var(--background-color);
  font-family: 'Inter', sans-serif;
  color: #334151;
  color: var(--text-color);
  margin: 0;
  padding: 0;
}

.main-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: transparent;
  max-width: 100%;
  overflow-x: hidden;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background-color: transparent;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.logo {
  height: 40px;
  margin-left: 8px;
}

.header-right {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.new-to-cloud-safe {
  margin-right: 10px;
  color: #334151;
  color: var(--text-color);
  font-size: 14px;
}

.create-account-link {
  color: #1980e5;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.login-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 0 20px;
}

.depth-frame {
  background-color: #ffffff;
  background-color: var(--background-color);
  border-radius: 20px;
  padding: 40px;
  width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.log-in {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #334151;
  color: var(--text-color);
  text-align: left;
}

.welcome-back {
  font-size: 16px;
  margin-bottom: 30px;
  color: #637587;
  text-align: left;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #334151;
  color: var(--text-color);
  font-size: 16px;
  text-align: left;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 16px;
  color: #637587;
  font-size: 16px;
  pointer-events: none;
  z-index: 2;
  padding: 0;               /* override global svg padding */
  background: transparent;  /* override global svg background */
  border: 0;                /* override global svg border */
}

/* Ensure wrapper doesn't add its own border or background from other pages */
.login-content .input-with-icon {
  border: none !important;
  background: transparent !important;
  overflow: visible !important;
}

.input-with-icon .input-field {
  width: 100%;
  height: 48px;
  padding: 0 50px;
  border: 1px solid #cccfd3;
  border: 1px solid var(--input-border);
  border-radius: 8px;
  font-size: 16px;
  background-color: #f0f2f5;
  background-color: var(--input-background);
  color: #334151;
  color: var(--text-color);
  box-sizing: border-box;
}

.input-with-icon .input-field:focus {
  border-color: #1980e5;
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 1px #1980e5;
  box-shadow: 0 0 0 1px var(--primary-color);
}

.input-with-icon .input-field::placeholder {
  color: #637587;
  opacity: 0.7;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.remember-me {
  display: flex;
  align-items: center;
}

.remember-me input {
  margin-right: 8px;
}

.forgot-password {
  color: #1980e5;
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
}

.sign-in-button {
  background-color: #1980e5;
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sign-in-button:hover {
  background-color: #1565c0;
}

.terms-privacy {
  font-size: 14px;
  color: #637587;
  text-align: center;
  margin-top: 20px;
}

.register-link {
  color: #1980e5;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.marketing-consent, .terms-agreement {
  font-size: 12px;
  color: #637587;
  text-align: center;
  margin-top: 20px;
}

.terms-agreement a {
  color: #1980e5;
  color: var(--primary-color);
  text-decoration: none;
}

.login-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.login-link-text {
  color: #1980e5;
  color: var(--primary-color);
  text-decoration: none;
  margin-left: 5px;
  font-weight: 500;
}

.input-with-icon .toggle-password {
  position: absolute !important;
  right: 31px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: none !important;
  border: none !important;
  color: #637587 !important;
  cursor: pointer !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  z-index: 2 !important;
  height: 24px !important;
  width: 24px !important;
  justify-content: center !important;
}

.captcha-container {
  margin-bottom: 20px;
  display: flex;
  justify-content: center;
}

.input-field.error {
  border-color: #ff3b30;
}

.error-message {
  color: #ff3b30;
  font-size: 12px;
  margin-top: 4px;
}

/* Loading state */
.sign-in-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}
.coming-soon-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.coming-soon-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
  position: relative;
  animation: slideUp 0.3s ease-out;
  padding: 32px;
  box-sizing: border-box;
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.coming-soon-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s ease;
  width: 32px;
  height: 32px;
}

.coming-soon-modal-close:hover {
  background-color: #f1f5f9;
  color: #0c437c;
}

.coming-soon-modal-content {
  text-align: center;
}

.coming-soon-modal-title {
  font-size: 24px;
  font-weight: 700;
  color: #0c437c;
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.coming-soon-modal-message {
  font-size: 16px;
  color: #64748b;
  margin: 0;
  line-height: 1.5;
  font-weight: 400;
}

@media (max-width: 768px) {
  .coming-soon-modal {
    padding: 24px;
    max-width: 90%;
  }

  .coming-soon-modal-title {
    font-size: 20px;
  }

  .coming-soon-modal-message {
    font-size: 14px;
  }
}


.main-container {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--background-color);
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background-color: transparent;
}

.logo {
  height: 40px;
}

.header-right {
  display: flex;
  align-items: center;
}

.new-to-all-safe {
  margin-right: 10px;
  color: var(--text-color);
  font-size: 14px;
}

.create-account-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.login-content {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-grow: 1;
  padding: 32px;
}

.depth-frame {
  background-color: var(--background-color);
  border-radius: 20px;
  padding: 40px;
  width: 500px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.log-in {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
  text-align: left;
}

.welcome-back {
  font-size: 16px;
  margin-bottom: 30px;
  color: #637587;
  text-align: left;
}

.input-group {
  margin-bottom: 20px;
}

.input-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-color);
  font-size: 16px;
  text-align: left;
}

.input-field {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--input-border);
  border-radius: 15px;
  font-size: 16px;
  background-color: var(--input-background);
  color: var(--text-color);
}

.input-field:focus {
  border-color: var(--primary-color);
  outline: none;
}

select.input-field {
  -webkit-appearance: none;
          appearance: none;
  padding-right: 40px;
  position: relative;
}

select.input-field::after {
  content: "▼";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #637587;
  font-size: 12px;
}

.sign-in-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.sign-in-button:hover {
  background-color: #1565c0;
}

.error-message {
  color: #ff3b30;
  margin-bottom: 15px;
  font-size: 14px;
  text-align: left;
}

.terms-agreement {
  font-size: 12px;
  color: #637587;
  text-align: center;
  margin-top: 20px;
}

.terms-agreement a {
  color: var(--primary-color);
  text-decoration: none;
}

.recaptcha-container {
  margin: 20px 0;
  display: flex;
  justify-content: center;
}

/* Add this if you want to style the reCAPTCHA iframe container */
.g-recaptcha {
  transform-origin: left top;
}

.input-field.error {
    border-color: #ff3b30;
}

.error-text {
    color: #ff3b30;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.submit-button:disabled {
    background-color: #cccccc;
    cursor: not-allowed;
}

/* Add loading state styles */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.main-container {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #f8fafc;
  overflow-x: hidden;
  box-sizing: border-box;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
  min-height: 80px; /* Ensure minimum height */
  max-height: 80px; /* Ensure maximum height */ /* Force hardware acceleration */
  transform: translateZ(0);
}

.header-left {
  display: flex;
  align-items: center;
}

.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.all-safe {
  width: 155px;
  height: 40px;
  margin-right: 40px;
}

.logo-image {
  display: none;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: #637587;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #1A80E5;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #eff2f4;
  border-radius: 12px;
  transition: background-color 0.3s ease;
}

.icon:hover {
  background-color: #1980e5;
}

.icon i {
  color: #000000;
  transition: color 0.3s ease;
}

.icon:hover i {
  color: #ffffff;
}

.user-avatar-container {
  position: relative;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: #1A80E5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-avatar:hover {
  box-shadow: 0 0 0 2px #1A80E5;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1000;
  min-width: 150px;
}

.user-menu a {
  display: block;
  padding: 12px 20px;
  color: #334151;
  text-decoration: none;
  font-family: Inter, sans-serif;
  font-size: 14px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.user-menu a:hover {
  background-color: #1A80E5;
  color: white;
}

.dashboard-content {
  padding: 24px 40px;
  margin-top: 120px; /* Use margin-top instead of padding-top for fixed header spacing */
  width: 100%;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  background: #f8fafc;
}

/* Ensure all main content sections have consistent width */
.dashboard-content > * {
  width: 100%;
}

.dashboard-content .dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: transparent;
  padding: 0;
  margin-bottom: 32px;
  box-shadow: none;
}

.dashboard-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.dashboard-title {
  font-size: 2rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 0.25rem;
  text-align: left;
}

.dashboard-subtitle {
  font-size: 1rem;
  color: #7a8593;
  margin: 0;
  text-align: left;
}

.add-property-btn {
  background: #1A80E5;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 8px rgba(26,128,229,0.08);
}
.add-property-btn:hover {
  background: #176fc1;
}

.search-section {
  width: 100% !important;
  margin: 20px 0;
  box-sizing: border-box;
}

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  background: #fff;
  border: 2px solid #e5e5e5 !important;
  border-radius: 8px;
  padding: 12px 16px;
  transition: all 0.2s ease;
  gap: 12px;
  width: 100% !important;
  flex: 1 1 !important;
  box-sizing: border-box;
}

.search-bar:hover,
.search-bar:focus-within {
  background: #fff;
  border: 2px solid #1A80E5 !important;
  box-shadow: 0 0 0 3px rgba(26, 128, 229, 0.1);
}

.search-icon {
  color: #757575;
  font-size: 18px;
  flex-shrink: 0;
  margin-right: 12px;
  order: -1; /* Ensure icon comes first in flexbox */
}

.search-input-container {
  display: flex;
  align-items: center;
  flex: 1 1 !important;
  gap: 8px;
  order: 1; /* Ensure input container comes after icon */
  width: 100% !important;
  box-sizing: border-box;
}

.search-input {
  flex: 1 1 !important;
  border: none !important;
  outline: none !important;
  font-size: 0.95rem;
  color: #333;
  background: transparent;
  padding: 0;
  min-width: 0;
  width: 100% !important;
  box-sizing: border-box;
}

.search-input::placeholder {
  color: #666;
}

.clear-search {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  color: #757575;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
  flex-shrink: 0;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  position: absolute;
  right: 25px;
  top: 50%;
  transform: translateY(-50%);
}

.clear-search:hover {
  color: #f44336;
}

.overview-section {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.overview-title {
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #334151;
  margin-bottom: 16px;
}

.overview-stats {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.stat-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 16px;
  flex: 1 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.stat-title {
  font-size: 14px;
  color: #637587;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 24px;
  font-weight: 600;
  color: #334151;
}

.properties-overview {
  margin-top: 32px;
}

.properties-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(220px, 1fr)) !important;
  grid-gap: 20px;
  gap: 20px;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  align-items: stretch;
}

/* Ensure property cards don't have conflicting margins */
.properties-grid .property-card {
  margin: 0 !important;
  box-sizing: border-box;
}

/* Property card styles moved to PropertyCard.css to avoid conflicts */

.property-delete-icon {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.property-delete-icon:hover {
  background: rgba(255, 255, 255, 1);
  transform: scale(1.1);
}

.property-delete-icon i {
  color: #ff4444;
  font-size: 16px;
}

.delete-confirmation-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  width: 400px;
  max-width: 90%;
  text-align: center;
}

.delete-confirmation-modal h3 {
  font-family: Inter, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.delete-confirmation-modal p {
  font-family: Inter, sans-serif;
  font-size: 14px;
  color: #637587;
  margin-bottom: 20px;
}

.delete-confirmation-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.delete-confirmation-actions button {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.delete-confirm-btn {
  background-color: #E53935;
  color: white;
}

.delete-confirm-btn:hover {
  background-color: #C62828;
}

.delete-cancel-btn {
  background-color: #f0f0f5;
  color: #333;
}

.delete-cancel-btn:hover {
  background-color: #e0e0e0;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    height: auto;
    padding: 12px;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
  }

  .nav-links {
    margin-right: 0;
    margin-bottom: 12px;
  }
}

.logo {
  height: 40px;
  margin-right: 40px;
}

.property-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

/* Adjust the box height to accommodate the image */
.overview-boxes .box {
  min-height: 300px; /* Adjust this value based on your needs */
}

/* Make sure the right-side content flows properly */
.right-side {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.box-topic {
  margin-top: 10px;
}

/* Add this if you want to ensure the placeholder image looks correct */
img[src*="placeholder.png"] {
  object-fit: cover;
  background-color: #f5f5f5;
}

/* Add smooth transitions */
.property-card * {
  transition: all 0.2s ease;
}

.map-preview {
  width: 100%;
  height: 200px;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
}

.validation-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  color: var(--success-color);
}

.loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
}

.recent-properties {
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  margin: 24px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.recent-properties-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.recent-properties-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.recent-properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  gap: 20px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.recent-property-card {
  display: flex;
  align-items: center;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border: 1px solid #f1f3f4;
  min-width: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.recent-property-card:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.recent-property-image {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  margin-right: 16px;
}

.recent-property-info {
  flex: 1 1;
  min-width: 0;
  overflow: hidden;
}

.recent-property-name {
  font-size: 15px;
  font-weight: 500;
  color: #333;
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-property-address {
  font-size: 13px;
  color: #666;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* New styles for enhanced dashboard */
.welcome-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.welcome-section h1 {
  font-size: 1.8rem;
  margin-bottom: 0.5rem;
}

.add-property-floating-btn {
  background: var(--primary-blue);
}

/* Export Actions */
.search-container {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 24px;
  position: relative;
}

.search-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Removed conflicting search-bar rule that was overriding flexbox layout */

.export-actions {
  display: flex;
  gap: 8px;
}

.export-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #4a5568;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.export-btn:hover {
  background: #f7fafc;
  border-color: #cbd5e0;
  transform: translateY(-1px);
}

.export-btn:active {
  transform: translateY(0);
}

.export-btn svg {
  font-size: 0.9rem;
}

.smart-notifications {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 2rem;
}

.notification-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem;
  background: white;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.compliance-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.summary-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  text-align: center;
}

.summary-card h3 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.actions-panel {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #eee;
}

/* Color variations */
.red { border-left: 4px solid #dc3545; }
.orange { border-left: 4px solid #fd7e14; }
.green { border-left: 4px solid #28a745; }
.blue { border-left: 4px solid #007bff; }

/* Responsive adjustments */
@media (max-width: 768px) {
  .compliance-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .welcome-section {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
}

.search-bar-full-width {
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
  border: 2px solid #e5e5e5 !important;
  background: #fff !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 1 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 12px 16px !important;
}

/* Make search section align with dashboard title row layout */
.search-section {
  width: 100% !important;
  margin: 20px 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}

.dashboard-content .search-section {
  width: 100% !important;
  margin: 20px 0;
}

/* Additional targeting for search bar elements */
.dashboard-content .search-section .search-bar {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Ensure all major sections have consistent width */
.dashboard-content .recent-properties,
.dashboard-content .properties-overview {
  width: 100% !important;
}

/* Remove compliance summary and actions panel styles */
.compliance-summary,
.summary-card,
.actions-panel {
  display: none !important;
}

@media (max-width: 1200px) {
  .recent-properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .recent-properties-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive grid adjustments */
@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 6px;
  }
}

@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px;
  }
}

@media (max-width: 480px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
}

/* Inline Search Results Styles */
.search-results-dropdown {
  position: relative;
  width: 100%;
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  margin-top: 4px;
  pointer-events: auto;
  z-index: 1000;
}

.search-results-header {
  padding: 12px 16px;
  border-bottom: 1px solid #e1e4e8;
  background: #f8f9fa;
  color: #637587;
  font-size: 14px;
  font-weight: 500;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.search-results-list {
  max-height: 350px;
  overflow-y: auto;
}

.search-result-item {
  display: flex;
  align-items: center;
  padding: 16px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f1f3f4;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

.search-result-item:last-child {
  border-bottom: none;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

.search-result-item:hover {
  background-color: #f5f6fa;
}

.search-result-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
  margin-right: 16px;
  flex-shrink: 0;
}

.search-result-details {
  flex: 1 1;
  margin-right: 16px;
}

.search-result-details h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #334151;
  margin-bottom: 4px;
}

.search-result-details p {
  margin: 0;
  font-size: 13px;
  color: #637587;
  line-height: 1.4;
}

.search-results-dropdown .view-property-btn {
  padding: 6px 12px;
  background: #1A80E5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: background-color 0.2s ease;
  flex-shrink: 0;
}

.search-results-dropdown .view-property-btn:hover {
  background: #1666b8;
}

.search-results-dropdown .no-results {
  padding: 24px 16px;
  text-align: center;
  color: #637587;
  font-size: 14px;
}

/* Search container styles */
.search-container {
  /* No z-index needed for normal flow layout */
}

.add-property-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-property-form {
  background: white;
  padding: 32px;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  position: relative;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.close-button {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.close-button:hover {
  color: #333;
}

.add-property-form h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 8px 0;
  text-align: center;
  font-weight: 600;
}

.form-subtitle {
  color: #666;
  text-align: center;
  margin-bottom: 32px;
  font-size: 14px;
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #1a1a1a;
  font-weight: 500;
  font-size: 14px;
}

.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.form-group input[type="text"]:focus {
  outline: none;
  border-color: #1A80E5;
}

.file-upload {
  margin-bottom: 24px;
}

.file-upload-label {
  display: block;
  cursor: pointer;
}

.upload-placeholder {
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  transition: all 0.2s ease;
  background: #f8f9fa;
  height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.upload-placeholder:hover {
  border-color: #1A80E5;
  background: #f0f7ff;
}

.upload-icon {
  font-size: 24px;
  color: #666;
  margin-bottom: 8px;
}

.upload-hint {
  font-size: 12px;
  color: #666;
  margin-top: 4px;
}

.image-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.file-input {
  display: none;
}

.selected-file {
  margin-top: 8px;
  font-size: 14px;
  color: #666;
}

.form-actions {
  display: flex;
  gap: 16px;
  margin-top: 32px;
}

.form-actions button {
  flex: 1 1;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-button {
  background: none;
  border: 1px solid #e0e0e0;
  color: #666;
}

.cancel-button:hover {
  background: #f5f5f5;
  border-color: #d0d0d0;
}

.submit-button {
  background: #1A80E5;
  border: none;
  color: white;
}

.submit-button:hover {
  background: #1565c0;
}

.submit-button:disabled,
.cancel-button:disabled {
  background: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
  opacity: 0.7;
}

@media (max-width: 768px) {
  .add-property-form {
    margin: 20px;
    padding: 24px;
  }
  
  .form-actions {
    flex-direction: column;
  }
}

.address-input-container {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.address-input-container .pac-target-input,
.address-input-container input {
  width: 100% !important;
  padding: 12px 16px 12px 40px !important;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
  box-sizing: border-box;
}

.address-icon {
  position: absolute;
  left: 12px;
  color: #666;
  font-size: 16px;
}

.valid-address {
  border-color: #4CAF50 !important;
}

.validation-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 14px;
  color: #4CAF50;
}

.validation-indicator span {
  display: flex;
  align-items: center;
}

.pac-container {
  border-radius: 8px;
  margin-top: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: none;
  font-family: inherit;
}

.pac-item {
  padding: 8px 16px;
  cursor: pointer;
}

.pac-item:hover {
  background-color: #f0f7ff;
}

.address-input-container > div {
  width: 100%;
}

.image-cropper-container {
  width: 100%;
  margin: 20px auto;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  padding: 16px;
}

.crop-area {
  width: 100%;
  background: #f5f5f5;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.ReactCrop {
  max-width: 100%;
  background: transparent;
}

.ReactCrop__image {
  max-height: 500px;
  object-fit: contain;
}

.ReactCrop__crop-selection {
  border: 2px solid #fff;
  box-shadow: 0 0 0 9999em rgba(0, 0, 0, 0.7);
  border-radius: 4px;
}

.ReactCrop__drag-handle {
  width: 16px;
  height: 16px;
  background-color: #fff;
  border: 2px solid #1A80E5;
  border-radius: 50%;
}

.crop-preview {
  width: 100%;
  height: 220px;
  overflow: hidden;
  margin-top: 16px;
  border-radius: 8px;
  background: #f5f5f5;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.crop-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Remove any fixed heights that might interfere */
.ReactCrop,
.ReactCrop__image {
  height: auto !important;
}

.crop-controls {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  justify-content: center;
}

.finish-crop-button,
.recrop-button,
.reset-crop-button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #1A80E5;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.reset-crop-button {
  background: #666;
}

.crop-instructions {
  text-align: center;
  color: #666;
  margin: 12px 0;
  font-size: 14px;
}

.maps-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 8px;
  margin-bottom: 16px;
  color: #666;
}

.maps-error {
  color: #ff3b30;
  font-size: 14px;
  margin-top: 4px;
}

.property-card {
  background: transparent !important;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: none !important;
  cursor: pointer;
  position: relative;
  width: 100%;
  height: auto;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: none !important;
  box-sizing: border-box;
  min-width: 0;
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: none;
}

.property-image.property-image-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 20px;
  overflow: hidden;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  position: relative;
  border: none !important;
  padding: 0;
}

.property-image.property-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  border: none;
  margin: 0;
  padding: 0;
}

.property-info.property-info-left {
  text-align: left;
  padding: 14px 16px 0px 0px;
  background: transparent !important;
  width: 100%;
  flex: 1 1;
  box-sizing: border-box;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.property-name {
  font-size: 1rem;
  font-weight: 600;
  color: #1f2a37;
  margin: 0 0 6px 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  line-height: 1.3;
}

.property-address {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  text-align: left;
}

.property-address-new {
  font-size: 0.9rem;
  color: #6b7280;
  margin: 0;
  line-height: 1.4;
  word-wrap: break-word;
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
          hyphens: auto;
  text-align: left;
  padding-left: 0;
  margin-left: 0;
  position: relative;
  left: 0;
}

.property-actions {
  display: none !important;
}

.action-button {
  width: 44px;
  height: 44px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 8px;
  padding: 0;
  background: rgba(0, 0, 0, 0.7);
}

.action-button:hover {
  transform: translateY(-2px);
}

.icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

.action-button.edit {
  background: rgba(26, 128, 229, 0.9);
}

.action-button.edit:hover {
  background: #1A80E5;
}

.action-button.edit svg {
  fill: white;
}

.action-button.delete {
  background: rgba(255, 59, 48, 0.9);
}

.action-button.delete:hover {
  background: #ff3b30;
}

.action-button.delete svg {
  fill: white;
}

/* Keep your existing confirmation modal styles */
.confirmation-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.confirmation-content {
  background: white;
  padding: 32px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.confirmation-content h3 {
  margin: 0 0 16px 0;
  font-size: 1.4rem;
  color: #333;
  font-weight: 600;
}

.confirmation-content p {
  margin: 0 0 32px 0;
  color: #666;
  font-size: 1.1rem;
  line-height: 1.5;
}

.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.confirmation-actions button {
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s;
  min-width: 100px;
}

.confirmation-actions .cancel-button {
  background: #f5f5f5;
  color: #666;
  font-weight: 600;
}

.confirmation-actions .cancel-button:hover {
  background: #eaeaea;
  transform: scale(1.02);
}

.confirmation-actions .delete-button {
  background: #ff3b30;
  color: white;
  font-weight: 600;
}

.confirmation-actions .delete-button:hover {
  background: #ff1f1f;
  transform: scale(1.02);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .property-card {
    height: 300px;
  }
  
  .property-image {
    height: 200px;
  }
  
  .property-info {
    padding: 12px;
  }
  
  .property-info h3 {
    font-size: 15px;
  }
  
  .property-info p {
    font-size: 13px;
  }
}

/* Properties grid styles should be in Dashboard.css, not here */

/* Add a loading state for images */
.property-image.loading {
  background: #f5f5f5;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.7; }
  100% { opacity: 1; }
} 
/* Skeleton Loader Styles */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    display: block;
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

/* Skeleton Container */
.skeleton-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Skeleton Text Variations */
.skeleton-text {
    height: 1rem;
    margin-bottom: 6px;
}

.skeleton-text:last-child {
    margin-bottom: 0;
}

/* Skeleton Paragraph */
.skeleton-paragraph {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

/* Skeleton Card */
.skeleton-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.skeleton-card-content {
    padding: 16px;
}

/* Skeleton Property Card */
.skeleton-property-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 100%;
}

.skeleton-property-content {
    padding: 16px;
}

/* Skeleton Counter */
.skeleton-counter {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.skeleton-counter-content {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Skeleton List Item */
.skeleton-list-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
}

.skeleton-list-content {
    flex: 1 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Skeleton Table */
.skeleton-table {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.skeleton-table-header {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 16px;
    gap: 16px;
    padding: 16px;
    background: #f7f8fa;
    border-bottom: 1px solid #e1e5e9;
}

.skeleton-table-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    grid-gap: 16px;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
}

.skeleton-table-row:last-child {
    border-bottom: none;
}

/* Skeleton Grid */
.skeleton-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-gap: 20px;
    gap: 20px;
}

/* Skeleton Dashboard */
.skeleton-dashboard {
    padding: 24px;
}

.skeleton-dashboard-header {
    margin-bottom: 32px;
}

.skeleton-dashboard-header .skeleton:first-child {
    margin-bottom: 8px;
}

.skeleton-counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 20px;
    gap: 20px;
    margin-bottom: 40px;
}

.skeleton-properties-section .skeleton:first-child {
    margin-bottom: 24px;
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .skeleton {
        background: linear-gradient(90deg, #2d3748 25%, #1a202c 50%, #2d3748 75%);
        background-size: 200% 100%;
    }
    
    .skeleton-card,
    .skeleton-property-card,
    .skeleton-counter,
    .skeleton-table {
        background: #2d3748;
    }
    
    .skeleton-table-header {
        background: #1a202c;
        border-bottom-color: #4a5568;
    }
    
    .skeleton-table-row {
        border-bottom-color: #4a5568;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .skeleton {
        animation: none;
        background: #f0f0f0;
    }
    
    @media (prefers-color-scheme: dark) {
        .skeleton {
            background: #2d3748;
        }
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .skeleton {
        background: #e0e0e0;
        border: 1px solid #999;
    }
    
    @media (prefers-color-scheme: dark) {
        .skeleton {
            background: #4a5568;
            border-color: #718096;
        }
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .skeleton-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skeleton-counters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .skeleton-table-header,
    .skeleton-table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .skeleton-counter {
        padding: 16px;
        gap: 12px;
    }
    
    .skeleton-card-content,
    .skeleton-property-content {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .skeleton-dashboard {
        padding: 16px;
    }
    
    .skeleton-counter {
        flex-direction: column;
        text-align: center;
    }
    
    .skeleton-list-item {
        padding: 8px 0;
        gap: 8px;
    }
}

/* Specific Skeleton Sizes */
.skeleton-xs { height: 0.75rem; }
.skeleton-sm { height: 1rem; }
.skeleton-md { height: 1.25rem; }
.skeleton-lg { height: 1.5rem; }
.skeleton-xl { height: 2rem; }

/* Skeleton Widths */
.skeleton-w-1/4 { width: 25%; }
.skeleton-w-1/3 { width: 33.333333%; }
.skeleton-w-1/2 { width: 50%; }
.skeleton-w-2/3 { width: 66.666667%; }
.skeleton-w-3/4 { width: 75%; }
.skeleton-w-full { width: 100%; }

/* Skeleton Rounded Variations */
.skeleton-rounded-sm { border-radius: 2px; }
.skeleton-rounded { border-radius: 4px; }
.skeleton-rounded-md { border-radius: 6px; }
.skeleton-rounded-lg { border-radius: 8px; }
.skeleton-rounded-xl { border-radius: 12px; }
.skeleton-rounded-full { border-radius: 9999px; }



/* Empty State Styles */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 24px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Size Variations */
.empty-state-small {
    padding: 32px 16px;
}

.empty-state-medium {
    padding: 48px 24px;
}

.empty-state-large {
    padding: 64px 32px;
}

/* Icon */
.empty-state-icon {
    margin-bottom: 24px;
    font-size: 4rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.empty-state-small .empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
}

.empty-state-large .empty-state-icon {
    font-size: 5rem;
    margin-bottom: 32px;
}

/* Illustration */
.empty-state-illustration {
    margin-bottom: 24px;
    max-width: 300px;
    opacity: 0.8;
}

.empty-state-small .empty-state-illustration {
    max-width: 200px;
    margin-bottom: 16px;
}

.empty-state-large .empty-state-illustration {
    max-width: 400px;
    margin-bottom: 32px;
}

/* Content */
.empty-state-content {
    max-width: 500px;
}

.empty-state-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 12px 0;
}

.empty-state-small .empty-state-title {
    font-size: 1.25rem;
    margin-bottom: 8px;
}

.empty-state-large .empty-state-title {
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.empty-state-description {
    font-size: 1rem;
    color: #718096;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.empty-state-small .empty-state-description {
    font-size: 0.9rem;
    margin-bottom: 16px;
}

.empty-state-large .empty-state-description {
    font-size: 1.1rem;
    margin-bottom: 32px;
}

/* Action Button */
.empty-state-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.empty-state-action:hover {
    background: #2c5282;
    transform: translateY(-1px);
}

.empty-state-action:active {
    transform: translateY(0);
}

/* Multiple Actions */
.empty-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.empty-state-action.secondary {
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.empty-state-action.secondary:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

/* Color Variants */
.empty-state-blue .empty-state-icon { color: #3182ce; }
.empty-state-green .empty-state-icon { color: #38a169; }
.empty-state-red .empty-state-icon { color: #e53e3e; }
.empty-state-orange .empty-state-icon { color: #dd6b20; }
.empty-state-yellow .empty-state-icon { color: #d69e2e; }
.empty-state-purple .empty-state-icon { color: #805ad5; }
.empty-state-indigo .empty-state-icon { color: #5a67d8; }
.empty-state-gray .empty-state-icon { color: #718096; }

/* Loading State */
.empty-state.loading .empty-state-icon {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.loading-icon {
    position: relative;
}

.loading-spinner {
    width: 64px;
    height: 64px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #3182ce;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Interactive Hover Effects */
.empty-state:hover .empty-state-icon {
    transform: scale(1.05);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .empty-state {
        padding: 32px 16px;
    }
    
    .empty-state-large {
        padding: 48px 20px;
    }
    
    .empty-state-icon {
        font-size: 3rem;
    }
    
    .empty-state-large .empty-state-icon {
        font-size: 4rem;
    }
    
    .empty-state-title {
        font-size: 1.25rem;
    }
    
    .empty-state-large .empty-state-title {
        font-size: 1.5rem;
    }
    
    .empty-state-description {
        font-size: 0.9rem;
    }
    
    .empty-state-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .empty-state-action {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .empty-state {
        padding: 24px 12px;
    }
    
    .empty-state-icon {
        font-size: 2.5rem;
        margin-bottom: 16px;
    }
    
    .empty-state-title {
        font-size: 1.1rem;
    }
    
    .empty-state-description {
        font-size: 0.85rem;
        margin-bottom: 20px;
    }
    
    .empty-state-illustration {
        max-width: 150px;
    }
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .empty-state {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .empty-state-title {
        color: #f7fafc;
    }
    
    .empty-state-description {
        color: #a0aec0;
    }
    
    .empty-state-action.secondary {
        background: #4a5568;
        color: #e2e8f0;
        border-color: #718096;
    }
    
    .empty-state-action.secondary:hover {
        background: #68d391;
        border-color: #9ae6b4;
    }
    
    .loading-spinner {
        border-color: #4a5568;
        border-top-color: #63b3ed;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    .empty-state {
        border: 2px solid #1a202c;
    }
    
    .empty-state-title {
        color: #000;
        font-weight: 700;
    }
    
    .empty-state-description {
        color: #2d3748;
    }
    
    .empty-state-action {
        border: 2px solid #1a202c;
        font-weight: 600;
    }
    
    @media (prefers-color-scheme: dark) {
        .empty-state {
            border-color: #f7fafc;
        }
        
        .empty-state-title {
            color: #fff;
        }
        
        .empty-state-description {
            color: #e2e8f0;
        }
        
        .empty-state-action {
            border-color: #f7fafc;
        }
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .empty-state-icon,
    .empty-state-action,
    .loading-spinner {
        animation: none;
        transition: none;
    }
    
    .empty-state:hover .empty-state-icon {
        transform: none;
    }
}

/* Focus Styles for Accessibility */
.empty-state-action:focus {
    outline: 2px solid #3182ce;
    outline-offset: 2px;
}

/* Special Layout Variants */
.empty-state.horizontal {
    flex-direction: row;
    text-align: left;
    align-items: center;
    gap: 24px;
}

.empty-state.horizontal .empty-state-icon {
    margin-bottom: 0;
    font-size: 3rem;
    flex-shrink: 0;
}

.empty-state.horizontal .empty-state-content {
    max-width: none;
    flex: 1 1;
}

@media (max-width: 768px) {
    .empty-state.horizontal {
        flex-direction: column;
        text-align: center;
    }
    
    .empty-state.horizontal .empty-state-icon {
        margin-bottom: 16px;
    }
}



.notification-popup {
  position: absolute;
  top: 60px;
  right: 0;
  width: 380px;
  max-height: 480px;
  overflow-y: auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  transition: all 0.2s ease;
  z-index: 1000;
  pointer-events: auto;
}

.notification-popup:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Keep the hover area connected to prevent flickering */
.icon:hover + .notification-popup,
.notification-popup:hover {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.notification-header h3 {
  margin: 0;
  font-size: 16px;
  color: #334151;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #637587;
  cursor: pointer;
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid #eee;
  background: white;
  transition: background-color 0.2s ease;
}

.notification-item:hover {
  background: #f8f9fa;
}

.notification-item.urgent {
  border-left: 4px solid #dc3545;
}

.notification-icon {
  margin-right: 12px;
  font-size: 16px;
  margin-top: 2px;
}

.notification-icon.warning {
  color: #dc3545;
}

.notification-icon.calendar {
  color: #fd7e14;
}

.notification-icon.document {
  color: #1A80E5;
}

.notification-icon.reminder {
  color: #28a745;
}

.notification-content {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.notification-content span {
  color: #334151;
  font-size: 14px;
  line-height: 1.4;
}

.action-btn {
  align-self: flex-start;
  padding: 6px 12px;
  background: #1A80E5;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.action-btn:hover {
  background: #1666b8;
}

.notification-footer {
  padding: 12px;
  text-align: center;
  border-top: 1px solid #eee;
}

.view-all-btn {
  background: none;
  border: none;
  color: #1A80E5;
  font-size: 14px;
  cursor: pointer;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.view-all-btn:hover {
  background: #f0f7ff;
}

/* Add a small arrow at the top */
.notification-popup::before {
  content: '';
  position: absolute;
  top: -10px;
  right: 15px;
  width: 20px;
  height: 20px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 5px rgba(0, 0, 0, 0.05);
}

/* Add this to create a hover area between icon and popup */
.icon {
  position: relative;
}

.icon::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
} 
.property-dashboard {
  display: block;
  min-height: 100vh;
  background: #f8fafc;
  overflow: visible;
  position: relative;
  padding-top: 72px;
}

/* Header Styles - More minimalistic */
.dashboard-header {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 40px;
  background: #FFFFFF;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  width: 100%;
  box-sizing: border-box;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #f1f5f9;
}

.logo {
  height: 36px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 40px;
}

.main-nav {
  display: flex;
  gap: 32px;
}

.main-nav a {
  color: #64748b;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.main-nav a:hover {
  color: #3b82f6;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #64748b;
}

.icon-button:hover {
  background: #f8fafc;
  color: #3b82f6;
}

.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  cursor: pointer;
  transition: transform 0.2s ease;
}

.user-avatar:hover {
  transform: scale(1.05);
}

/* Sidebar Styles - Cleaner design */
.sidebar {
  position: fixed;
  left: 0;
  top: 72px;
  bottom: 0;
  background: white;
  padding: 24px 16px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  box-sizing: border-box;
  width: 280px;
  overflow-y: auto;
  z-index: 90;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.5);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1;
  padding-top: 8px;
  min-height: 0;
}

.sidebar-bottom {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.sidebar-property-image {
  width: 100%;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
  margin-top: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background-color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sidebar-property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-name {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 0 8px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-item {
  padding: 10px 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  font: inherit;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
  transform: translateX(0);
  flex-shrink: 0;
  min-height: 40px;
}

.sidebar-item:hover {
  background-color: #f8fafc;
  color: #1e293b;
}

.property-dashboard .sidebar .sidebar-item.active {
  background-color: #eff6ff !important;
  color: #3b82f6 !important;
  border-left: 3px solid #3b82f6 !important;
  font-weight: 600;
  padding-left: 9px;
}

.sidebar-item.action-item {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 16px;
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.sidebar-item.action-item:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.sidebar-icon {
  margin-right: 12px;
  width: 18px;
  flex-shrink: 0;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-label {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1;
}

/* Main Content Styles - More breathing room */
.main-content {
  margin-left: 280px;
  margin-top: 0;
  padding: 40px;
  overflow-y: auto;
  min-height: calc(100vh - 72px);
  background: #f8fafc;
  position: relative;
  z-index: 1;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding: 0;
}

.content-header h1 {
  font-size: 28px;
  font-weight: 700;
  color: #0c437c;
  margin: 0;
  text-align: left;
  letter-spacing: -0.02em;
}

.address {
  font-size: 15px;
  color: #64748b;
  margin: 6px 0 0 0;
  text-align: left;
  font-weight: 400;
}

.start-inspection-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.2s ease;
  min-height: 44px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.start-inspection-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.35);
}

.start-inspection-btn:active {
  transform: translateY(0);
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.safety-grid-bottom {
  grid-template-columns: repeat(3, 1fr);
  margin: 0 auto 40px auto;
  max-width: 75%;
  justify-content: center;
}

.safety-card {
  padding: 24px;
  background: white;
  border-radius: 12px;
  border: 1px solid #f1f5f9;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.safety-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.safety-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #e0e7ff;
}

.safety-card:hover::before {
  opacity: 1;
}

.safety-card.clickable {
  cursor: pointer;
}

.safety-card h3 {
  font-size: 14px;
  margin: 0 0 16px;
  color: #64748b;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.issues-count {
  font-size: 36px;
  font-weight: 700;
  margin: 0;
  color: #3b82f6;
  letter-spacing: -0.02em;
}

.recent-inspections {
  margin-top: 40px;
}

.recent-inspections h2 {
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.recent-inspections h3 {
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 16px;
}

.inspection-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
}

.inspection-item {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.inspection-item:last-child {
  border-bottom: none;
}

.inspection-item:hover {
  background-color: #f8fafc;
}

.inspection-icon {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 16px;
  font-size: 18px;
  color: #3b82f6;
}

.inspection-info {
  flex: 1 1;
}

.inspection-title {
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 4px;
}

.inspection-date {
  font-size: 13px;
  color: #64748b;
}

.inspection-arrow {
  font-size: 18px;
  color: #cbd5e1;
  margin-left: 16px;
  transition: all 0.2s ease;
}

.inspection-item:hover .inspection-arrow {
  color: #3b82f6;
  transform: translateX(2px);
}

.placeholder-image {
  background-color: #f1f5f9;
  width: 300px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 14px;
}

.property-image {
  display: none;
}

.property-image-container {
  display: none;
}

.dashboard-content {
  flex: 1 1;
  overflow: auto;
  padding: 1rem;
}

/* Responsive adjustments */
@media screen and (max-height: 1080px) {
  .sidebar {
    padding: 16px 12px;
  }

  .sidebar-item {
    padding: 8px 12px;
    min-height: 36px;
  }

  .sidebar-bottom {
    margin-top: 40px;
  }

  .sidebar-property-image {
    height: 180px;
  }

  .company-name {
    margin-bottom: 12px;
  }
}

/* Tablet Responsive Design */
@media (max-width: 1024px) {
  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .safety-grid-bottom {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
  }
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
  .property-dashboard {
    padding-top: 72px;
  }

  .sidebar {
    position: relative;
    height: auto;
    width: 100%;
    border-radius: 0;
    left: auto;
    top: auto;
    bottom: auto;
    margin-top: 0;
  }

  .main-content {
    padding: 20px;
    margin-left: 0;
    margin-top: 0;
  }

  .content-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .safety-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .safety-grid-bottom {
    grid-template-columns: 1fr;
    margin: 0 0 32px 0;
    max-width: 100%;
  }

  .safety-card {
    padding: 20px;
  }

  .inspection-item {
    padding: 14px 16px;
  }

  .inspection-icon {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
}

/* Inspection Modal Styles - More refined */
.inspection-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.inspection-modal {
  background: white;
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: 1px solid #f1f5f9;
}

.inspection-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 24px 20px 24px;
  border-bottom: 1px solid #f1f5f9;
}

.inspection-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.inspection-modal-close {
  background: none;
  border: none;
  font-size: 20px;
  color: #64748b;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.inspection-modal-close:hover {
  background: #f8fafc;
  color: #0f172a;
}

.inspection-form {
  padding: 24px;
}

.inspection-form .form-group {
  margin-bottom: 20px;
}

.inspection-form label {
  display: block;
  font-weight: 500;
  color: #0f172a;
  margin-bottom: 8px;
  font-size: 13px;
}

.inspection-form select,
.inspection-form textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
  box-sizing: border-box;
  color: #0f172a;
}

.inspection-form select:focus,
.inspection-form textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.inspection-form textarea {
  resize: vertical;
  min-height: 80px;
  font-family: inherit;
}

.inspection-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

/* Mobile responsive for modal */
@media (max-width: 768px) {
  .inspection-modal {
    margin: 20px;
    max-width: none;
  }
  
  .inspection-modal-actions {
    flex-direction: column;
  }
  
  .btn-primary,
  .btn-secondary {
    width: 100%;
  }
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: #FFFFFF;
  box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.1);
  width: 100%;
  box-sizing: border-box;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 80px;
}

.logo {
  height: 40px;
  margin-right: 40px;
}

.header-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-link {
  color: #637587;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.nav-link:hover,
.nav-link.active {
  color: #1A80E5;
}

.nav-link.disabled {
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: 20px;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #eff2f4;
  border-radius: 12px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  position: relative;
}

.icon:hover {
  background-color: #1980e5;
}

.icon i {
  color: #000000;
  transition: color 0.3s ease;
}

.icon:hover i {
  color: #ffffff;
}

.user-avatar-container {
  position: relative;
  cursor: pointer;
}

.user-avatar {
  width: 40px;
  height: 40px;
  background: #1A80E5;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.user-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 1000;
  min-width: 150px;
}

.user-menu a,
.user-menu button {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  color: #334151;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.user-menu a:hover,
.user-menu button:hover {
  background-color: #1A80E5;
  color: white;
}

@media (max-width: 768px) {
  .dashboard-header {
    flex-direction: column;
    height: auto;
    padding: 12px;
  }

  .header-right {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 12px;
  }

  .nav-links {
    margin-right: 0;
    margin-bottom: 12px;
  }
} 
.emergency-lighting-page {
  padding: 1rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-card .status-icon {
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.status-details h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.status-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.working {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.inspections-table {
  width: 100%;
  border-collapse: collapse;
}

.inspections-table th,
.inspections-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.inspections-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: var(--color-background);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pill.working {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.needs_repair {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.certificates-section {
  margin-top: 2rem;
}

.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.certificate-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.certificate-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.certificate-header h3 {
  margin: 0;
  font-size: 1rem;
}

.certificate-details p {
  margin: 0.5rem 0;
  color: var(--color-text-secondary);
}

.documents-section {
  margin-top: 2rem;
}

.upload-area {
  margin-top: 1rem;
}

.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box p {
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.upload-box span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .certificates-grid {
    grid-template-columns: 1fr;
  }
} 
.escape-routes-page {
  padding: 1rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-card .status-icon {
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.status-details h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.status-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.routes-table {
  width: 100%;
  border-collapse: collapse;
}

.routes-table th,
.routes-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.routes-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: var(--color-background);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pill.clear {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.blocked {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.status-pill.maintenance {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.plans-section {
  margin-top: 2rem;
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.plan-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.plan-icon {
  width: 40px;
  height: 40px;
  background: var(--color-background);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.plan-details h3 {
  margin: 0;
  font-size: 1rem;
}

.plan-details p {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.documents-section {
  margin-top: 2rem;
}

.upload-area {
  margin-top: 1rem;
}

.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box p {
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.upload-box span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
} 
.assembly-points-page {
  padding: 1rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-card .status-icon {
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.status-details h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.status-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.points-table {
  width: 100%;
  border-collapse: collapse;
}

.points-table th,
.points-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.points-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: var(--color-background);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pill.clear {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.maintenance {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.blocked {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.map-section {
  margin-top: 2rem;
}

.map-container {
  margin-top: 1rem;
}

.map-placeholder {
  background: var(--color-background);
  border-radius: 8px;
  padding: 3rem;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.map-placeholder:hover {
  background-color: var(--color-background-dark);
}

.map-placeholder svg {
  font-size: 3rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.map-placeholder p {
  margin: 0;
  color: var(--color-text-secondary);
}

.documents-section {
  margin-top: 2rem;
}

.upload-area {
  margin-top: 1rem;
}

.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box p {
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.upload-box span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .points-table {
    display: block;
    overflow-x: auto;
  }
} 
.emergency-plans-page {
  padding: 1rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-card .status-icon {
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.status-details h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.status-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.plans-table {
  width: 100%;
  border-collapse: collapse;
}

.plans-table th,
.plans-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.plans-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: var(--color-background);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pill.current {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.needs_update {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.in_review {
  background-color: var(--color-info-light);
  color: var(--color-info);
}

.history-section {
  margin-top: 2rem;
}

.history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.history-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  gap: 1rem;
}

.history-icon {
  width: 40px;
  height: 40px;
  background: var(--color-background);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--color-primary);
}

.history-details h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.history-date {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.history-author {
  margin: 0.25rem 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.history-changes {
  margin: 0.5rem 0 0;
  font-size: 0.875rem;
  color: var(--color-text-primary);
}

.documents-section {
  margin-top: 2rem;
}

.upload-area {
  margin-top: 1rem;
}

.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box p {
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.upload-box span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .plans-table {
    display: block;
    overflow-x: auto;
  }
  
  .history-grid {
    grid-template-columns: 1fr;
  }
} 
.defibrillators-page {
  padding: 1rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-card .status-icon {
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.status-details h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.status-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.devices-table {
  width: 100%;
  border-collapse: collapse;
}

.devices-table th,
.devices-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.devices-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: var(--color-background);
}

.battery-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.battery-icon {
  font-size: 1rem;
}

.battery-icon.full {
  color: var(--color-success);
}

.battery-icon.medium {
  color: var(--color-warning);
}

.battery-icon.low {
  color: var(--color-danger);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pill.operational {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.needs_service {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.in_service {
  background-color: var(--color-info-light);
  color: var(--color-info);
}

.status-pill.valid {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.expires_soon {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.maintenance-section {
  margin-top: 2rem;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.schedule-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.schedule-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.schedule-header h3 {
  margin: 0;
  font-size: 1rem;
}

.schedule-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.schedule-items li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.schedule-items li:last-child {
  border-bottom: none;
}

.documents-section {
  margin-top: 2rem;
}

.upload-area {
  margin-top: 1rem;
}

.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box p {
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.upload-box span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .devices-table {
    display: block;
    overflow-x: auto;
  }
  
  .schedule-grid {
    grid-template-columns: 1fr;
  }
} 
.incident-reporting-page {
  padding: 1rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.action-button.primary {
  background-color: var(--color-danger);
  color: white;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-card .status-icon {
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.status-details h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.status-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.warning {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.incidents-table {
  width: 100%;
  border-collapse: collapse;
}

.incidents-table th,
.incidents-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.incidents-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: var(--color-background);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pill.open {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.status-pill.under_review {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.closed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.report-section {
  margin-top: 2rem;
}

.report-form {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-group select,
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  font-size: 0.875rem;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.documents-section {
  margin-top: 2rem;
}

.upload-area {
  margin-top: 1rem;
}

.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box p {
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.upload-box span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .incidents-table {
    display: block;
    overflow-x: auto;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
} 
.emergency-dashboard-wrapper {
  width: 100%;
  padding: 0;
  height: 100%;
  overflow-y: auto;
  position: relative;
}

.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-title {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 16px;
}

.btn,
.btn-primary,
.btn-small {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.btn-primary,
.btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover,
.btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
}

.dashboard-card-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-card-label {
  color: #1F2937;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.dashboard-card-numbers {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-card-total {
  font-size: 1.5em;
  font-weight: 700;
  color: #1F2937;
}

.dashboard-card-failed {
  font-size: 1em;
  color: #d32f2f;
  font-weight: 600;
  background: #fce8e6;
  border-radius: 6px;
  padding: 2px 10px;
}

.dashboard-card.good {
  border-left: 4px solid #10B981;
}

.dashboard-card.warning {
  border-left: 4px solid #F59E0B;
}

.dashboard-bottom-panels {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dashboard-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  padding: 24px 32px;
  flex: 1 1 320px;
  min-width: 320px;
}

.panel-title {
  font-size: 1.1em;
  color: #1F2937;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attention-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.attention-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
}

.attention-icon {
  color: #d32f2f;
  font-size: 1.2em;
}

.attention-label {
  color: #1F2937;
  font-weight: 500;
}

.attention-failed {
  color: #d32f2f;
  font-weight: 600;
  margin-left: auto;
}

.no-issues {
  color: #10B981;
  font-weight: 500;
  text-align: center;
  padding: 24px 0;
}

.next-inspection-details {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.next-inspection-date {
  color: #1F2937;
  font-size: 1.1em;
}

@media (max-width: 768px) {
  .dashboard-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .dashboard-actions {
    width: 100%;
    flex-direction: column;
  }

  .dashboard-cards-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-bottom-panels {
    flex-direction: column;
  }

  .dashboard-panel {
    min-width: 0;
  }
}

.emergency-preparedness-main {
  overflow: hidden;
  position: relative;
} 
.fire-drills-page {
  padding: 1rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-card h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.status-card p {
  margin: 0.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.scheduled {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.drills-table {
  width: 100%;
  border-collapse: collapse;
}

.drills-table th,
.drills-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.drills-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: var(--color-background);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pill.completed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.scheduled {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.overdue {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.documents-section {
  margin-top: 2rem;
}

.upload-area {
  margin-top: 1rem;
}

.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box p {
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.upload-box span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.fire-drills-container {
  padding: 20px;
} 
.first-aid-kits-page {
  padding: 1rem;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.status-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.status-card .status-icon {
  width: 48px;
  height: 48px;
  background: var(--color-background);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--color-primary);
}

.status-details h3 {
  margin: 0;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.status-details p {
  margin: 0.5rem 0;
  font-size: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.ok {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.kits-table {
  width: 100%;
  border-collapse: collapse;
}

.kits-table th,
.kits-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.kits-table th {
  font-weight: 600;
  color: var(--color-text-secondary);
  background-color: var(--color-background);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pill.ok {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.low_stock {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.empty {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.checklist-section {
  margin-top: 2rem;
}

.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.checklist-card {
  background: white;
  padding: 1.25rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.checklist-header h3 {
  margin: 0;
  font-size: 1rem;
}

.checklist-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

.checklist-items li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-secondary);
}

.checklist-items li:last-child {
  border-bottom: none;
}

.documents-section {
  margin-top: 2rem;
}

.upload-area {
  margin-top: 1rem;
}

.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 8px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box p {
  margin: 1rem 0 0.5rem;
  font-weight: 500;
}

.upload-box span {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

@media (max-width: 768px) {
  .checklist-grid {
    grid-template-columns: 1fr;
  }
}

.first-aid-kits-container {
  padding: 20px;
} 
.emergency-preparedness-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f6fa;
}

.emergency-preparedness-content {
  display: flex;
  flex: 1 1;
  padding: 20px;
  padding-top: 100px;
  gap: 20px;
}

.emergency-preparedness-sidebar {
  width: 280px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

.emergency-preparedness-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.emergency-preparedness-menu-item {
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.emergency-preparedness-menu-item:hover {
  background-color: #f0f2f5;
}

.emergency-preparedness-menu-item.active {
  background-color: #e3f2fd;
  color: #1976d2;
}

.emergency-preparedness-menu-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.emergency-preparedness-menu-icon {
  width: 20px;
}

.emergency-preparedness-menu-arrow {
  margin-left: auto;
  font-size: 12px;
}

.emergency-preparedness-main {
  flex: 1 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 24px;
  overflow-y: auto;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #1F2937;
  font-size: 1em;
  font-weight: 500;
  padding: 8px 0 16px 0;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s;
}

.sidebar-back-btn:hover {
  color: #1574F6;
}

@media (max-width: 768px) {
  .emergency-preparedness-content {
    flex-direction: column;
  }

  .emergency-preparedness-sidebar {
    width: 100%;
  }
} 
/* Modern Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

/* Modern Modal Container */
.modern-modal {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Inter, sans-serif;
}

.image-positioner-modal {
  max-width: 1200px;
  max-height: 95vh;
}

/* Modal Header */
.modal-header {
  padding: 24px 32px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  flex-shrink: 0;
}

.modal-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 12px;
}

.close-btn {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Modern Form */
.modern-form {
  padding: 32px;
  overflow-y: auto;
  flex: 1 1;
}

.form-section {
  margin-bottom: 32px;
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-group {
  margin-bottom: 24px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937;
  background: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* Modern Dropzone */
.modern-dropzone {
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 48px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f9fafb;
  margin-top: 12px;
}

.modern-dropzone:hover,
.modern-dropzone.dragover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.dropzone-icon {
  font-size: 48px;
  color: #9ca3af;
  margin-bottom: 8px;
}

.modern-dropzone:hover .dropzone-icon,
.modern-dropzone.dragover .dropzone-icon {
  color: #3b82f6;
}

.dropzone-content h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #374151;
}

.dropzone-content p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

.dropzone-hint {
  font-size: 12px;
  color: #9ca3af;
}

/* Current Image Section */
.current-image-section {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.current-image-preview {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  border: 1px solid #e2e8f0;
}

.current-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-actions {
  flex: 1 1;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-cancel {
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  text-decoration: none;
  min-height: 44px;
  box-sizing: border-box;
}

.btn-primary {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.btn-primary:hover:not(:disabled) {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: #f8fafc;
  color: #374151;
  border: 1px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f1f5f9;
  border-color: #d1d5db;
}

.btn-cancel {
  background: #f8fafc;
  color: #6b7280;
  border: 1px solid #e2e8f0;
}

.btn-cancel:hover:not(:disabled) {
  background: #f1f5f9;
  color: #374151;
}

.btn-cancel:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal Actions */
.modal-actions {
  padding: 24px 32px;
  border-top: 1px solid #f1f5f9;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #ffffff;
  flex-shrink: 0;
}

/* Facebook-style Image Positioner */
.facebook-style-positioner {
  max-width: 1000px;
  max-height: 90vh;
}

.facebook-positioner-content {
  display: flex;
  gap: 24px;
  padding: 24px;
  overflow-y: auto;
  flex: 1 1;
  background: #f5f5f5;
}

.facebook-instructions {
  flex: 2 1;
  min-width: 0;
}

.instruction-box {
  background: #4267b2;
  color: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.instruction-box p {
  margin: 0 0 8px 0;
  font-size: 14px;
  line-height: 1.4;
}

.instruction-box p:last-child {
  margin-bottom: 0;
}

.facebook-image-container {
  position: relative;
  width: 800px;
  height: 500px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.facebook-image-container:active {
  cursor: grabbing;
}

.facebook-draggable-image {
  position: absolute;
  top: 50%;
  left: 50%;
  transform-origin: center center;
  max-width: none;
  max-height: none;
  -webkit-user-select: none;
          user-select: none;
  pointer-events: none;
}

/* Gray overlay areas - Facebook style */
.facebook-overlay {
  position: absolute;
  background: rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 2;
}

.facebook-overlay-top {
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
}

.facebook-overlay-bottom {
  bottom: 0;
  left: 0;
  right: 0;
  height: 100px;
}

.facebook-overlay-left {
  top: 100px;
  bottom: 100px;
  left: 0;
  width: 100px;
}

.facebook-overlay-right {
  top: 100px;
  bottom: 100px;
  right: 0;
  width: 100px;
}

/* Crop frame indicators */
.facebook-crop-frame {
  position: absolute;
  border: 2px dashed rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
  z-index: 3;
}

.sidebar-frame {
  top: 100px;
  left: 100px;
  width: 248px;
  height: 220px;
}

.property-card-frame {
  top: 100px;
  right: 100px;
  width: 220px;
  height: 220px;
}

.facebook-frame-label {
  position: absolute;
  top: -25px;
  left: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #333;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Right side preview section */
.facebook-preview-section {
  flex: 1 1;
  min-width: 280px;
  background: white;
  border-radius: 8px;
  padding: 20px;
}

.facebook-preview-section h3 {
  margin: 0 0 20px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1c1e21;
  text-align: center;
}

.facebook-preview-box {
  margin-bottom: 24px;
  text-align: center;
}

.facebook-preview-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #65676b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.facebook-preview-image {
  border: 1px solid #dadde1;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f2f5;
  margin: 0 auto;
  position: relative;
}

.sidebar-preview-size {
  width: 124px;
  height: 110px;
}

.property-card-preview-size {
  width: 110px;
  height: 110px;
}

.facebook-preview-content {
  width: 100%;
  height: 100%;
  background-color: #f0f2f5;
}

/* Zoom controls */
.facebook-zoom-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.facebook-zoom-btn {
  padding: 8px 12px;
  background: #e4e6ea;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #1c1e21;
  cursor: pointer;
  transition: all 0.2s ease;
}

.facebook-zoom-btn:hover {
  background: #d8dadf;
}

.facebook-zoom-btn:active {
  background: #bcc0c4;
}

/* Actions */
.facebook-positioner-actions {
  padding: 16px 24px;
  border-top: 1px solid #dadde1;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #ffffff;
  flex-shrink: 0;
}

.facebook-save-btn {
  background: #1877f2;
  border: none;
  padding: 8px 16px;
  font-weight: 600;
}

.facebook-save-btn:hover:not(:disabled) {
  background: #166fe5;
}

/* Additional positioning styles */

/* Responsive Design */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modern-modal {
    max-height: 95vh;
  }
  
  .facebook-style-positioner {
    max-width: 95vw;
    max-height: 95vh;
  }
  
  .modal-header {
    padding: 20px 24px;
  }
  
  .modern-form {
    padding: 24px;
  }
  
  .modal-actions,
  .facebook-positioner-actions {
    padding: 16px 20px;
    flex-direction: column-reverse;
  }
  
  .facebook-positioner-content {
    flex-direction: column;
    padding: 16px;
    gap: 16px;
  }
  
  .facebook-image-container {
    width: 100%;
    height: 300px;
  }
  
  .facebook-overlay-top,
  .facebook-overlay-bottom {
    height: 60px;
  }
  
  .facebook-overlay-left,
  .facebook-overlay-right {
    width: 60px;
    top: 60px;
    bottom: 60px;
  }
  
  .sidebar-frame {
    top: 60px;
    left: 60px;
    width: 180px;
    height: 160px;
  }
  
  .property-card-frame {
    top: 60px;
    right: 60px;
    width: 160px;
    height: 160px;
  }
  
  .facebook-preview-section {
    min-width: 0;
    padding: 16px;
  }
  
  .facebook-zoom-controls {
    flex-wrap: wrap;
    gap: 6px;
  }
  
  .facebook-zoom-btn {
    flex: 1 1;
    min-width: 80px;
  }
  
  .current-image-section {
    flex-direction: column;
    text-align: center;
  }
  
  .btn-primary,
  .btn-secondary,
  .btn-cancel {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .modal-header h2 {
    font-size: 18px;
  }
  
  .dropzone-content h3 {
    font-size: 16px;
  }
  
  .modern-dropzone {
    padding: 32px 16px;
  }
}
/* Dashboard Counters Styles */
.dashboard-counters {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    position: relative;
}

/* Header */
.counters-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.header-left h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin: 0 0 4px 0;
}

.header-left p {
    color: #718096;
    margin: 0;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.filter-btn,
.export-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    font-size: 0.85rem;
    color: #4a5568;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover,
.export-btn:hover {
    background: #f7fafc;
    border-color: #cbd5e0;
}

.filter-btn.active {
    background: #3182ce;
    color: white;
    border-color: #3182ce;
}

/* Counters Grid */
.counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 20px;
    gap: 20px;
}

/* Counter Cards */
.counter-card {
    padding: 20px;
    border-radius: 12px;
    background: white;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.counter-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    transition: all 0.2s ease;
}

.counter-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.counter-card.active {
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

/* Color Variants */
.counter-card.blue::before { background: #3182ce; }
.counter-card.green::before { background: #38a169; }
.counter-card.red::before { background: #e53e3e; }
.counter-card.orange::before { background: #dd6b20; }
.counter-card.yellow::before { background: #d69e2e; }
.counter-card.gray::before { background: #718096; }

.counter-card.blue .counter-icon { color: #3182ce; }
.counter-card.green .counter-icon { color: #38a169; }
.counter-card.red .counter-icon { color: #e53e3e; }
.counter-card.orange .counter-icon { color: #dd6b20; }
.counter-card.yellow .counter-icon { color: #d69e2e; }
.counter-card.gray .counter-icon { color: #718096; }

/* Urgent Cards */
.counter-card.urgent {
    background: linear-gradient(135deg, #fff5f5 0%, #fed7d7 100%);
    animation: pulse-urgent 2s infinite;
}

@keyframes pulse-urgent {
    0%, 100% { 
        box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    }
    50% { 
        box-shadow: 0 4px 16px rgba(229, 62, 62, 0.2);
    }
}

/* Counter Layout */
.counter-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.counter-icon {
    font-size: 2rem;
    position: relative;
    min-width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.urgent-indicator {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #e53e3e;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
}

.counter-content {
    flex: 1 1;
}

.counter-number {
    font-size: 2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 4px;
    line-height: 1;
}

.counter-label {
    font-size: 1rem;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 4px;
}

.counter-description {
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.4;
}

.counter-percentage {
    font-size: 0.75rem;
    color: #4a5568;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 12px;
    margin-top: 8px;
    text-align: center;
    font-weight: 500;
}

/* Loading State */
.dashboard-counters.loading {
    padding: 24px;
}

.counters-skeleton {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    grid-gap: 20px;
    gap: 20px;
}

.counter-skeleton {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
    background: #f7fafc;
}

.skeleton-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

.skeleton-content {
    flex: 1 1;
}

.skeleton-number {
    height: 32px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    margin-bottom: 8px;
    width: 80px;
}

.skeleton-label {
    height: 16px;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    width: 120px;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* Error State */
.dashboard-counters.error {
    padding: 40px 24px;
    text-align: center;
}

.error-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    color: #e53e3e;
}

.error-message svg {
    font-size: 2rem;
}

.retry-btn {
    padding: 8px 16px;
    background: #3182ce;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
}

.retry-btn:hover {
    background: #2c5282;
}

/* Filter Panel */
.filter-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    z-index: 1000;
    margin-top: 8px;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.filter-panel-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #1a202c;
}

.close-panel-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #718096;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.close-panel-btn:hover {
    background: #f7fafc;
    color: #4a5568;
}

.filter-panel-content {
    padding: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.9rem;
    background: white;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #3182ce;
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.date-range {
    display: flex;
    align-items: center;
    gap: 12px;
}

.date-range span {
    color: #718096;
    font-size: 0.85rem;
}

.date-range input {
    flex: 1 1;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.clear-filters-btn,
.apply-filters-btn {
    flex: 1 1;
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.clear-filters-btn {
    background: white;
    border: 1px solid #e2e8f0;
    color: #4a5568;
}

.clear-filters-btn:hover {
    background: #f7fafc;
}

.apply-filters-btn {
    background: #3182ce;
    border: 1px solid #3182ce;
    color: white;
}

.apply-filters-btn:hover {
    background: #2c5282;
}

/* Responsive Design */
@media (max-width: 768px) {
    .counters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .counters-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .header-actions {
        justify-content: flex-start;
    }
    
    .filter-panel {
        width: 100%;
        right: auto;
        left: 0;
    }
    
    .counter-card {
        padding: 16px;
    }
    
    .counter-number {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .dashboard-counters {
        padding: 16px;
    }
    
    .counter-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .filter-panel-content {
        padding: 16px;
    }
    
    .date-range {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-actions {
        flex-direction: column;
    }
}



.roof-safety-container {
  display: block;
  height: 100vh;
  max-height: 100vh;
  background: #f5f6fa;
  overflow: hidden;
  position: relative;
  padding-top: 72px;
  box-sizing: border-box;
}

.page-content {
  display: flex;
  padding: 32px;
  gap: 32px;
}

.left-panel {
  width: 280px;
  flex-shrink: 0;
}

.left-panel h2 {
  font-size: 20px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 24px;
  padding: 0;
}

.safety-nav {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.nav-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 14px;
  font-weight: 500;
  color: #637587;
  border-bottom: 1px solid #e1e4e8;
  transition: all 0.2s ease;
  cursor: pointer;
}

.nav-item:last-child {
  border-bottom: none;
}

.nav-item.active {
  background: #f0f2f5;
  color: #1a1f36;
  font-weight: 600;
}

.main-panel {
  flex: 1 1;
}

.main-panel h1 {
  font-size: 24px;
  margin-bottom: 24px;
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* Search filter container styles moved to individual component CSS files */

/* Search styles moved to individual component CSS files */

/* Filter button styles moved to individual component CSS files */

/* Filter button icon styles moved to individual component CSS files */

.table-container {
  width: 100%;
  overflow-x: auto;
  min-height: 0; /* prevent large empty space when few rows */
}

/* Ensure each safety table doesn't reserve extra height */
.ladders-table .table-container,
.staticlines-table .table-container,
.handrails-table .table-container,
.abseilsystems-table .table-container,
.walkways-table .table-container,
.anchorpoints-table .table-container,
.cradles-table .table-container {
  min-height: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  height: auto;
}

/* Prevent table from stretching on pages with few rows */
.ladders-table table,
.staticlines-table table,
.handrails-table table,
.abseilsystems-table table,
.walkways-table table {
  height: auto;
}

th, td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e1e4e8;
  white-space: nowrap;
}

/* Align rows to the top and keep consistent row height */
.ladders-table tr,
.staticlines-table tr,
.handrails-table tr,
.abseilsystems-table tr,
.walkways-table tr {
  vertical-align: top;
}

.ladders-table tbody tr,
.staticlines-table tbody tr,
.handrails-table tbody tr,
.abseilsystems-table tbody tr,
.walkways-table tbody tr {
  height: 60px;
  min-height: 60px;
}

th:last-child, 
td:last-child {
  padding-right: 16px;
}

th:first-child, 
td:first-child {
  padding-left: 16px;
}

/* Scope dashboard-only badge styles to avoid overriding table badges */
.roof-dashboard-wrapper .status-badge {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
}

.roof-dashboard-wrapper .status-badge.passed {
  background: #e6f4ea;
  color: #1e8e3e;
}

.roof-dashboard-wrapper .status-badge.failed {
  background: #fce8e6;
  color: #d93025;
}

.arrow {
  transform: rotate(90deg);
  transition: transform 0.2s ease;
}

.nav-item.active .arrow {
  transform: rotate(270deg);
}

.nav-item:hover {
  background: #f8f9fa;
  color: #1a1f36;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  background: #1A80E5;
  color: white;
  font-family: Inter, sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-sizing: border-box;
  margin: 0;
}

.btn:hover {
  background: #F0F0F5;
  color: #1A80E5;
}

.btn-secondary {
  background: white;
  color: #1A80E5;
  border: 1px solid #E1E4E8;
}

.btn-secondary:hover {
  background: #F0F0F5;
  border-color: #1A80E5;
}

.table-section,
.ladders-table.table-section,
.staticlines-table.table-section,
.handrails-table.table-section,
.abseilsystems-table.table-section,
.walkways-table.table-section,
.anchorpoints-table.table-section {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: white;
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  flex: 1 1 auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
}

.table-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  background: white;
  width: 100%;
  box-sizing: border-box;
  border-bottom: 1px solid #e1e4e8;
}

.table-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
  height: 48px;
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 12px;
  padding: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-content h2 {
  margin: 0 0 24px 0;
  color: #1a1f36;
  font-size: 20px;
  font-weight: 600;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  gap: 16px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #1a1f36;
  font-size: 14px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  font-size: 14px;
  color: #1a1f36;
  background: #f8f9fa;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1A80E5;
  background: white;
  box-shadow: 0 0 0 3px rgba(26, 128, 229, 0.1);
}

.form-group textarea {
  min-height: 80px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e1e4e8;
}

.close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 24px;
  color: #637587;
  cursor: pointer;
  transition: color 0.2s ease;
}

.close:hover {
  color: #1a1f36;
}

/* Make the form scrollable on smaller screens */
@media (max-width: 768px) {
  .modal-content {
    width: 95%;
    max-height: 95vh;
    padding: 20px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

.edit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #F0F0F5;
  border: 1px solid #E1E4E8;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-btn:hover {
  background: #E1E4E8;
  border-color: #1A80E5;
}

.edit-btn i {
  color: #637587;
  font-size: 14px;
}

.edit-btn:hover i {
  color: #1A80E5;
}

.btn-danger {
  background: #fff;
  color: #dc3545;
  border: 1px solid #dc3545;
}

.btn-danger:hover {
  background: #dc3545;
  color: #fff;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
}

.modal-actions > div {
  display: flex;
  gap: 8px;
}

.status-select {
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 12px;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
}

.status-select.unknown {
  background: #f0f2f5;
  color: #637587;
}

.status-select.passed {
  background: #e6f4ea;
  color: #1e8e3e;
}

.status-select.failed {
  background: #fce8e6;
  color: #d93025;
}

/* Dashboard Styles */
.dashboard-section {
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.dashboard-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.dashboard-overview {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dashboard-overview h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5rem;
}

.status-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 20px;
  gap: 20px;
}

.status-card {
  background-color: #f8f9fa;
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.status-card h3 {
  margin-top: 0;
  margin-bottom: 15px;
  color: #333;
  font-size: 1.2rem;
}

.status-counts {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}

.count-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 50px;
}

.count {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.label {
  font-size: 0.8rem;
  color: #666;
}

.count-item.pass .count {
  color: #28a745;
}

.count-item.fail .count {
  color: #dc3545;
}

.count-item.pending .count {
  color: #ffc107;
}

.count-item.unknown .count {
  color: #6c757d;
}

.upcoming-tests {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.upcoming-tests h2 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
  font-size: 1.5rem;
}

/* Davit Bases Styles */
.davit-bases-section {
  width: 100%;
  padding: 20px;
}

.davit-bases-section h1 {
  margin-top: 0;
  margin-bottom: 20px;
  color: #333;
}

/* Common Styles for all safety components */
.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 400px;
  text-align: center;
}

.coming-soon-section h1 {
  margin-bottom: 10px;
  color: #333;
}

.coming-soon-section p {
  color: #666;
  font-size: 1.2rem;
}


/* Ensure all modals look consistent */
.modal {
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border-radius: 8px;
  width: 500px;
  max-width: 90%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* Add additional responsive styles */
@media (max-width: 768px) {
  .status-cards {
    grid-template-columns: 1fr;
  }
  
  .count-item {
    min-width: 40px;
  }
  
  .count {
    font-size: 1.2rem;
  }
  
  .label {
    font-size: 0.7rem;
  }
}

/* Roof Safety Dashboard Styles - Matching Fire Safety Design */
.roof-dashboard-wrapper {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Ensure the whole dashboard fits without scrolling */
  overflow: hidden;
  box-sizing: border-box;
}


.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.dashboard-title {
  color: #0c437c !important;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 16px;
}

.btn,
.btn-primary,
.btn-small {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.btn-primary,
.btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover,
.btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  background: var(--card-accent, linear-gradient(90deg, #3b82f6 0%, #2563eb 100%));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #e0e7ff;
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  background: var(--icon-bg, linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%));
  color: #3b82f6;
  color: var(--icon-fg, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-shrink: 0;
}

.dashboard-card-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.dashboard-card-label {
  color: hsl(217, 91%, 60%) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  margin: 0 !important;
  width: 100% !important;
  line-height: 1.1 !important;
}

.dashboard-card-numbers {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  align-items: flex-start !important;
}

/*
  Status themed dashboard cards
  Usage options (either):
   - Add class on the card: .dashboard-card.status-passed
   - Or add attribute:      .dashboard-card[data-status="Passed"]
*/

/* Total Assets (blue) */
.dashboard-card.status-total,
.dashboard-card[data-status="Total Assets"] {
  --card-accent: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  --icon-bg: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  --icon-fg: #3b82f6;
}

/* Passed (green) */
.dashboard-card.status-passed,
.dashboard-card[data-status="Passed"] {
  --card-accent: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  --icon-bg: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  --icon-fg: #16a34a;
}

/* Failed (red) */
.dashboard-card.status-failed,
.dashboard-card[data-status="Failed"] {
  --card-accent: linear-gradient(90deg, #ef4444 0%, #dc2626 100%);
  --icon-bg: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
  --icon-fg: #dc2626;
}

/* Pending (amber) */
.dashboard-card.status-pending,
.dashboard-card[data-status="Pending"] {
  --card-accent: linear-gradient(90deg, #f59e0b 0%, #d97706 100%);
  --icon-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  --icon-fg: #d97706;
}

/* Overdue (soft red) */
.dashboard-card.status-overdue,
.dashboard-card[data-status="Overdue"] {
  --card-accent: linear-gradient(90deg, #f87171 0%, #ef4444 100%);
  --icon-bg: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  --icon-fg: #ef4444;
}

/* Never Tested (yellow) */
.dashboard-card.status-never-tested,
.dashboard-card[data-status="Never Tested"] {
  --card-accent: linear-gradient(90deg, #fbbf24 0%, #f59e0b 100%);
  --icon-bg: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  --icon-fg: #b45309;
}

/* Unknown (slate) */
.dashboard-card.status-unknown,
.dashboard-card[data-status="Unknown"] {
  --card-accent: linear-gradient(90deg, #94a3b8 0%, #64748b 100%);
  --icon-bg: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  --icon-fg: #475569;
}

/* Expiring Soon (orange) */
.dashboard-card.status-expiring-soon,
.dashboard-card[data-status="Expiring Soon"] {
  --card-accent: linear-gradient(90deg, #fb923c 0%, #f97316 100%);
  --icon-bg: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  --icon-fg: #ea580c;
}

.dashboard-card-total {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  text-align: left !important;
  align-self: flex-start !important;
  margin-top: 4px !important;
}

.dashboard-card-failed {
  display: none;
}

.dashboard-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 0;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.dashboard-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  min-width: 0;
}

.dashboard-panel:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.2);
}

.panel-title {
  font-size: 1.1em;
  color: #0c437c !important;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title svg,
.panel-title .fa-icon {
  color: #0c437c !important;
}

.attention-list {
  list-style: none;
  padding: 0 0 12px 0;
  margin: 0;
}

.attention-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  color: #d32f2f;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.attention-list li:last-child {
  border-bottom: none;
}


.attention-icon {
  color: #d32f2f;
  font-size: 1.2em;
}

.attention-label {
  color: #1F2937;
  font-weight: 500;
}

.attention-failed {
  color: #1F2937;
  font-weight: 600;
}

.no-issues {
  color: #10B981;
  font-weight: 500;
  text-align: left;
  font-size: 1em;
}

.next-inspection-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-inspection-date {
  color: #1F2937;
  font-size: 1em;
  margin-bottom: 8px;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .dashboard-bottom-panels {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
.dashboard-panel.activity-panel {
  grid-column: 1 / -1;
}

.dashboard-panel.activity-panel > div > div {
  background-color: #fff !important;
}

.dashboard-panel.activity-panel > div > div > div {
  background-color: #fff !important;
}

.dashboard-panel.activity-panel div {
  background-color: #fff !important;
}

.dashboard-panel.activity-panel > div:first-child {
  flex-shrink: 0;
}

.dashboard-panel.activity-panel > div:last-child {
  flex: 1 1;
  min-height: 0;
  overflow-y: auto;
}
}

@media (max-width: 900px) {
  .dashboard-bottom-panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard-panel {
    min-width: 0;
    padding: 20px 16px;
  }
  .dashboard-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .roof-dashboard-wrapper {
    padding: 8px;
  }
  .dashboard-panel {
    padding: 12px 8px;
  }
  .dashboard-card {
    padding: 12px 8px;
    min-width: 0;
  }
}

.dashboard-actions .btn,
.dashboard-actions .btn-primary,
.dashboard-actions .btn-small,
.next-inspection-panel .btn,
.next-inspection-panel .btn-primary,
.next-inspection-panel .btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.dashboard-actions .btn:hover,
.dashboard-actions .btn-primary:hover,
.dashboard-actions .btn-small:hover,
.next-inspection-panel .btn:hover,
.next-inspection-panel .btn-primary:hover,
.next-inspection-panel .btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

/* Make sure the old styles don't interfere */
.dashboard-section {
  width: 100%;
}

.status-card {
  display: none; /* Hide old cards */
}

.upcoming-tests {
  display: none; /* Hide old upcoming tests section */
}

.roof-safety-content {
  display: flex;
  flex: 1 1;
  padding: 24px;
  padding-top: 30px;
  gap: 24px;
  background-color: #f5f6fa;
  overflow: hidden;
  box-sizing: border-box;
  position: absolute;
  top: 72px;
  left: 280px;
  right: 0;
  bottom: 0;
}

/* Sidebar Styles - Matching Property Dashboard */
.roof-safety-sidebar {
  position: fixed;
  left: 0;
  top: 72px;
  bottom: 0;
  background: white;
  padding: 24px 16px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  box-sizing: border-box;
  width: 280px;
  overflow-y: auto;
  z-index: 90;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.roof-safety-sidebar::-webkit-scrollbar {
  width: 4px;
}

.roof-safety-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.roof-safety-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.roof-safety-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.5);
}

.roof-safety-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1;
  padding-top: 8px;
  min-height: 0;
}

.roof-safety-menu-item {
  padding: 10px 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  font: inherit;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
  gap: 12px;
}

.roof-safety-menu-item:hover {
  background-color: #f8fafc;
  color: #3b82f6;
}

.roof-safety-menu-item.active {
  background-color: #f0f9ff;
  color: #3b82f6;
  font-weight: 600;
}

.roof-safety-menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roof-safety-menu-label {
  flex: 1 1;
  text-align: left;
}

.roof-safety-menu-arrow {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.6;
  flex-shrink: 0;
}

.roof-safety-main {
  flex: 1 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 24px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

/* Responsive Design */
@media (max-width: 768px) {
  .roof-safety-content {
    flex-direction: column;
    margin-left: 0;
    padding: 16px;
  }
  
  .roof-safety-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    margin-bottom: 20px;
  }
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
.sidebar-back-btn:hover {
  color: #3b82f6;
  background-color: #f8fafc;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2em;
  color: #666;
}

.error-message {
  color: #dc3545;
  text-align: center;
  padding: 20px;
  font-size: 1.2em;
}



.anchor-points-section {
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.anchor-points-section h1 {
  border-bottom: none !important;
}

/* Clean search bar styling - no conflicts */
.anchor-points-section .search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  border-bottom: none !important;
}

/* Override any inherited table-controls styling */
.anchor-points-section .search-filter-container,
.anchor-points-section .filter-actions,
.anchor-points-section .table-controls {
  border-bottom: none !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
}

.anchor-points-section .search-bar {
  position: relative;
  flex: 1 1;
  max-width: 400px;
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 48px;
  box-sizing: border-box;
}

.anchor-points-section .search-bar input {
  width: 100%;
  padding: 0 0 0 18px;
  margin: 0;
  border: none;
  outline: none;
  font-size: 14px;
  background: transparent;
  color: #333;
  box-sizing: border-box;
}

.anchor-points-section .search-bar input:focus {
  outline: none;
}

.anchor-points-section .search-bar:focus-within {
  border-color: #1A80E5;
  box-shadow: 0 0 0 3px rgba(26, 128, 229, 0.1);
}

.anchor-points-section .search-bar svg {
  margin-right: 0;
  color: #637587;
  font-size: 16px;
  flex-shrink: 0;
}

.anchor-points-section .filter-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.anchor-points-section .table-buttons {
  display: flex;
  gap: 10px;
}

.anchor-points-section .btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.anchor-points-section .btn-primary {
  background-color: #007bff;
  color: white;
}

.anchor-points-section .btn-primary:hover {
  background-color: #0056b3;
}

.anchor-points-section .btn-secondary {
  background-color: #6c757d;
  color: white;
}

.anchor-points-section .btn-secondary:hover {
  background-color: #545b62;
}

.anchor-points-section .filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #333;
}

.anchor-points-section .filter-btn:hover {
  background: #f8f9fa;
  border-color: #1A80E5;
}

.roof-safety-container, .main-panel {
  width: 100vw;
  max-width: 100vw;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: none;
}

.table-section,
.anchorpoints-table.table-section {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  border: none;
  padding: 0 !important;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
}

.table-container,
.anchorpoints-table .table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
  flex: 1 1;
  min-height: 0;
  max-height: calc(100vh - 375px);
}

table,
.anchorpoints-table table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: #fff;
  margin: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
}

thead, tbody {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

/* Table headers */
.anchorpoints-table thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

tr {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
  line-height: 1.4 !important;
  display: table-row !important;
  transition: background 0.15s;
}

th {
  padding: 16px 12px !important;
  letter-spacing: 0.5px;
  vertical-align: middle !important;
  text-align: left !important;
  border-bottom: 2px solid #e5e7eb !important;
  background: #fff !important;
  box-sizing: border-box !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #374151 !important;
  white-space: nowrap;
}

/* Table rows */
.anchorpoints-table tbody tr {
  border-bottom: 1px solid #e5e7eb !important;
}

.anchorpoints-table tbody tr:hover {
  background: #f9fafb !important;
}

.anchorpoints-table tbody tr:nth-child(even) {
  background-color: #fff !important;
}

.anchorpoints-table tbody tr:nth-child(odd) {
  background-color: #f9fafb !important;
}

td {
  padding: 12px !important;
  vertical-align: middle !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

.table-section::after, .table-container::after {
  display: none !important;
}

.table-section, .table-container {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

.status-select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
}

.status-select.pass {
  background-color: #d4edda;
  color: #155724;
}

.status-select.fail {
  background-color: #f8d7da;
  color: #721c24;
}

.status-select.pending {
  background-color: #fff3cd;
  color: #856404;
}

.status-select.unknown {
  background-color: #e2e3e5;
  color: #383d41;
}

/* Modal Styles */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.modal {
  position: relative !important;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 32px 32px 16px 32px !important;
  max-width: 520px !important;
  width: 100% !important;
  min-width: 320px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  z-index: 100000 !important;
  display: block !important;
}

/* Upload Modal Specific Styles */
.upload-modal {
  max-width: 650px !important;
  width: 100% !important;
  max-height: calc(100vh - 40px) !important;
  padding: 20px 20px 12px 20px !important;
  overflow-y: auto !important;
  margin: 0 !important;
}

.upload-modal .modal-header {
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #e1e4e8 !important;
}

.upload-modal .modal-header h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #1a1f36 !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.modal-icon {
  color: #1A80E5 !important;
  font-size: 18px !important;
}

.upload-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.upload-form .form-group {
  margin-bottom: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
}

.upload-form .form-group label {
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #1a1f36 !important;
  margin-bottom: 8px !important;
  text-align: left !important;
  width: 100% !important;
}

.upload-input,
.upload-textarea {
  width: 100% !important;
  padding: 12px 16px !important;
  border: 1px solid #e1e4e8 !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  color: #1a1f36 !important;
  background: #fff !important;
  transition: all 0.2s ease !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  max-width: none !important;
}

.upload-input:focus,
.upload-textarea:focus {
  outline: none !important;
  border-color: #1A80E5 !important;
  box-shadow: 0 0 0 3px rgba(26, 128, 229, 0.1) !important;
}

.upload-input:hover,
.upload-textarea:hover {
  border-color: #1A80E5 !important;
}

.readonly-input {
  background: #f8f9fa !important;
  color: #6c757d !important;
  cursor: not-allowed !important;
}

.upload-textarea {
  resize: vertical !important;
  min-height: 60px !important;
  font-family: inherit !important;
}

.upload-actions {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 12px !important;
  margin-top: 16px !important;
  padding-top: 12px !important;
  border-top: none !important;
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.btn-cancel {
  padding: 10px 20px !important;
  background: #6c757d !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.btn-cancel:hover {
  background: #545b62 !important;
}

.btn-upload {
  padding: 10px 20px !important;
  background: #1A80E5 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.btn-upload:hover {
  background: #1574F6 !important;
}

.btn-icon {
  font-size: 14px !important;
}

@keyframes modalFadeInOpacity {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: none;
}

.modal-header h2 {
  margin: 0 auto;
  font-size: 22px;
  font-weight: 700;
  color: #1a1f36;
  text-align: center;
  flex: 1 1;
}

.close-btn {
  position: absolute;
  right: 16px;
  top: 16px;
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #637587;
  padding: 8px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: all 0.2s ease;
  z-index: 10;
}

.close-btn:hover {
  background-color: #f8f9fa;
  color: #1a1f36;
}

.form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #637587;
  margin-bottom: 6px;
  font-weight: 500;
  text-align: center;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  max-width: 350px;
  padding: 10px 12px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 15px;
  color: #1a1f36;
  background: white;
  transition: all 0.2s ease;
  margin: 0 auto;
  display: block;
}

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
  border-color: #1A80E5;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1A80E5;
  box-shadow: 0 0 0 3px rgba(26, 128, 229, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.modal-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding-top: 0;
  border-top: none;
  margin-bottom: 0;
  width: 100%;
  max-width: 350px;
  margin-left: auto;
  margin-right: auto;
}

/* Duplicate button styles removed - using scoped styles above */

/* Responsive adjustments */
@media (max-width: 480px) {
  .modal {
    padding: 20px;
  }
  
  .modal-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
  }
  
  .form-group {
    margin-bottom: 12px;
  }
  
  .modal-actions {
    margin-top: 20px;
    padding-top: 12px;
  }
  
  .btn {
    padding: 8px 14px;
    font-size: 12px;
    min-width: 80px;
  }
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
}

.error-message {
  color: #dc3545;
  text-align: center;
  padding: 20px;
}

.edit-icon-btn {
  width: 32px;
  height: 32px;
  min-width: 32px;
  min-height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #637587;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-size: 18px;
  padding: 0;
}
.edit-icon-btn:hover {
  background: #e3f0fd;
  color: #1574F6;
}

.view-test-data-btn {
  padding: 6px 12px;
  font-size: 13px;
  min-width: 60px;
  border-radius: 6px;
  background: #f8f9fa;
  color: #1A80E5;
  border: 1px solid #E1E4E8;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.view-test-data-btn:hover {
  background: #e3f0fd;
  color: #1574F6;
  border-color: #1574F6;
}


/* Table column widths */
/* Column widths removed - using auto layout for flexibility across different table structures */

/* Status badge alignment */
td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors */
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
}

.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
}

/* Ensure all table content is properly aligned */
td > * {
  vertical-align: middle !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Consistent row height and alignment - handled above with .anchorpoints-table specific rules */

/* Fix any misalignment in specific columns */
td:nth-child(4) { /* Status column */
  text-align: left !important;
}

td:nth-child(7) { /* Actions column */
  text-align: left !important;
}

/* Text truncation for long content columns */
td:nth-child(1), /* ID or Name column */
td:nth-child(2), /* Location column */
td:nth-child(3), /* Type column */
td:nth-child(4), /* Status column */
td:nth-child(5), /* Last Test Date column */
td:nth-child(6) { /* Next Test Date column */
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  position: relative !important;
}

/* Universal tooltip for all truncated columns */
td[data-truncated="true"]:hover::after {
  content: attr(data-full-text) !important;
  position: fixed !important;
  top: calc(0px - 60px) !important;
  top: calc(var(--tooltip-y, 0px) - 60px) !important;
  left: calc(0px - 160px) !important;
  left: calc(var(--tooltip-x, 0px) - 160px) !important;
  width: 320px !important;
  background: #3b82f6 !important;
  color: white !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: normal !important;
  z-index: 999999 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  pointer-events: none !important;
  opacity: 0.98 !important;
  text-align: center !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
}

/* Only show tooltip if text is actually truncated */
td[data-truncated="false"]:hover::after {
  display: none !important;
}

/* Universal arrow for all tooltips */
td[data-truncated="true"]:hover::before {
  content: '' !important;
  position: fixed !important;
  top: calc(0px - 54px) !important;
  top: calc(var(--tooltip-y, 0px) - 54px) !important;
  left: calc(0px - 6px) !important;
  left: calc(var(--tooltip-x, 0px) - 6px) !important;
  border: 6px solid transparent !important;
  border-top-color: #3b82f6 !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
}


/* Action buttons styling - matching Documents page style */
.action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.action-btn {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* All action buttons - simple blue icons like Documents page */
.action-btn.view,
.action-btn.edit,
.action-btn.delete {
  background: none;
  color: #1574F6;
}

.action-btn.view:hover,
.action-btn.edit:hover,
.action-btn.delete:hover {
  background: none;
  color: #1264D9;
}

.system-blue {
  background: #1A80E5 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(26,128,229,0.04);
  transition: background 0.2s, color 0.2s;
}
.system-blue:hover {
  background: #1574F6 !important;
  color: #fff !important;
}

/* Status Badge Styles */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.status-pass,
.status-passed,
.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
}

.status-fail,
.status-failed,
.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-unknown {
  background-color: #f3f4f6;
  color: #6b7280;
}

.status-overdue {
  background-color: #fecaca;
  color: #b91c1c;
  animation: pulse 2s infinite;
} 
/* Cradles Table - Scrollable Container */
.anchor-points-section {
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.anchor-points-section h1 {
  border-bottom: none !important;
}

/* Search and filter container */
.anchor-points-section .search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-shrink: 0;
}

/* Table section - no scroll, just container */
.table-section.cradles-table {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  border: none;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Table container - this scrolls */
.table-section.cradles-table .table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
  flex: 1 1;
  min-height: 0;
  max-height: calc(100vh - 375px);
}

/* Table styling */
.table-section.cradles-table table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: #fff;
  margin: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
}

/* Table headers */
.table-section.cradles-table thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.table-section.cradles-table th {
  padding: 16px 12px !important;
  letter-spacing: 0.5px;
  vertical-align: middle !important;
  text-align: left !important;
  border-bottom: 2px solid #e5e7eb !important;
  background: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #374151 !important;
  white-space: nowrap;
}

/* Table rows */
.table-section.cradles-table tbody tr {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
  vertical-align: middle !important;
  transition: background 0.15s;
}

.table-section.cradles-table tbody tr:hover {
  background: #f9fafb !important;
}

.table-section.cradles-table tbody tr:nth-child(even) {
  background-color: #fff !important;
}

.table-section.cradles-table tbody tr:nth-child(odd) {
  background-color: #f9fafb !important;
}

/* Table cells */
.table-section.cradles-table td {
  padding: 12px !important;
  vertical-align: middle !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

/* Status Badge Styles - matching AnchorPoints.css exactly */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Status badge alignment - EXACT match to AnchorPoints.css */
td .status-badge,
.table-section.cradles-table td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors - EXACT match to AnchorPoints.css */
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS,
.status-pass,
.status-passed,
.status-PASS,
.table-section.cradles-table .status-select.pass,
.table-section.cradles-table .status-badge.status-pass,
.table-section.cradles-table .status-badge.status-passed,
.table-section.cradles-table .status-badge.status-PASS,
.table-section.cradles-table td .status-badge.status-pass,
.table-section.cradles-table td .status-badge.status-passed,
.table-section.cradles-table td .status-badge.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL,
.status-fail,
.status-failed,
.status-FAIL,
.table-section.cradles-table .status-select.fail,
.table-section.cradles-table .status-badge.status-fail,
.table-section.cradles-table .status-badge.status-failed,
.table-section.cradles-table .status-badge.status-FAIL,
.table-section.cradles-table td .status-badge.status-fail,
.table-section.cradles-table td .status-badge.status-failed,
.table-section.cradles-table td .status-badge.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-unknown {
  background-color: #f3f4f6;
  color: #6b7280;
}

.status-overdue {
  background-color: #fecaca;
  color: #b91c1c;
  animation: pulse 2s infinite;
}

/* Action buttons */
.table-section.cradles-table .action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.table-section.cradles-table .action-btn {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1574F6;
}

.table-section.cradles-table .action-btn:hover {
  color: #1264D9;
}

/* Ensure page doesn't scroll */
.anchor-points-section {
  overflow: hidden !important;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
}

.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.modal h2 {
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: #333;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 1rem;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  gap: 1rem;
}

.modal-actions button {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

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

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.btn-danger {
  background-color: #dc3545;
  color: white;
}

.btn-danger:hover {
  background-color: #c82333;
}

.modal-actions div {
  display: flex;
  gap: 0.5rem;
} 
/* Ladders Table - Scrollable Container */
.anchor-points-section {
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.anchor-points-section h1 {
  border-bottom: none !important;
}

/* Search and filter container */
.anchor-points-section .search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-shrink: 0;
}

/* Table section - no scroll, just container */
.table-section.ladders-table {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  border: none;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Table container - this scrolls */
.table-section.ladders-table .table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
  flex: 1 1;
  min-height: 0;
  max-height: calc(100vh - 375px);
}

/* Table styling */
.table-section.ladders-table table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: #fff;
  margin: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
}

/* Table headers */
.table-section.ladders-table thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.table-section.ladders-table th {
  padding: 16px 12px !important;
  letter-spacing: 0.5px;
  vertical-align: middle !important;
  text-align: left !important;
  border-bottom: 2px solid #e5e7eb !important;
  background: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #374151 !important;
  white-space: nowrap;
}

/* Table rows */
.table-section.ladders-table tbody tr {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
  vertical-align: middle !important;
  transition: background 0.15s;
}

.table-section.ladders-table tbody tr:hover {
  background: #f9fafb !important;
}

.table-section.ladders-table tbody tr:nth-child(even) {
  background-color: #fff !important;
}

.table-section.ladders-table tbody tr:nth-child(odd) {
  background-color: #f9fafb !important;
}

/* Table cells */
.table-section.ladders-table td {
  padding: 12px !important;
  vertical-align: middle !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

/* Status Badge Styles - matching AnchorPoints.css exactly */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Status badge alignment - EXACT match to AnchorPoints.css */
td .status-badge,
.table-section.ladders-table td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors - EXACT match to AnchorPoints.css */
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS,
.status-pass,
.status-passed,
.status-PASS,
.table-section.ladders-table .status-select.pass,
.table-section.ladders-table .status-badge.status-pass,
.table-section.ladders-table .status-badge.status-passed,
.table-section.ladders-table .status-badge.status-PASS,
.table-section.ladders-table td .status-badge.status-pass,
.table-section.ladders-table td .status-badge.status-passed,
.table-section.ladders-table td .status-badge.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL,
.status-fail,
.status-failed,
.status-FAIL,
.table-section.ladders-table .status-select.fail,
.table-section.ladders-table .status-badge.status-fail,
.table-section.ladders-table .status-badge.status-failed,
.table-section.ladders-table .status-badge.status-FAIL,
.table-section.ladders-table td .status-badge.status-fail,
.table-section.ladders-table td .status-badge.status-failed,
.table-section.ladders-table td .status-badge.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-pending,
.table-section.ladders-table .status-select.pending,
.table-section.ladders-table .status-badge.status-pending {
  background-color: #fef3c7;
  color: #92400e;
  border-radius: 12px;
}

.status-unknown,
.table-section.ladders-table .status-select.unknown,
.table-section.ladders-table .status-badge.status-unknown {
  background-color: #f3f4f6;
  color: #6b7280;
  border-radius: 12px;
}

/* Legacy status-select styling for backward compatibility */
.table-section.ladders-table .status-select {
  padding: 4px 8px;
  border-radius: 12px;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Action buttons */
.table-section.ladders-table .action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.table-section.ladders-table .action-btn {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1574F6;
}

.table-section.ladders-table .action-btn:hover {
  color: #1264D9;
}

/* Ensure page doesn't scroll */
.anchor-points-section {
  overflow: hidden !important;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
}

/* === AnchorPoints exact status block (do not modify) === */
/* Status badge alignment */
td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors */
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
}

.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
}
/* === end exact block === */


/* Walkways Table - Scrollable Container */
.anchor-points-section {
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.anchor-points-section h1 {
  border-bottom: none !important;
}

/* Search and filter container */
.anchor-points-section .search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-shrink: 0;
}

/* Table section - no scroll, just container */
.table-section.walkways-table {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  border: none;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Table container - this scrolls */
.table-section.walkways-table .table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
  flex: 1 1;
  min-height: 0;
  max-height: calc(100vh - 375px);
}

/* Table styling */
.table-section.walkways-table table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: #fff;
  margin: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
}

/* Table headers */
.table-section.walkways-table thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.table-section.walkways-table th {
  padding: 16px 12px !important;
  letter-spacing: 0.5px;
  vertical-align: middle !important;
  text-align: left !important;
  border-bottom: 2px solid #e5e7eb !important;
  background: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #374151 !important;
  white-space: nowrap;
}

/* Table rows */
.table-section.walkways-table tbody tr {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
  vertical-align: middle !important;
  transition: background 0.15s;
}

.table-section.walkways-table tbody tr:hover {
  background: #f9fafb !important;
}

.table-section.walkways-table tbody tr:nth-child(even) {
  background-color: #fff !important;
}

.table-section.walkways-table tbody tr:nth-child(odd) {
  background-color: #f9fafb !important;
}

/* Ensure .status-select looks identical to Anchor Points badges */
.table-section.walkways-table td .status-select,
.walkways-table td .status-select {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
  border: none !important;
}

.table-section.walkways-table td .status-select.pass,
.table-section.walkways-table td .status-select.passed,
.table-section.walkways-table td .status-select.PASS {
  background-color: #22c55e !important;
  color: #ffffff !important;
}

.table-section.walkways-table td .status-select.fail,
.table-section.walkways-table td .status-select.failed,
.table-section.walkways-table td .status-select.FAIL {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Table cells */
.table-section.walkways-table td {
  padding: 12px !important;
  vertical-align: middle !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

/* Status Badge Styles - matching AnchorPoints.css exactly */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Status badge alignment - EXACT match to AnchorPoints.css */
td .status-badge,
.table-section.walkways-table td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors - EXACT match to AnchorPoints.css */
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS,
.status-pass,
.status-passed,
.status-PASS,
.table-section.walkways-table .status-select.pass,
.table-section.walkways-table .status-badge.status-pass,
.table-section.walkways-table .status-badge.status-passed,
.table-section.walkways-table .status-badge.status-PASS,
.table-section.walkways-table td .status-badge.status-pass,
.table-section.walkways-table td .status-badge.status-passed,
.table-section.walkways-table td .status-badge.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL,
.status-fail,
.status-failed,
.status-FAIL,
.table-section.walkways-table .status-select.fail,
.table-section.walkways-table .status-badge.status-fail,
.table-section.walkways-table .status-badge.status-failed,
.table-section.walkways-table .status-badge.status-FAIL,
.table-section.walkways-table td .status-badge.status-fail,
.table-section.walkways-table td .status-badge.status-failed,
.table-section.walkways-table td .status-badge.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-pending,
.table-section.walkways-table .status-select.pending,
.table-section.walkways-table .status-badge.status-pending {
  background-color: #fef3c7;
  color: #92400e;
  border-radius: 12px;
}

.status-unknown,
.table-section.walkways-table .status-select.unknown,
.table-section.walkways-table .status-badge.status-unknown {
  background-color: #f3f4f6;
  color: #6b7280;
  border-radius: 12px;
}

/* Legacy status-select styling for backward compatibility */
.table-section.walkways-table .status-select {
  padding: 4px 8px;
  border-radius: 12px;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Action buttons */
.table-section.walkways-table .action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.table-section.walkways-table .action-btn {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1574F6;
}

.table-section.walkways-table .action-btn:hover {
  color: #1264D9;
}

/* Ensure page doesn't scroll */
.anchor-points-section {
  overflow: hidden !important;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
}

/* === AnchorPoints exact status block (do not modify) === */
/* Status badge alignment - MAXIMUM SPECIFICITY */
.table-section.walkways-table td .status-badge,
.walkways-table td .status-badge,
td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors - MAXIMUM SPECIFICITY - OVERRIDE GLOBAL ROOFSafety.css */
.table-section.walkways-table td .status-badge.status-pass,
.table-section.walkways-table td .status-badge.status-passed,
.table-section.walkways-table td .status-badge.status-PASS,
.table-section.walkways-table td .status-badge.passed,
.walkways-table td .status-badge.status-pass,
.walkways-table td .status-badge.status-passed,
.walkways-table td .status-badge.status-PASS,
.walkways-table td .status-badge.passed,
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS,
.status-badge.passed {
  background-color: #22c55e !important;
  background: #22c55e !important;
  color: white !important;
  border: none !important;
}

.table-section.walkways-table td .status-badge.status-fail,
.table-section.walkways-table td .status-badge.status-failed,
.table-section.walkways-table td .status-badge.status-FAIL,
.table-section.walkways-table td .status-badge.failed,
.walkways-table td .status-badge.status-fail,
.walkways-table td .status-badge.status-failed,
.walkways-table td .status-badge.status-FAIL,
.walkways-table td .status-badge.failed,
.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL,
.status-badge.failed {
  background-color: #ef4444 !important;
  background: #ef4444 !important;
  color: white !important;
  border: none !important;
}
/* === end exact block === */


/* Handrails Table - Scrollable Container */
.anchor-points-section {
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.anchor-points-section h1 {
  border-bottom: none !important;
}

/* Search and filter container */
.anchor-points-section .search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-shrink: 0;
}

/* Table section - no scroll, just container */
.table-section.handrails-table {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  border: none;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Table container - this scrolls */
.table-section.handrails-table .table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
  flex: 1 1;
  min-height: 0;
  max-height: calc(100vh - 375px);
}

/* Table styling */
.table-section.handrails-table table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: #fff;
  margin: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
}

/* Table headers */
.table-section.handrails-table thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.table-section.handrails-table th {
  padding: 16px 12px !important;
  letter-spacing: 0.5px;
  vertical-align: middle !important;
  text-align: left !important;
  border-bottom: 2px solid #e5e7eb !important;
  background: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #374151 !important;
  white-space: nowrap;
}

/* Table rows */
.table-section.handrails-table tbody tr {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
  vertical-align: middle !important;
  transition: background 0.15s;
}

.table-section.handrails-table tbody tr:hover {
  background: #f9fafb !important;
}

.table-section.handrails-table tbody tr:nth-child(even) {
  background-color: #fff !important;
}

.table-section.handrails-table tbody tr:nth-child(odd) {
  background-color: #f9fafb !important;
}

/* Status column sizing - match Anchor Points */
.table-section.handrails-table th:nth-child(9),
.table-section.handrails-table td:nth-child(9) {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  text-align: left !important;
}

/* Ensure .status-select looks identical to Anchor Points badges */
.table-section.handrails-table td .status-select,
.handrails-table td .status-select {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
  border: none !important;
}

.table-section.handrails-table td .status-select.pass,
.table-section.handrails-table td .status-select.passed,
.table-section.handrails-table td .status-select.PASS {
  background-color: #22c55e !important;
  color: #ffffff !important;
}

.table-section.handrails-table td .status-select.fail,
.table-section.handrails-table td .status-select.failed,
.table-section.handrails-table td .status-select.FAIL {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Table cells */
.table-section.handrails-table td {
  padding: 12px !important;
  vertical-align: middle !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

/* All status badge styles removed - using exact Anchor Points block at end of file */

/* Action buttons */
.table-section.handrails-table .action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.table-section.handrails-table .action-btn {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1574F6;
}

.table-section.handrails-table .action-btn:hover {
  color: #1264D9;
}

/* Ensure page doesn't scroll */
.anchor-points-section {
  overflow: hidden !important;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
}

/* === AnchorPoints exact status block (do not modify) === */
/* Status badge alignment - MAXIMUM SPECIFICITY */
.table-section.handrails-table td .status-badge,
.handrails-table td .status-badge,
td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors - MAXIMUM SPECIFICITY - OVERRIDE GLOBAL ROOFSafety.css */
.table-section.handrails-table td .status-badge.status-pass,
.table-section.handrails-table td .status-badge.status-passed,
.table-section.handrails-table td .status-badge.status-PASS,
.table-section.handrails-table td .status-badge.passed,
.handrails-table td .status-badge.status-pass,
.handrails-table td .status-badge.status-passed,
.handrails-table td .status-badge.status-PASS,
.handrails-table td .status-badge.passed,
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS,
.status-badge.passed {
  background-color: #22c55e !important;
  background: #22c55e !important;
  color: white !important;
  border: none !important;
}

.table-section.handrails-table td .status-badge.status-fail,
.table-section.handrails-table td .status-badge.status-failed,
.table-section.handrails-table td .status-badge.status-FAIL,
.table-section.handrails-table td .status-badge.failed,
.handrails-table td .status-badge.status-fail,
.handrails-table td .status-badge.status-failed,
.handrails-table td .status-badge.status-FAIL,
.handrails-table td .status-badge.failed,
.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL,
.status-badge.failed {
  background-color: #ef4444 !important;
  background: #ef4444 !important;
  color: white !important;
  border: none !important;
}
/* === end exact block === */


/* Static Lines Table - Scrollable Container */
.anchor-points-section {
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.anchor-points-section h1 {
  border-bottom: none !important;
}

/* Search and filter container */
.anchor-points-section .search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-shrink: 0;
}

/* Table section - no scroll, just container */
.table-section.staticlines-table {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  border: none;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Table container - this scrolls */
.table-section.staticlines-table .table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
  flex: 1 1;
  min-height: 0;
  max-height: calc(100vh - 375px);
}

/* Table styling */
.table-section.staticlines-table table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: #fff;
  margin: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
}

/* Table headers */
.table-section.staticlines-table thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.table-section.staticlines-table th {
  padding: 16px 12px !important;
  letter-spacing: 0.5px;
  vertical-align: middle !important;
  text-align: left !important;
  border-bottom: 2px solid #e5e7eb !important;
  background: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #374151 !important;
  white-space: nowrap;
}

/* Table rows */
.table-section.staticlines-table tbody tr {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
  vertical-align: middle !important;
  transition: background 0.15s;
}

.table-section.staticlines-table tbody tr:hover {
  background: #f9fafb !important;
}

.table-section.staticlines-table tbody tr:nth-child(even) {
  background-color: #fff !important;
}

.table-section.staticlines-table tbody tr:nth-child(odd) {
  background-color: #f9fafb !important;
}

/* Ensure .status-select looks identical to Anchor Points badges */
.table-section.staticlines-table td .status-select,
.staticlines-table td .status-select {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
  border: none !important;
}

.table-section.staticlines-table td .status-select.pass,
.table-section.staticlines-table td .status-select.passed,
.table-section.staticlines-table td .status-select.PASS {
  background-color: #22c55e !important;
  color: #ffffff !important;
}

.table-section.staticlines-table td .status-select.fail,
.table-section.staticlines-table td .status-select.failed,
.table-section.staticlines-table td .status-select.FAIL {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Status column sizing - match Anchor Points */
.table-section.staticlines-table th:nth-child(9),
.table-section.staticlines-table td:nth-child(9) {
  width: 120px !important;
  min-width: 120px !important;
  max-width: 120px !important;
  text-align: left !important;
}

/* Table cells */
.table-section.staticlines-table td {
  padding: 12px !important;
  vertical-align: middle !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

/* Status Badge Styles - matching AnchorPoints.css exactly */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Status badge alignment - EXACT match to AnchorPoints.css */
td .status-badge,
.table-section.staticlines-table td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors - EXACT match to AnchorPoints.css */
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS,
.status-pass,
.status-passed,
.status-PASS,
.table-section.staticlines-table .status-select.pass,
.table-section.staticlines-table .status-badge.status-pass,
.table-section.staticlines-table .status-badge.status-passed,
.table-section.staticlines-table .status-badge.status-PASS,
.table-section.staticlines-table td .status-badge.status-pass,
.table-section.staticlines-table td .status-badge.status-passed,
.table-section.staticlines-table td .status-badge.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL,
.status-fail,
.status-failed,
.status-FAIL,
.table-section.staticlines-table .status-select.fail,
.table-section.staticlines-table .status-badge.status-fail,
.table-section.staticlines-table .status-badge.status-failed,
.table-section.staticlines-table .status-badge.status-FAIL,
.table-section.staticlines-table td .status-badge.status-fail,
.table-section.staticlines-table td .status-badge.status-failed,
.table-section.staticlines-table td .status-badge.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-pending,
.table-section.staticlines-table .status-select.pending,
.table-section.staticlines-table .status-badge.status-pending {
  background-color: #fef3c7;
  color: #92400e;
  border-radius: 12px;
}

.status-unknown,
.table-section.staticlines-table .status-select.unknown,
.table-section.staticlines-table .status-badge.status-unknown {
  background-color: #f3f4f6;
  color: #6b7280;
  border-radius: 12px;
}

/* Legacy status-select styling for backward compatibility */
.table-section.staticlines-table .status-select {
  padding: 4px 8px;
  border-radius: 12px;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Action buttons */
.table-section.staticlines-table .action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.table-section.staticlines-table .action-btn {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1574F6;
}

.table-section.staticlines-table .action-btn:hover {
  color: #1264D9;
}

/* Ensure page doesn't scroll */
.anchor-points-section {
  overflow: hidden !important;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
}

/* === AnchorPoints exact status block (do not modify) === */
/* Status badge alignment - MAXIMUM SPECIFICITY */
.table-section.staticlines-table td .status-badge,
.staticlines-table td .status-badge,
td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors - MAXIMUM SPECIFICITY - OVERRIDE GLOBAL ROOFSafety.css */
.table-section.staticlines-table td .status-badge.status-pass,
.table-section.staticlines-table td .status-badge.status-passed,
.table-section.staticlines-table td .status-badge.status-PASS,
.table-section.staticlines-table td .status-badge.passed,
.staticlines-table td .status-badge.status-pass,
.staticlines-table td .status-badge.status-passed,
.staticlines-table td .status-badge.status-PASS,
.staticlines-table td .status-badge.passed,
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS,
.status-badge.passed {
  background-color: #22c55e !important;
  background: #22c55e !important;
  color: white !important;
  border: none !important;
}

.table-section.staticlines-table td .status-badge.status-fail,
.table-section.staticlines-table td .status-badge.status-failed,
.table-section.staticlines-table td .status-badge.status-FAIL,
.table-section.staticlines-table td .status-badge.failed,
.staticlines-table td .status-badge.status-fail,
.staticlines-table td .status-badge.status-failed,
.staticlines-table td .status-badge.status-FAIL,
.staticlines-table td .status-badge.failed,
.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL,
.status-badge.failed {
  background-color: #ef4444 !important;
  background: #ef4444 !important;
  color: white !important;
  border: none !important;
}
/* === end exact block === */


/* Abseil Systems Table - Scrollable Container */
.anchor-points-section {
  padding: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.anchor-points-section h1 {
  border-bottom: none !important;
}

/* Search and filter container */
.anchor-points-section .search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 16px;
  flex-shrink: 0;
}

/* Table section - no scroll, just container */
.table-section.abseilsystems-table {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1 1;
  min-height: 0;
  height: auto;
  margin: 0 !important;
  border: none;
  padding: 0 !important;
  box-sizing: border-box;
}

/* Table container - this scrolls */
.table-section.abseilsystems-table .table-container {
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  margin: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
  flex: 1 1;
  min-height: 0;
  max-height: calc(100vh - 375px);
}

/* Table styling */
.table-section.abseilsystems-table table {
  width: 100%;
  min-width: 1000px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: #fff;
  margin: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
}

/* Table headers */
.table-section.abseilsystems-table thead {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
  background: #fff;
}

.table-section.abseilsystems-table th {
  padding: 16px 12px !important;
  letter-spacing: 0.5px;
  vertical-align: middle !important;
  text-align: left !important;
  border-bottom: 2px solid #e5e7eb !important;
  background: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  color: #374151 !important;
  white-space: nowrap;
}

/* Table rows */
.table-section.abseilsystems-table tbody tr {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e5e7eb !important;
  background: transparent !important;
  vertical-align: middle !important;
  transition: background 0.15s;
}

.table-section.abseilsystems-table tbody tr:hover {
  background: #f9fafb !important;
}

.table-section.abseilsystems-table tbody tr:nth-child(even) {
  background-color: #fff !important;
}

.table-section.abseilsystems-table tbody tr:nth-child(odd) {
  background-color: #f9fafb !important;
}

/* Table cells */
.table-section.abseilsystems-table td {
  padding: 12px !important;
  vertical-align: middle !important;
  text-align: left !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
  white-space: nowrap;
}

/* Status Badge Styles - matching AnchorPoints.css exactly */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Status badge alignment - EXACT match to AnchorPoints.css */
td .status-badge,
.table-section.abseilsystems-table td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors - EXACT match to AnchorPoints.css */
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS,
.status-pass,
.status-passed,
.status-PASS,
.table-section.abseilsystems-table .status-select.pass,
.table-section.abseilsystems-table .status-badge.status-pass,
.table-section.abseilsystems-table .status-badge.status-passed,
.table-section.abseilsystems-table .status-badge.status-PASS,
.table-section.abseilsystems-table td .status-badge.status-pass,
.table-section.abseilsystems-table td .status-badge.status-passed,
.table-section.abseilsystems-table td .status-badge.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL,
.status-fail,
.status-failed,
.status-FAIL,
.table-section.abseilsystems-table .status-select.fail,
.table-section.abseilsystems-table .status-badge.status-fail,
.table-section.abseilsystems-table .status-badge.status-failed,
.table-section.abseilsystems-table .status-badge.status-FAIL,
.table-section.abseilsystems-table td .status-badge.status-fail,
.table-section.abseilsystems-table td .status-badge.status-failed,
.table-section.abseilsystems-table td .status-badge.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
  border: none !important;
  border-radius: 12px !important;
}

.status-pending,
.table-section.abseilsystems-table .status-select.pending,
.table-section.abseilsystems-table .status-badge.status-pending {
  background-color: #fef3c7;
  color: #92400e;
  border-radius: 12px;
}

.status-unknown,
.table-section.abseilsystems-table .status-select.unknown,
.table-section.abseilsystems-table .status-badge.status-unknown {
  background-color: #f3f4f6;
  color: #6b7280;
  border-radius: 12px;
}

/* Legacy status-select styling for backward compatibility */
.table-section.abseilsystems-table .status-select {
  padding: 4px 8px;
  border-radius: 12px;
  border: none;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* Action buttons */
.table-section.abseilsystems-table .action-buttons {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.table-section.abseilsystems-table .action-btn {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1574F6;
}

.table-section.abseilsystems-table .action-btn:hover {
  color: #1264D9;
}

/* Ensure page doesn't scroll */
.anchor-points-section {
  overflow: hidden !important;
  height: calc(100vh - 80px);
  max-height: calc(100vh - 80px);
}

/* === AnchorPoints exact status block (do not modify) === */
/* Status badge alignment */
td .status-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  min-width: 60px !important;
  text-align: center !important;
  white-space: nowrap !important;
}

/* Force status badge colors */
.status-badge.status-pass,
.status-badge.status-passed,
.status-badge.status-PASS {
  background-color: #22c55e !important;
  color: white !important;
}

.status-badge.status-fail,
.status-badge.status-failed,
.status-badge.status-FAIL {
  background-color: #ef4444 !important;
  color: white !important;
}
/* === end exact block === */


.fire-safety-container {
  display: block;
  height: 100vh;
  max-height: 100vh;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  padding-top: 72px;
  box-sizing: border-box;
}

.fire-safety-content {
  display: flex;
  flex: 1 1 auto;
  padding: 24px;
  margin-left: 280px; /* Account for fixed sidebar */
  gap: 24px;
  background-color: #f5f6fa;
  overflow: hidden;
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  box-sizing: border-box;
}

/* Sidebar Styles - Matching Property Dashboard */
.fire-safety-sidebar {
  position: fixed;
  left: 0;
  top: 72px;
  bottom: 0;
  background: white;
  padding: 24px 16px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  box-sizing: border-box;
  width: 280px;
  overflow-y: auto;
  z-index: 90;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.fire-safety-sidebar::-webkit-scrollbar {
  width: 4px;
}

.fire-safety-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.fire-safety-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.fire-safety-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.5);
}

.fire-safety-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1;
  padding-top: 8px;
  min-height: 0;
}

.fire-safety-menu-item {
  padding: 10px 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  font: inherit;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
  gap: 12px;
}

.fire-safety-menu-item:hover {
  background-color: #f8fafc;
  color: #3b82f6;
}

.fire-safety-menu-item.active {
  background-color: #f0f9ff;
  color: #3b82f6;
  font-weight: 600;
}

.fire-safety-menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fire-safety-menu-label {
  flex: 1 1;
  text-align: left;
}

.fire-safety-menu-arrow {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.6;
  flex-shrink: 0;
}

.fire-safety-main {
  flex: 1 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  box-sizing: border-box;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.sidebar-back-btn:hover {
  color: #3b82f6;
  background-color: #f8fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .fire-safety-content {
    flex-direction: column;
    margin-left: 0;
    padding: 16px;
  }
  
  .fire-safety-sidebar {
    position: relative;
    width: 100%;
    height: auto;
    top: 0;
    left: 0;
    margin-bottom: 20px;
  }
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2em;
  color: #666;
}

.error-message {
  color: #dc3545;
  text-align: center;
  padding: 20px;
  font-size: 1.2em;
}
/* Fire Safety Dashboard Styles - Matching Roof Safety Design */
.fire-dashboard-wrapper {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Ensure the whole dashboard fits without scrolling */
  overflow: hidden;
  box-sizing: border-box;
}

.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.dashboard-title {
  color: #0c437c !important;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 16px;
}

.btn,
.btn-primary,
.btn-small {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.btn-primary,
.btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover,
.btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #e0e7ff;
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-shrink: 0;
}

.dashboard-card-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.dashboard-card-label {
  color: hsl(217, 91%, 60%) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  margin: 0 !important;
  width: 100% !important;
  line-height: 1.1 !important;
}

.dashboard-card-numbers {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  align-items: flex-start !important;
}

.dashboard-card-total {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  text-align: left !important;
  align-self: flex-start !important;
  margin-top: 4px !important;
}

.dashboard-card-failed {
  display: none;
}

/* Ensure no left border colors on dashboard cards */
.dashboard-card.good,
.dashboard-card.warning,
.dashboard-card.alert,
.dashboard-card {
  border-left: none !important;
}

.dashboard-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  margin-top: 0;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

.dashboard-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  min-width: 0;
}

.dashboard-panel:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.2);
}

.panel-title {
  font-size: 1.1em;
  color: #0c437c !important;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title svg,
.panel-title .fa-icon {
  color: #0c437c !important;
}

.attention-list {
  list-style: none;
  padding: 0 0 12px 0;
  margin: 0;
}

.attention-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  color: #d32f2f;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.attention-list li:last-child {
  border-bottom: none;
}

.attention-icon {
  color: #d32f2f;
  font-size: 1.2em;
}

.attention-label {
  color: #1F2937;
  font-weight: 500;
}

.attention-failed {
  color: #1F2937;
  font-weight: 600;
}

.no-issues {
  color: #10B981;
  font-weight: 500;
  text-align: left;
  font-size: 1em;
}

.next-inspection-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-inspection-date {
  color: #1F2937;
  font-size: 1em;
  margin-bottom: 8px;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .dashboard-bottom-panels {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .dashboard-panel.activity-panel {
    grid-column: 1 / -1;
  }

  .dashboard-panel.activity-panel > div > div {
    background-color: #fff !important;
  }

  .dashboard-panel.activity-panel > div > div > div {
    background-color: #fff !important;
  }

  .dashboard-panel.activity-panel div {
    background-color: #fff !important;
  }
}

@media (max-width: 900px) {
  .dashboard-bottom-panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard-panel {
    min-width: 0;
    padding: 20px 16px;
  }
  .dashboard-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .fire-dashboard-wrapper {
    padding: 8px;
  }
  .dashboard-panel {
    padding: 12px 8px;
  }
  .dashboard-card {
    padding: 12px 8px;
    min-width: 0;
  }
}

.dashboard-actions .btn,
.dashboard-actions .btn-primary,
.dashboard-actions .btn-small,
.next-inspection-panel .btn,
.next-inspection-panel .btn-primary,
.next-inspection-panel .btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.dashboard-actions .btn:hover,
.dashboard-actions .btn-primary:hover,
.dashboard-actions .btn-small:hover,
.next-inspection-panel .btn:hover,
.next-inspection-panel .btn-primary:hover,
.next-inspection-panel .btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

/* Make sure the old styles don't interfere */
.dashboard-section {
  width: 100%;
}

.status-card {
  display: none; /* Hide old cards */
}

.upcoming-tests {
  display: none; /* Hide old upcoming tests section */
}

/* Alerts Modal Styles */
.alerts-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(31, 41, 55, 0.35);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alerts-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(21,116,246,0.15);
  padding: 32px 28px 24px 28px;
  min-width: 340px;
  max-width: 95vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
}

.alerts-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.7em;
  color: #1F2937;
  cursor: pointer;
  padding: 0 8px;
  line-height: 1;
  transition: color 0.2s;
}
.close-btn:hover {
  color: #d32f2f;
}

.alerts-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alert-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  color: #d32f2f;
  font-weight: 500;
  transition: background 0.15s;
}

.alert-item:last-child {
  border-bottom: none;
}

.alert-item:hover {
  background: #fce8e6;
}

.alert-icon {
  color: #d32f2f;
  font-size: 1.2em;
}

.alert-label {
  color: #1F2937;
  font-weight: 500;
}

.alert-failed {
  color: #d32f2f;
  font-weight: 600;
}

.no-alerts {
  color: #10B981;
  font-weight: 500;
  text-align: left;
  font-size: 1em;
  padding: 12px 0;
}

/* Fire Alarms Component Styles */
.fire-alarms-container {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.header-content h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.header-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Search and Filter Container */
.search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-bar {
  position: relative;
  flex: 1 1;
  min-width: 250px;
}

.search-bar input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: #4a90e2;
}

.search-bar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.view-mode-btn {
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-mode-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #e9e9e9;
}

/* Filters Panel */
.filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

/* Table View */
.table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 20px;
}

.alarms-table {
  width: 100%;
  border-collapse: collapse;
}

.alarms-table th {
  background: #f5f5f5;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eee;
}

.alarms-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.alarms-table tr:last-child td {
  border-bottom: none;
}

.alarms-table tr:hover {
  background: #f9f9f9;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #e9e9e9;
}

.action-btn.view:hover {
  color: #4a90e2;
}

.action-btn.edit:hover {
  color: #f5a623;
}

.action-btn.inspect:hover {
  color: #7ed321;
}

.action-btn.download:hover {
  color: #9013fe;
}

/* Card View */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.alarm-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.status-icon {
  font-size: 16px;
}

.status-icon.active {
  color: #7ed321;
}

.status-icon.maintenance {
  color: #f5a623;
}

.status-icon.faulty {
  color: #d0021b;
}

.status-icon.unknown {
  color: #999;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-body {
  padding: 16px;
  flex: 1 1;
}

.card-info {
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  margin-bottom: 8px;
}

.info-label {
  font-weight: 500;
  color: #666;
  width: 100px;
  flex-shrink: 0;
}

.info-value {
  color: #333;
}

.card-dates {
  margin-bottom: 16px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.card-status {
  margin-bottom: 16px;
}

.card-notes {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.card-notes p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.active {
  background: rgba(126, 211, 33, 0.1);
  color: #7ed321;
}

.status-badge.maintenance {
  background: rgba(245, 166, 35, 0.1);
  color: #f5a623;
}

.status-badge.faulty {
  background: rgba(208, 2, 27, 0.1);
  color: #d0021b;
}

.status-badge.unknown {
  background: rgba(153, 153, 153, 0.1);
  color: #999;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

.inspection-info {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.inspection-info h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.inspection-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 36px;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-hint {
  font-size: 12px;
  color: #999;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Buttons */
.btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: #4a90e2;
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #3a7bc8;
}

.btn-secondary {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e9e9e9;
}

/* Loading and Error States */
.loading,
.error,
.no-results {
  padding: 40px;
  text-align: center;
  color: #666;
  font-size: 16px;
}

.error {
  color: #d0021b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
  }
  
  .header-actions button {
    flex: 1 1;
  }
  
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .filters-panel {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .alarms-table {
    display: block;
    overflow-x: auto;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .modal-container {
    width: 95%;
  }
} 
/* Sprinklers Component Styles */
.sprinklers-container {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.header-content h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.header-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Search and Filter Container */
.search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-bar {
  position: relative;
  flex: 1 1;
  min-width: 250px;
}

.search-bar input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: #4a90e2;
}

.search-bar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.view-mode-btn {
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-mode-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #e9e9e9;
}

/* Filters Panel */
.filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

/* Table View */
.table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 20px;
}

.sprinklers-table {
  width: 100%;
  border-collapse: collapse;
}

.sprinklers-table th {
  background: #f5f5f5;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eee;
}

.sprinklers-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.sprinklers-table tr:last-child td {
  border-bottom: none;
}

.sprinklers-table tr:hover {
  background: #f9f9f9;
}

.type-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-icon {
  font-size: 16px;
}

.type-icon.wet {
  color: #4a90e2;
}

.type-icon.dry {
  color: #50e3c2;
}

.type-icon.pre-action {
  color: #9013fe;
}

.type-icon.deluge {
  color: #f5a623;
}

.type-icon.unknown {
  color: #999;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #e9e9e9;
}

.action-btn.view:hover {
  color: #4a90e2;
}

.action-btn.edit:hover {
  color: #f5a623;
}

.action-btn.inspect:hover {
  color: #7ed321;
}

.action-btn.download:hover {
  color: #9013fe;
}

/* Card View */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.sprinkler-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.status-icon {
  font-size: 16px;
}

.status-icon.operational {
  color: #7ed321;
}

.status-icon.maintenance {
  color: #f5a623;
}

.status-icon.offline {
  color: #d0021b;
}

.status-icon.unknown {
  color: #999;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-body {
  padding: 16px;
  flex: 1 1;
}

.card-info {
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  margin-bottom: 8px;
}

.info-label {
  font-weight: 500;
  color: #666;
  width: 100px;
  flex-shrink: 0;
}

.info-value {
  color: #333;
}

.card-dates {
  margin-bottom: 16px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.card-status {
  margin-bottom: 16px;
}

.card-notes {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.card-notes p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.operational {
  background: rgba(126, 211, 33, 0.1);
  color: #7ed321;
}

.status-badge.maintenance {
  background: rgba(245, 166, 35, 0.1);
  color: #f5a623;
}

.status-badge.offline {
  background: rgba(208, 2, 27, 0.1);
  color: #d0021b;
}

.status-badge.unknown {
  background: rgba(153, 153, 153, 0.1);
  color: #999;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

.inspection-info {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.inspection-info h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.inspection-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 36px;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-hint {
  font-size: 12px;
  color: #999;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Buttons */
.btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: #4a90e2;
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #3a7bc8;
}

.btn-secondary {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e9e9e9;
}

/* Loading and Error States */
.loading,
.error,
.no-results {
  padding: 40px;
  text-align: center;
  color: #666;
  font-size: 16px;
}

.error {
  color: #d0021b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
  }
  
  .header-actions button {
    flex: 1 1;
  }
  
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .filters-panel {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .sprinklers-table {
    display: block;
    overflow-x: auto;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .modal-container {
    width: 95%;
  }
} 
/* Emergency Lights Component Styles */
.emergency-lights-container {
  padding: 20px;
  height: 100%;
  overflow-y: auto;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.header-content h1 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.header-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Search and Filter Container */
.search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-bar {
  position: relative;
  flex: 1 1;
  min-width: 250px;
}

.search-bar input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.search-bar input:focus {
  outline: none;
  border-color: #4a90e2;
}

.search-bar svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.view-mode-btn {
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.view-mode-btn.active {
  background: #4a90e2;
  color: white;
  border-color: #4a90e2;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: #f5f5f5;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background: #e9e9e9;
}

/* Filters Panel */
.filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px;
  background: #f9f9f9;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #eee;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 180px;
}

.filter-group label {
  font-size: 12px;
  font-weight: 500;
  color: #666;
}

.filter-group select {
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  background: white;
  cursor: pointer;
}

/* Table View */
.table-container {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-bottom: 20px;
}

.fixtures-table {
  width: 100%;
  border-collapse: collapse;
}

.fixtures-table th {
  background: #f5f5f5;
  padding: 12px 16px;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  color: #555;
  border-bottom: 1px solid #eee;
}

.fixtures-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.fixtures-table tr:last-child td {
  border-bottom: none;
}

.fixtures-table tr:hover {
  background: #f9f9f9;
}

.fixtures-table tr.overdue {
  border-left: 3px solid #d0021b;
}

.type-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-icon {
  font-size: 16px;
}

.type-icon.exit-sign {
  color: #4a90e2;
}

.type-icon.bulkhead {
  color: #50e3c2;
}

.type-icon.downlight {
  color: #9013fe;
}

.type-icon.twinspot {
  color: #f5a623;
}

.type-icon.unknown {
  color: #999;
}

.date-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overdue-badge {
  display: inline-block;
  background: rgba(208, 2, 27, 0.1);
  color: #d0021b;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: none;
  background: #f5f5f5;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #e9e9e9;
}

.action-btn.view:hover {
  color: #4a90e2;
}

.action-btn.edit:hover {
  color: #f5a623;
}

.action-btn.test:hover {
  color: #7ed321;
}

.action-btn.download:hover {
  color: #9013fe;
}

/* Card View */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.fixture-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-left: 3px solid transparent;
}

.fixture-card.overdue {
  border-left: 3px solid #d0021b;
}

.card-header {
  padding: 16px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.status-icon {
  font-size: 16px;
}

.status-icon.working {
  color: #7ed321;
}

.status-icon.needs-testing {
  color: #f5a623;
}

.status-icon.failed {
  color: #d0021b;
}

.status-icon.unknown {
  color: #999;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-body {
  padding: 16px;
  flex: 1 1;
}

.card-info {
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  margin-bottom: 8px;
}

.info-label {
  font-weight: 500;
  color: #666;
  width: 100px;
  flex-shrink: 0;
}

.info-value {
  color: #333;
}

.card-dates {
  margin-bottom: 16px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  color: #666;
}

.card-status {
  margin-bottom: 16px;
}

.card-notes {
  background: #f9f9f9;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.card-notes p {
  margin: 0;
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* Status Badges */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.working {
  background: rgba(126, 211, 33, 0.1);
  color: #7ed321;
}

.status-badge.needs-testing {
  background: rgba(245, 166, 35, 0.1);
  color: #f5a623;
}

.status-badge.failed {
  background: rgba(208, 2, 27, 0.1);
  color: #d0021b;
}

.status-badge.unknown {
  background: rgba(153, 153, 153, 0.1);
  color: #999;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background: white;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  padding: 16px 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 18px;
  color: #999;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-body {
  padding: 20px;
}

.test-info {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.test-info h3 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
}

.test-info p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
  color: #555;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4a90e2;
}

.input-with-icon {
  position: relative;
}

.input-with-icon svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 14px;
}

.input-with-icon input,
.input-with-icon select {
  padding-left: 36px;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-hint {
  font-size: 12px;
  color: #999;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Buttons */
.btn {
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background: #4a90e2;
  color: white;
  border: none;
}

.btn-primary:hover {
  background: #3a7bc8;
}

.btn-secondary {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e9e9e9;
}

/* Loading and Error States */
.loading,
.error,
.no-results {
  padding: 40px;
  text-align: center;
  color: #666;
  font-size: 16px;
}

.error {
  color: #d0021b;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    gap: 16px;
  }
  
  .header-actions {
    width: 100%;
  }
  
  .header-actions button {
    flex: 1 1;
  }
  
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .filters-panel {
    flex-direction: column;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .fixtures-table {
    display: block;
    overflow-x: auto;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .modal-container {
    width: 95%;
  }
} 
/* Fire Doors Page Styles */
.fire-doors-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header-content h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.header-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Search and Filter Container */
.search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 8px 12px;
  width: 300px;
}

.search-bar svg {
  color: #999;
  margin-right: 8px;
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.view-mode-btn {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-mode-btn.active {
  background-color: #e6f2ff;
  border-color: #1890ff;
  color: #1890ff;
}

.filter-btn {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Filters Panel */
.filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background-color: white;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  color: #666;
}

.filter-group select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 150px;
}

/* Table View */
.table-container {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: auto;
  margin-bottom: 20px;
}

.doors-table {
  width: 100%;
  border-collapse: collapse;
}

.doors-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.doors-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.doors-table tr:hover {
  background-color: #f8f9fa;
}

.doors-table tr.overdue {
  background-color: #fff2f0;
}

.type-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-icon {
  font-size: 16px;
}

.type-icon.single {
  color: #1890ff;
}

.type-icon.double {
  color: #722ed1;
}

.type-icon.glazed {
  color: #13c2c2;
}

.type-icon.steel {
  color: #fa8c16;
}

.type-icon.timber {
  color: #52c41a;
}

.date-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overdue-badge {
  font-size: 12px;
  color: #f5222d;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.compliant {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.status-badge.needs-repair {
  background-color: #fffbe6;
  color: #faad14;
  border: 1px solid #ffe58f;
}

.status-badge.failed {
  background-color: #fff2f0;
  color: #f5222d;
  border: 1px solid #ffccc7;
}

.status-badge.unknown {
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: #f0f0f0;
  color: #1890ff;
}

.action-btn.view:hover {
  color: #1890ff;
}

.action-btn.edit:hover {
  color: #52c41a;
}

.action-btn.inspect:hover {
  color: #722ed1;
}

.action-btn.download:hover {
  color: #fa8c16;
}

.no-results {
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 14px;
}

/* Card View */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.door-card {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.3s;
}

.door-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.door-card.overdue {
  border-left: 4px solid #f5222d;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.status-icon {
  font-size: 16px;
}

.status-icon.compliant {
  color: #52c41a;
}

.status-icon.needs-repair {
  color: #faad14;
}

.status-icon.failed {
  color: #f5222d;
}

.status-icon.unknown {
  color: #999;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-body {
  padding: 16px;
}

.card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: #666;
}

.info-value {
  font-size: 14px;
  color: #333;
}

.card-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
}

.card-status {
  margin-bottom: 16px;
}

.card-notes {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
  color: #666;
}

.card-sticker {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background-color: white;
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #999;
}

.modal-body {
  padding: 16px;
}

.inspection-info {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.inspection-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.inspection-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon svg {
  position: absolute;
  left: 12px;
  color: #999;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input {
  margin: 0;
}

.checkbox-group label {
  margin: 0;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-hint {
  font-size: 12px;
  color: #999;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Buttons */
.btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #1890ff;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #40a9ff;
}

.btn-secondary {
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
  border-color: #ccc;
}

/* Loading and Error States */
.loading, .error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

.error {
  color: #f5222d;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .card-info {
    grid-template-columns: 1fr;
  }
  
  .modal-container {
    width: 95%;
  }
} 
/* Fire Extinguishers Page Styles */
.fire-extinguishers-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header-content h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.header-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Search and Filter Container */
.search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 8px 12px;
  width: 300px;
}

.search-bar svg {
  color: #999;
  margin-right: 8px;
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.view-mode-btn {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-mode-btn.active {
  background-color: #e6f2ff;
  border-color: #1890ff;
  color: #1890ff;
}

.filter-btn {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Filters Panel */
.filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background-color: white;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  color: #666;
}

.filter-group select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 150px;
}

/* Table View */
.table-container {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: auto;
  margin-bottom: 20px;
}

.extinguishers-table {
  width: 100%;
  border-collapse: collapse;
}

.extinguishers-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.extinguishers-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.extinguishers-table tr:hover {
  background-color: #f8f9fa;
}

.extinguishers-table tr.overdue {
  background-color: #fff2f0;
}

.type-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-icon {
  font-size: 16px;
}

.type-icon.water {
  color: #1890ff;
}

.type-icon.co2 {
  color: #722ed1;
}

.type-icon.foam {
  color: #13c2c2;
}

.type-icon.powder {
  color: #fa8c16;
}

.type-icon.wet-chemical {
  color: #52c41a;
}

.date-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overdue-badge {
  font-size: 12px;
  color: #f5222d;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.in-date {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.status-badge.needs-service {
  background-color: #fffbe6;
  color: #faad14;
  border: 1px solid #ffe58f;
}

.status-badge.expired {
  background-color: #fff2f0;
  color: #f5222d;
  border: 1px solid #ffccc7;
}

.status-badge.unknown {
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.action-btn {
  background-color: transparent;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: #f5f5f5;
}

.action-btn.view:hover {
  color: #1890ff;
}

.action-btn.edit:hover {
  color: #722ed1;
}

.action-btn.inspect:hover {
  color: #13c2c2;
}

.action-btn.download:hover {
  color: #52c41a;
}

.no-results {
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 14px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Card View */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.extinguisher-card {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.2s;
}

.extinguisher-card:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.extinguisher-card.overdue {
  border-left: 3px solid #f5222d;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.status-icon {
  font-size: 16px;
}

.status-icon.in-date {
  color: #52c41a;
}

.status-icon.needs-service {
  color: #faad14;
}

.status-icon.expired {
  color: #f5222d;
}

.status-icon.unknown {
  color: #999;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-body {
  padding: 16px;
}

.card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: #666;
}

.info-value {
  font-size: 14px;
  color: #333;
}

.card-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.card-status {
  margin-bottom: 16px;
}

.card-notes {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}

.card-certificate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background-color: white;
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.close-btn {
  background-color: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}

.modal-body {
  padding: 16px;
}

.service-info {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.service-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.service-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.input-with-icon {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.input-with-icon svg {
  padding: 8px 12px;
  color: #999;
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
}

.input-with-icon input,
.input-with-icon select {
  flex: 1 1;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}

.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
}

.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.checkbox-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkbox-group input {
  margin: 0;
}

.checkbox-group label {
  margin: 0;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-hint {
  font-size: 12px;
  color: #999;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #1890ff;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #40a9ff;
}

.btn-secondary {
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

/* Loading and Error States */
.loading, .error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

.error {
  color: #f5222d;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .card-info {
    grid-template-columns: 1fr;
  }
  
  .modal-container {
    width: 95%;
  }
} 
/* Smoke Detectors Page Styles */
.smoke-detectors-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  padding: 20px;
  background-color: #f8f9fa;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.header-content h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
}

.header-content p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.header-actions {
  display: flex;
  gap: 12px;
}

/* Search and Filter Container */
.search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 4px;
  border: 1px solid #ddd;
  padding: 8px 12px;
  width: 300px;
}

.search-bar svg {
  color: #999;
  margin-right: 8px;
}

.search-bar input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 14px;
}

.filter-actions {
  display: flex;
  gap: 8px;
}

.view-mode-btn {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.view-mode-btn.active {
  background-color: #e6f2ff;
  border-color: #1890ff;
  color: #1890ff;
}

.filter-btn {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Filters Panel */
.filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background-color: white;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-size: 12px;
  color: #666;
}

.filter-group select {
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  min-width: 150px;
}

/* Table View */
.table-container {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: auto;
  margin-bottom: 20px;
}

.detectors-table {
  width: 100%;
  border-collapse: collapse;
}

.detectors-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  background-color: #f8f9fa;
  border-bottom: 1px solid #ddd;
}

.detectors-table td {
  padding: 12px 16px;
  font-size: 14px;
  color: #333;
  border-bottom: 1px solid #eee;
}

.detectors-table tr:hover {
  background-color: #f8f9fa;
}

.detectors-table tr.overdue {
  background-color: #fff2f0;
}

.type-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.type-icon {
  font-size: 16px;
}

.type-icon.ionisation {
  color: #1890ff;
}

.type-icon.optical {
  color: #722ed1;
}

.type-icon.heat {
  color: #fa8c16;
}

.type-icon.co {
  color: #13c2c2;
}

.type-icon.combined {
  color: #52c41a;
}

.date-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overdue-badge {
  font-size: 12px;
  color: #f5222d;
  font-weight: 500;
}

.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge.operational {
  background-color: #f6ffed;
  color: #52c41a;
  border: 1px solid #b7eb8f;
}

.status-badge.needs-testing {
  background-color: #fffbe6;
  color: #faad14;
  border: 1px solid #ffe58f;
}

.status-badge.faulty {
  background-color: #fff2f0;
  color: #f5222d;
  border: 1px solid #ffccc7;
}

.status-badge.unknown {
  background-color: #f5f5f5;
  color: #666;
  border: 1px solid #d9d9d9;
}

.actions-cell {
  display: flex;
  gap: 8px;
}

.action-btn {
  background-color: transparent;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #666;
  transition: all 0.2s;
}

.action-btn:hover {
  background-color: #f5f5f5;
}

.action-btn.view:hover {
  color: #1890ff;
}

.action-btn.edit:hover {
  color: #722ed1;
}

.action-btn.inspect:hover {
  color: #13c2c2;
}

.action-btn.repair:hover {
  color: #fa8c16;
}

.no-results {
  text-align: center;
  padding: 24px;
  color: #999;
  font-size: 14px;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Card View */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  grid-gap: 20px;
  gap: 20px;
  margin-bottom: 20px;
}

.detector-card {
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: all 0.2s;
}

.detector-card:hover {
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

.detector-card.overdue {
  border-left: 3px solid #f5222d;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.status-icon {
  font-size: 16px;
}

.status-icon.operational {
  color: #52c41a;
}

.status-icon.needs-testing {
  color: #faad14;
}

.status-icon.faulty {
  color: #f5222d;
}

.status-icon.unknown {
  color: #999;
}

.card-actions {
  display: flex;
  gap: 8px;
}

.card-body {
  padding: 16px;
}

.card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
  margin-bottom: 16px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 12px;
  color: #666;
}

.info-value {
  font-size: 14px;
  color: #333;
}

.card-dates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
}

.card-status {
  margin-bottom: 16px;
}

.card-notes {
  margin-bottom: 16px;
  padding: 12px;
  background-color: #f8f9fa;
  border-radius: 4px;
  font-size: 14px;
  color: #333;
}

.card-certificate {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #333;
  margin-bottom: 16px;
}

.card-footer {
  padding: 16px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-container {
  background-color: white;
  border-radius: 4px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #eee;
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.close-btn {
  background-color: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #999;
}

.modal-body {
  padding: 16px;
}

.test-info {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eee;
}

.test-info h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px 0;
}

.test-info p {
  font-size: 14px;
  color: #666;
  margin: 0;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
  color: #333;
}

.input-with-icon {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 4px;
  overflow: hidden;
}

.input-with-icon svg {
  padding: 8px 12px;
  color: #999;
  background-color: #f8f9fa;
  border-right: 1px solid #ddd;
}

.input-with-icon input,
.input-with-icon select {
  flex: 1 1;
  border: none;
  padding: 8px 12px;
  font-size: 14px;
  outline: none;
}

.form-group select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background-color: white;
}

.form-group textarea {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  resize: vertical;
  min-height: 80px;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-hint {
  font-size: 12px;
  color: #999;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #1890ff;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #40a9ff;
}

.btn-secondary {
  background-color: white;
  color: #333;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background-color: #f5f5f5;
}

/* Loading and Error States */
.loading, .error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

.error {
  color: #f5222d;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .search-filter-container {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }
  
  .card-container {
    grid-template-columns: 1fr;
  }
  
  .card-info {
    grid-template-columns: 1fr;
  }
  
  .modal-container {
    width: 95%;
  }
} 
.heat-detectors-container {
  padding: 2rem;
  background-color: #f8f9fa;
  min-height: 100vh;
}

/* Page Header */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.header-content h1 {
  font-size: 2rem;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.header-content p {
  color: #6c757d;
  font-size: 1rem;
  max-width: 600px;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

/* Search and Filter Container */
.search-filter-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.search-bar {
  display: flex;
  align-items: center;
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  flex: 1 1;
  max-width: 500px;
}

.search-bar input {
  border: none;
  outline: none;
  margin-left: 0.5rem;
  width: 100%;
  font-size: 1rem;
}

.filter-actions {
  display: flex;
  gap: 0.5rem;
}

.view-mode-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  background-color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.view-mode-btn.active {
  background-color: #20c997;
  color: white;
  border-color: #20c997;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid #dee2e6;
  background-color: white;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  background-color: #f8f9fa;
}

/* Filters Panel */
.filters-panel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  background-color: white;
  padding: 1.5rem;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.875rem;
  color: #6c757d;
}

.filter-group select {
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  background-color: white;
  font-size: 0.875rem;
}

/* Table View */
.table-container {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.detectors-table {
  width: 100%;
  border-collapse: collapse;
}

.detectors-table th {
  background-color: #f8f9fa;
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: #495057;
  border-bottom: 2px solid #dee2e6;
}

.detectors-table td {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  color: #495057;
}

.detectors-table tr:hover {
  background-color: #f8f9fa;
}

.detectors-table tr.overdue {
  background-color: #fff3cd;
}

.type-cell {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.type-icon {
  font-size: 1.25rem;
}

.type-icon.fixed-temp {
  color: #20c997;
}

.type-icon.rate-rise {
  color: #fd7e14;
}

.type-icon.combined {
  color: #6f42c1;
}

.type-icon.unknown {
  color: #6c757d;
}

.date-cell {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.overdue-badge {
  font-size: 0.75rem;
  color: #dc3545;
  font-weight: 500;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.status-badge.operational {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.needs-testing {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.faulty {
  background-color: #f8d7da;
  color: #721c24;
}

.status-badge.unknown {
  background-color: #e2e3e5;
  color: #383d41;
}

.actions-cell {
  display: flex;
  gap: 0.5rem;
}

.action-btn {
  padding: 0.5rem;
  border: none;
  background: none;
  border-radius: 0.375rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #6c757d;
}

.action-btn:hover {
  background-color: #f8f9fa;
  color: #20c997;
}

.action-btn.view:hover {
  color: #0dcaf0;
}

.action-btn.edit:hover {
  color: #ffc107;
}

.action-btn.inspect:hover {
  color: #20c997;
}

.action-btn.repair:hover {
  color: #dc3545;
}

/* Card View */
.card-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  padding: 0.5rem;
}

.detector-card {
  background-color: white;
  border-radius: 0.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: all 0.2s;
}

.detector-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.detector-card.overdue {
  border-left: 4px solid #dc3545;
}

.card-header {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-title h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #2c3e50;
}

.card-actions {
  display: flex;
  gap: 0.5rem;
}

.card-body {
  padding: 1rem;
}

.card-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 1rem;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.info-label {
  font-size: 0.875rem;
  color: #6c757d;
}

.info-value {
  font-weight: 500;
  color: #2c3e50;
}

.card-dates {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
}

.date-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #495057;
}

.card-status {
  margin-bottom: 1rem;
}

.card-notes {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background-color: #f8f9fa;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: #495057;
}

.card-certificate {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: #6c757d;
}

.card-footer {
  padding: 1rem;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: flex-end;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-container {
  background-color: white;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 1rem;
  border-bottom: 1px solid #dee2e6;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #2c3e50;
}

.close-btn {
  background: none;
  border: none;
  font-size: 1.25rem;
  color: #6c757d;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 0.375rem;
  transition: all 0.2s;
}

.close-btn:hover {
  background-color: #f8f9fa;
  color: #dc3545;
}

.modal-body {
  padding: 1.5rem;
}

.test-info {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #dee2e6;
}

.test-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.25rem;
  color: #2c3e50;
}

.test-info p {
  margin: 0;
  color: #6c757d;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #495057;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input,
.input-with-icon select {
  width: 100%;
  padding: 0.5rem 0.5rem 0.5rem 2rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
}

.input-with-icon svg {
  position: absolute;
  left: 0.75rem;
  color: #6c757d;
}

textarea {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid #dee2e6;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  resize: vertical;
}

.file-upload {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.file-hint {
  font-size: 0.875rem;
  color: #6c757d;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background-color: #20c997;
  color: white;
  border: none;
}

.btn-primary:hover {
  background-color: #1ba97f;
}

.btn-secondary {
  background-color: #f8f9fa;
  color: #495057;
  border: 1px solid #dee2e6;
}

.btn-secondary:hover {
  background-color: #e9ecef;
}

/* Loading and Error States */
.loading,
.error {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-size: 1.125rem;
  color: #6c757d;
}

.error {
  color: #dc3545;
}

/* Responsive Design */
@media (max-width: 768px) {
  .heat-detectors-container {
    padding: 1rem;
  }

  .page-header {
    flex-direction: column;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions button {
    width: 100%;
  }

  .search-filter-container {
    flex-direction: column;
  }

  .search-bar {
    max-width: none;
  }

  .filter-actions {
    width: 100%;
    justify-content: space-between;
  }

  .filters-panel {
    grid-template-columns: 1fr;
  }

  .card-info {
    grid-template-columns: 1fr;
  }

  .detectors-table {
    display: block;
    overflow-x: auto;
  }
} 
.coming-soon-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 20px;
  background: white;
}

.coming-soon-content {
  max-width: 600px;
  padding: 40px;
}

.coming-soon-icon {
  font-size: 64px;
  color: #1A80E5;
  margin-bottom: 24px;
  opacity: 0.9;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.9;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
}

.coming-soon-page h1 {
  font-size: 48px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  letter-spacing: -0.5px;
}

.coming-soon-message {
  font-size: 20px;
  color: #666;
  margin-bottom: 12px;
  font-weight: 400;
  line-height: 1.5;
}

.coming-soon-submessage {
  font-size: 16px;
  color: #999;
  margin-bottom: 40px;
  line-height: 1.6;
}

.back-link {
  color: #1A80E5;
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  transition: all 0.2s ease;
  display: inline-block;
}

.back-link:hover {
  text-decoration: underline;
  color: #1565c0;
}

@media (max-width: 768px) {
  .coming-soon-content {
    padding: 20px;
  }

  .coming-soon-icon {
    font-size: 48px;
    margin-bottom: 20px;
  }

  .coming-soon-page h1 {
    font-size: 36px;
  }

  .coming-soon-message {
    font-size: 18px;
  }

  .coming-soon-submessage {
    font-size: 14px;
  }
}

/* Staff Safety Dashboard Styles - mirror Roof Safety dashboard visuals */
.staff-dashboard-wrapper {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Increase specificity to ensure overrides match Equipment Safety layout */
.staff-dashboard-wrapper .dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.dashboard-title {
  color: #0c437c !important;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 16px;
}

.btn,
.btn-primary,
.btn-small {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.btn-primary,
.btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover,
.btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.staff-dashboard-wrapper .dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.staff-dashboard-wrapper .dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #e0e7ff;
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-shrink: 0;
}

.dashboard-card-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.dashboard-card-label {
  color: hsl(217, 91%, 60%) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  margin: 0 !important;
  width: 100% !important;
  line-height: 1.1 !important;
}

.dashboard-card-numbers {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  align-items: flex-start !important;
}

.dashboard-card-total {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  text-align: left !important;
  align-self: flex-start !important;
  margin-top: 4px !important;
}

.dashboard-card-failed { display: none; }

.dashboard-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 0;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  overflow: visible;
}

.staff-dashboard-wrapper .dashboard-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 0;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  overflow: visible;
}

.dashboard-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 0;
  overflow: visible;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  min-width: 0;
  box-sizing: border-box;
}

.staff-dashboard-wrapper .dashboard-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 0;
  overflow: visible;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-panel:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.2);
}

.panel-title {
  font-size: 1.1em;
  color: #0c437c !important;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title svg,
.panel-title .fa-icon { color: #0c437c !important; }

.attention-list {
  list-style: none;
  padding: 0 0 12px 0;
  margin: 0;
}

.attention-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  color: #d32f2f;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.attention-list li:last-child { border-bottom: none; }

.attention-icon { color: #d32f2f; font-size: 1.2em; }
.attention-label { color: #1F2937; font-weight: 500; }
.attention-failed { color: #1F2937; font-weight: 600; }

.no-issues {
  color: #10B981;
  font-weight: 500;
  text-align: left;
  font-size: 1em;
}

.next-inspection-details { display: flex; flex-direction: column; gap: 12px; }
.next-inspection-date { color: #1F2937; font-size: 1em; margin-bottom: 8px; }

/* Responsive styles */
@media (max-width: 1200px) {
  .dashboard-bottom-panels { grid-template-columns: 1fr 1fr; gap: 16px; }
  .dashboard-panel.activity-panel { grid-column: 1 / -1; }
  .dashboard-panel.activity-panel > div > div,
  .dashboard-panel.activity-panel > div > div > div,
  .dashboard-panel.activity-panel div { background-color: #fff !important; }
}

@media (max-width: 900px) {
  .dashboard-bottom-panels { grid-template-columns: 1fr; gap: 16px; }
  .dashboard-panel { min-width: 0; padding: 20px 16px; }
  .dashboard-cards-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .staff-dashboard-wrapper { padding: 8px; }
  .dashboard-panel { padding: 12px 8px; }
  .dashboard-card { padding: 12px 8px; min-width: 0; }
}

.dashboard-actions .btn,
.dashboard-actions .btn-primary,
.dashboard-actions .btn-small,
.next-inspection-panel .btn,
.next-inspection-panel .btn-primary,
.next-inspection-panel .btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.dashboard-actions .btn:hover,
.dashboard-actions .btn-primary:hover,
.dashboard-actions .btn-small:hover,
.next-inspection-panel .btn:hover,
.next-inspection-panel .btn-primary:hover,
.next-inspection-panel .btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

/* Loading and Error States */
.loading { display: flex; justify-content: center; align-items: center; min-height: 200px; color: #495057; font-size: 1.1em; }
.error { display: flex; justify-content: center; align-items: center; min-height: 200px; color: #e03131; font-size: 1.1em; text-align: center; padding: 20px; }
.training-records {
    padding: 20px;
}

.training-records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.training-records-header h2 {
    margin: 0;
    color: #212529;
    font-size: 1.8em;
    font-weight: 600;
}

.add-button {
    background-color: #228be6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.add-button:hover {
    background-color: #1c7ed6;
}

.training-records-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    flex: 1 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #868e96;
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
}

.filter-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.filter-button:hover {
    background-color: #e9ecef;
}

.filters-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.8em;
    color: #495057;
    font-weight: 500;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
    min-width: 150px;
}

.training-records-table-container {
    overflow-x: auto;
}

.training-records-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.training-records-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
}

.training-records-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.training-records-table tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-badge.completed {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.status-badge.in-progress {
    background-color: #fff3bf;
    color: #e67700;
}

.status-badge.expired {
    background-color: #ffe3e3;
    color: #c92a2a;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-button {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-button.edit {
    background-color: #e7f5ff;
    color: #228be6;
}

.action-button.edit:hover {
    background-color: #d0ebff;
}

.action-button.delete {
    background-color: #ffe3e3;
    color: #e03131;
}

.action-button.delete:hover {
    background-color: #ffc9c9;
}

.action-button.download {
    background-color: #f8f9fa;
    color: #495057;
}

.action-button.download:hover {
    background-color: #e9ecef;
}

.no-records {
    text-align: center;
    color: #868e96;
    padding: 30px !important;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: white;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #dee2e6;
}

.modal-header h3 {
    margin: 0;
    color: #212529;
    font-size: 1.3em;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5em;
    color: #868e96;
    cursor: pointer;
}

.modal form {
    padding: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-row .form-group {
    flex: 1 1;
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #495057;
    font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
}

.form-group textarea {
    resize: vertical;
}

.current-file {
    margin-top: 5px;
    font-size: 0.8em;
    color: #868e96;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.cancel-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.9em;
    cursor: pointer;
}

.submit-button {
    background-color: #228be6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-size: 0.9em;
    cursor: pointer;
}

.submit-button:hover {
    background-color: #1c7ed6;
}

/* Loading and Error States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #495057;
    font-size: 1.1em;
}

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #e03131;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .training-records-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .training-records-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-button {
        margin-left: 0;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
} 
.inductions {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: 100vh;
}

.inductions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.inductions-header h2 {
    margin: 0;
    color: #2c3e50;
    font-size: 24px;
}

.add-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    transition: background-color 0.2s;
}

.add-button:hover {
    background-color: #2980b9;
}

.inductions-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    flex: 1 1;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
}

.search-input {
    width: 100%;
    padding: 10px 35px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

.search-input:focus {
    outline: none;
    border-color: #3498db;
}

.filter-button {
    background-color: white;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #2c3e50;
    transition: all 0.2s;
}

.filter-button:hover {
    background-color: #f8f9fa;
    border-color: #3498db;
}

.filters-panel {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    grid-gap: 20px;
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group label {
    font-size: 14px;
    color: #2c3e50;
    font-weight: 500;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3e50;
}

.filter-group select:focus {
    outline: none;
    border-color: #3498db;
}

.inductions-table-container {
    background-color: white;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.inductions-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.inductions-table th {
    background-color: #f8f9fa;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: #2c3e50;
    border-bottom: 2px solid #ddd;
}

.inductions-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    color: #2c3e50;
}

.inductions-table tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.completed {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.status-badge.in-progress {
    background-color: #fff3e0;
    color: #ef6c00;
}

.status-badge.expired {
    background-color: #ffebee;
    color: #c62828;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-button {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.action-button:hover {
    background-color: #f8f9fa;
}

.action-button.edit {
    color: #3498db;
}

.action-button.delete {
    color: #e74c3c;
}

.action-button.download {
    color: #2ecc71;
}

.no-records {
    text-align: center;
    color: #95a5a6;
    padding: 20px;
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal {
    background-color: white;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #ddd;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.close-button {
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
    padding: 0;
}

.close-button:hover {
    color: #2c3e50;
}

.modal form {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    gap: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #2c3e50;
}

.form-group input[type="file"] {
    width: 100%;
    padding: 8px 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.current-file {
    margin-top: 8px;
    font-size: 14px;
    color: #7f8c8d;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.cancel-button {
    background-color: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.cancel-button:hover {
    background-color: #7f8c8d;
}

.submit-button {
    background-color: #3498db;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.2s;
}

.submit-button:hover {
    background-color: #2980b9;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.error {
    text-align: center;
    padding: 40px;
    color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .inductions-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }

    .inductions-filters {
        flex-direction: column;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .modal {
        width: 95%;
        margin: 10px;
    }
} 
.incident-reports {
    padding: 20px;
}

.incident-reports-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.incident-reports-header h2 {
    margin: 0;
    color: #212529;
    font-size: 1.8em;
    font-weight: 600;
}

.add-button {
    background-color: #228be6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.add-button:hover {
    background-color: #1c7ed6;
}

.incident-reports-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    flex: 1 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #868e96;
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
}

.filter-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.filter-button:hover {
    background-color: #e9ecef;
}

.filters-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.8em;
    color: #495057;
    font-weight: 500;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
    min-width: 150px;
}

.incident-reports-table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.incident-reports-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.incident-reports-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
}

.incident-reports-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.incident-reports-table tr:hover {
    background-color: #f8f9fa;
}

.severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.severity-badge.low {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.severity-badge.medium {
    background-color: #fff3bf;
    color: #e67700;
}

.severity-badge.high {
    background-color: #ffe3e3;
    color: #c92a2a;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-badge.resolved {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.status-badge.under-investigation {
    background-color: #fff3bf;
    color: #e67700;
}

.status-badge.open {
    background-color: #ffe3e3;
    color: #c92a2a;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-button {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-button.edit {
    background-color: #e7f5ff;
    color: #228be6;
}

.action-button.edit:hover {
    background-color: #d0ebff;
}

.action-button.delete {
    background-color: #ffe3e3;
    color: #e03131;
}

.action-button.delete:hover {
    background-color: #ffc9c9;
}

.action-button.download {
    background-color: #f8f9fa;
    color: #495057;
}

.action-button.download:hover {
    background-color: #e9ecef;
}

/* Loading and Error States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #495057;
    font-size: 1.1em;
}

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #e03131;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .incident-reports-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .incident-reports-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-button {
        margin-left: 0;
    }
} 
.assigned-tasks {
    padding: 20px;
}

.assigned-tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.assigned-tasks-header h2 {
    margin: 0;
    color: #212529;
    font-size: 1.8em;
    font-weight: 600;
}

.add-button {
    background-color: #228be6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.add-button:hover {
    background-color: #1c7ed6;
}

.assigned-tasks-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    flex: 1 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #868e96;
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
}

.filter-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.filter-button:hover {
    background-color: #e9ecef;
}

.filters-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.8em;
    color: #495057;
    font-weight: 500;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
    min-width: 150px;
}

.tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 20px;
    gap: 20px;
}

.task-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.task-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.task-card-header h3 {
    margin: 0;
    font-size: 1.1em;
    color: #212529;
    font-weight: 600;
}

.task-description {
    margin: 0;
    color: #495057;
    font-size: 0.9em;
    line-height: 1.5;
}

.task-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.task-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #868e96;
    font-size: 0.9em;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.priority-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.priority-badge.low {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.priority-badge.medium {
    background-color: #fff3bf;
    color: #e67700;
}

.priority-badge.high {
    background-color: #ffe3e3;
    color: #c92a2a;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-badge.completed {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.status-badge.in-progress {
    background-color: #fff3bf;
    color: #e67700;
}

.status-badge.pending {
    background-color: #e9ecef;
    color: #495057;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.action-button {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-button.edit {
    background-color: #e7f5ff;
    color: #228be6;
}

.action-button.edit:hover {
    background-color: #d0ebff;
}

.action-button.delete {
    background-color: #ffe3e3;
    color: #e03131;
}

.action-button.delete:hover {
    background-color: #ffc9c9;
}

/* Loading and Error States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #495057;
    font-size: 1.1em;
}

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #e03131;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .assigned-tasks-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .assigned-tasks-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-button {
        margin-left: 0;
    }
    
    .tasks-grid {
        grid-template-columns: 1fr;
    }
} 
.certifications {
    padding: 20px;
}

.certifications-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.certifications-header h2 {
    margin: 0;
    color: #212529;
    font-size: 1.8em;
    font-weight: 600;
}

.add-button {
    background-color: #228be6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.add-button:hover {
    background-color: #1c7ed6;
}

.certifications-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    flex: 1 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #868e96;
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
}

.filter-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.filter-button:hover {
    background-color: #e9ecef;
}

.filters-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.8em;
    color: #495057;
    font-weight: 500;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
    min-width: 150px;
}

.certifications-table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.certifications-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.certifications-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
}

.certifications-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.certifications-table tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-badge.valid {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.status-badge.expiring {
    background-color: #fff3bf;
    color: #e67700;
}

.status-badge.expired {
    background-color: #ffe3e3;
    color: #c92a2a;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-button {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-button.edit {
    background-color: #e7f5ff;
    color: #228be6;
}

.action-button.edit:hover {
    background-color: #d0ebff;
}

.action-button.delete {
    background-color: #ffe3e3;
    color: #e03131;
}

.action-button.delete:hover {
    background-color: #ffc9c9;
}

.action-button.download {
    background-color: #f8f9fa;
    color: #495057;
}

.action-button.download:hover {
    background-color: #e9ecef;
}

/* Loading and Error States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #495057;
    font-size: 1.1em;
}

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #e03131;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .certifications-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .certifications-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-button {
        margin-left: 0;
    }
    
    .certifications-table {
        font-size: 0.8em;
    }
    
    .certifications-table th,
    .certifications-table td {
        padding: 8px;
    }
} 
.ppe-issuance {
    padding: 20px;
}

.ppe-issuance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.ppe-issuance-header h2 {
    margin: 0;
    color: #212529;
    font-size: 1.8em;
    font-weight: 600;
}

.add-button {
    background-color: #228be6;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.add-button:hover {
    background-color: #1c7ed6;
}

.ppe-issuance-filters {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.search-container {
    position: relative;
    flex: 1 1;
    max-width: 500px;
}

.search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #868e96;
}

.search-input {
    width: 100%;
    padding: 10px 10px 10px 35px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
}

.filter-button {
    background-color: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 10px 15px;
    font-size: 0.9em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 10px;
    transition: background-color 0.2s ease;
}

.filter-button:hover {
    background-color: #e9ecef;
}

.filters-panel {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-size: 0.8em;
    color: #495057;
    font-weight: 500;
}

.filter-group select {
    padding: 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 0.9em;
    min-width: 150px;
}

.ppe-issuance-table-container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow-x: auto;
}

.ppe-issuance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9em;
}

.ppe-issuance-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
    text-align: left;
    padding: 12px 15px;
    border-bottom: 2px solid #dee2e6;
}

.ppe-issuance-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.ppe-issuance-table tr:hover {
    background-color: #f8f9fa;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 500;
}

.status-badge.active {
    background-color: #d3f9d8;
    color: #2b8a3e;
}

.status-badge.due-replacement {
    background-color: #fff3bf;
    color: #e67700;
}

.status-badge.replaced {
    background-color: #e9ecef;
    color: #495057;
}

.actions {
    display: flex;
    gap: 8px;
}

.action-button {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.action-button.edit {
    background-color: #e7f5ff;
    color: #228be6;
}

.action-button.edit:hover {
    background-color: #d0ebff;
}

.action-button.delete {
    background-color: #ffe3e3;
    color: #e03131;
}

.action-button.delete:hover {
    background-color: #ffc9c9;
}

.action-button.download {
    background-color: #f8f9fa;
    color: #495057;
}

.action-button.download:hover {
    background-color: #e9ecef;
}

/* Loading and Error States */
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #495057;
    font-size: 1.1em;
}

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    color: #e03131;
    font-size: 1.1em;
    text-align: center;
    padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ppe-issuance-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .ppe-issuance-filters {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-container {
        max-width: 100%;
    }
    
    .filter-button {
        margin-left: 0;
    }
    
    .ppe-issuance-table {
        font-size: 0.8em;
    }
    
    .ppe-issuance-table th,
    .ppe-issuance-table td {
        padding: 8px;
    }
} 
.safety-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #f5f6fa;
}

.safety-content {
    display: flex;
    flex: 1 1;
    padding: 24px;
    padding-top: 104px;
    gap: 24px;
    margin-left: 280px;
    background-color: #f5f6fa;
    overflow: hidden;
    min-height: calc(100vh - 104px);
    width: calc(100% - 280px);
    box-sizing: border-box;
}

.safety-sidebar {
    position: fixed;
    left: 0;
    top: 72px;
    bottom: 0;
    width: 280px;
    background: white;
    padding: 24px 16px;
    border-right: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 72px);
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 90;
    scrollbar-width: thin;
    scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.safety-sidebar::-webkit-scrollbar { width: 4px; }
.safety-sidebar::-webkit-scrollbar-track { background: transparent; }
.safety-sidebar::-webkit-scrollbar-thumb { background-color: rgba(148, 163, 184, 0.3); border-radius: 2px; }
.safety-sidebar::-webkit-scrollbar-thumb:hover { background-color: rgba(148, 163, 184, 0.5); }

.sidebar-back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #64748b;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 8px;
    width: 100%;
    text-align: left;
    outline: none;
    box-shadow: none;
}
.sidebar-back-btn:focus,
.sidebar-back-btn:focus-visible {
    outline: none;
    box-shadow: none;
    background: none;
}

.sidebar-back-btn:hover {
    color: #3b82f6;
    background-color: #f8fafc;
}

.safety-menu {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1;
    padding-top: 8px;
    min-height: 0;
}

.safety-menu-item {
    padding: 10px 12px;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    font: inherit;
    border-radius: 8px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    color: #64748b;
    font-weight: 500;
    font-size: 14px;
    gap: 12px;
}

.safety-menu-item:hover {
    background-color: #f8fafc;
    color: #3b82f6;
}

.safety-menu-item.active {
    background-color: #f0f9ff;
    color: #3b82f6;
    font-weight: 600;
}

.safety-menu-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.safety-menu-label {
    flex: 1 1;
    text-align: left;
}

.safety-menu-arrow {
    margin-left: auto;
    font-size: 12px;
    opacity: 0.6;
    flex-shrink: 0;
}

.safety-main {
    flex: 1 1;
    background: white;
    border-radius: 8px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-width: 0;
}


.safety-body {
    background: white;
    border-radius: 8px;
}

.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 18px;
    color: #666;
}

.error {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-size: 18px;
    color: #d32f2f;
    padding: 20px;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .safety-content {
        flex-direction: column;
        margin-left: 0;
        padding: 16px;
        width: 100%;
    }

    .safety-sidebar {
        position: relative;
        width: 100%;
        height: auto;
        top: 0;
        left: 0;
        border-right: none;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
}

/* Compliance Dashboard Styles - Matching Roof Safety Design */
.compliance-dashboard-wrapper {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  /* Ensure the whole dashboard fits without scrolling */
  overflow: visible;
  box-sizing: border-box;
}


.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.dashboard-title {
  color: #0c437c !important;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 16px;
}

.btn,
.btn-primary,
.btn-small {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.btn-primary,
.btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover,
.btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.dashboard-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #e0e7ff;
}

.dashboard-card:hover::before {
  opacity: 1;
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-shrink: 0;
}

.dashboard-card-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.dashboard-card-label {
  color: hsl(217, 91%, 60%) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  margin: 0 !important;
  width: 100% !important;
  line-height: 1.1 !important;
}

.dashboard-card-numbers {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  align-items: flex-start !important;
}

.dashboard-card-total {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  text-align: left !important;
  align-self: flex-start !important;
  margin-top: 4px !important;
}

.dashboard-card-failed {
  display: none;
}

.dashboard-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 0;
  margin-bottom: 0;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
  overflow: visible;
}

.dashboard-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: auto;
  min-height: 0;
  overflow: visible;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  min-width: 0;
  box-sizing: border-box;
}

.dashboard-panel:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.2);
}

.panel-title {
  font-size: 1.1em;
  color: #0c437c !important;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-title svg,
.panel-title .fa-icon {
  color: #0c437c !important;
}

.attention-list {
  list-style: none;
  padding: 0 0 12px 0;
  margin: 0;
}

.attention-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  color: #d32f2f;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.attention-list li:last-child {
  border-bottom: none;
}


.attention-icon {
  color: #d32f2f;
  font-size: 1.2em;
}

.attention-label {
  color: #1F2937;
  font-weight: 500;
}

.attention-failed {
  color: #1F2937;
  font-weight: 600;
}

.no-issues {
  color: #10B981;
  font-weight: 500;
  text-align: left;
  font-size: 1em;
}

.next-inspection-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-inspection-date {
  color: #1F2937;
  font-size: 1em;
  margin-bottom: 8px;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .dashboard-bottom-panels {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
.dashboard-panel.activity-panel {
  grid-column: 1 / -1;
}

.dashboard-panel.activity-panel > div > div {
  background-color: #fff !important;
}

.dashboard-panel.activity-panel > div > div > div {
  background-color: #fff !important;
}

.dashboard-panel.activity-panel div {
  background-color: #fff !important;
}
}

@media (max-width: 900px) {
  .dashboard-bottom-panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .dashboard-panel {
    min-width: 0;
    padding: 20px 16px;
  }
  .dashboard-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .compliance-dashboard-wrapper {
    padding: 8px;
  }
  .dashboard-panel {
    padding: 12px 8px;
  }
  .dashboard-card {
    padding: 12px 8px;
    min-width: 0;
  }
}

.dashboard-actions .btn,
.dashboard-actions .btn-primary,
.dashboard-actions .btn-small,
.next-inspection-panel .btn,
.next-inspection-panel .btn-primary,
.next-inspection-panel .btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.dashboard-actions .btn:hover,
.dashboard-actions .btn-primary:hover,
.dashboard-actions .btn-small:hover,
.next-inspection-panel .btn:hover,
.next-inspection-panel .btn-primary:hover,
.next-inspection-panel .btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

/* Make sure the old styles don't interfere */
.dashboard-section {
  width: 100%;
}

.status-card {
  display: none; /* Hide old cards */
}

.upcoming-tests {
  display: none; /* Hide old upcoming tests section */
}

.inventory-container {
    padding: 24px;
}

.inventory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.inventory-header h1 {
    font-size: 24px;
    color: #1a1f36;
}

.add-equipment-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1A80E5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-equipment-btn:hover {
    background: #1565c0;
}

.search-filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.search-bar {
    flex: 1 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-bar input {
    flex: 1 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
}

.search-bar svg {
    color: #637587;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #1A80E5;
}

.equipment-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-size: 14px;
    color: #1a1f36;
    font-weight: 500;
}

td {
    padding: 16px;
    border-top: 1px solid #e1e4e8;
    font-size: 14px;
    color: #637587;
}

.status-icon {
    font-size: 12px;
}

.status-icon.active {
    color: #4caf50;
}

.status-icon.inactive {
    color: #637587;
}

.status-icon.maintenance {
    color: #ff9800;
}

@media (max-width: 1024px) {
    .equipment-table {
        overflow-x: auto;
    }
    
    table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .inventory-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .search-filter-bar {
        flex-direction: column;
    }

    .add-equipment-btn {
        width: 100%;
        justify-content: center;
    }
} 
.inspection-logs-container {
    padding: 24px;
}

.inspection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.inspection-header h1 {
    font-size: 24px;
    color: #1a1f36;
}

.add-inspection-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1A80E5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-inspection-btn:hover {
    background: #1565c0;
}

.search-filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.search-bar {
    flex: 1 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-bar input {
    flex: 1 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #1A80E5;
}

.inspection-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-icon {
    font-size: 16px;
}

.status-icon.passed {
    color: #4caf50;
}

.status-icon.failed {
    color: #f44336;
}

.status-icon.pending {
    color: #ff9800;
}

.attachment-count {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #637587;
}

.view-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    color: #1A80E5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn:hover {
    background: #1A80E5;
    color: white;
    border-color: #1A80E5;
}

@media (max-width: 1024px) {
    .inspection-table {
        overflow-x: auto;
    }
    
    table {
        min-width: 900px;
    }
}

@media (max-width: 768px) {
    .inspection-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .search-filter-bar {
        flex-direction: column;
    }

    .add-inspection-btn {
        width: 100%;
        justify-content: center;
    }
} 
.maintenance-records {
    min-height: 100vh;
    background: #f5f6fa;
}

.records-content {
    padding: 32px;
    max-width: 1440px;
    margin: 0 auto;
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-content h1 {
    font-size: 24px;
    color: #1a1f36;
    margin-bottom: 8px;
}

.header-content p {
    color: #637587;
    font-size: 14px;
}

.add-record-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1A80E5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-record-btn:hover {
    background: #1565c0;
}

/* Search and filter styles */
.search-filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.search-bar {
    flex: 1 1;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 8px;
    padding: 0 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.search-bar input {
    flex: 1 1;
    border: none;
    padding: 12px;
    font-size: 14px;
    outline: none;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: white;
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-btn:hover {
    background: #f8f9fa;
    border-color: #1A80E5;
}

@media (max-width: 768px) {
    .records-content {
        padding: 16px;
    }

    .records-header {
        flex-direction: column;
        gap: 16px;
    }

    .add-record-btn {
        width: 100%;
        justify-content: center;
    }

    .search-filter-bar {
        flex-direction: column;
    }
}

.maintenance-records-container {
    padding: 24px;
}

.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-content h1 {
    font-size: 24px;
    color: #1a1f36;
    margin-bottom: 8px;
}

.header-content p {
    color: #637587;
    font-size: 14px;
}

.add-maintenance-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1A80E5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.add-maintenance-btn:hover {
    background: #1565c0;
}

.maintenance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: 24px;
    gap: 24px;
    margin-top: 24px;
}

.maintenance-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    padding: 16px;
    background: #f8f9fa;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.equipment-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.equipment-info h3 {
    font-size: 16px;
    color: #1a1f36;
    margin: 0;
}

.card-content {
    padding: 16px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: #637587;
    font-size: 14px;
}

.label {
    color: #1a1f36;
    font-weight: 500;
}

.description {
    margin: 16px 0;
    color: #637587;
    font-size: 14px;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
}

.cost {
    font-size: 18px;
    font-weight: 600;
    color: #1a1f36;
}

.details-btn {
    padding: 6px 12px;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    color: #1A80E5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.details-btn:hover {
    background: #1A80E5;
    color: white;
    border-color: #1A80E5;
}

.next-service {
    padding: 12px 16px;
    background: #f8f9fa;
    border-top: 1px solid #e1e4e8;
    color: #637587;
    font-size: 14px;
}

.status-icon {
    font-size: 16px;
}

.status-icon.completed {
    color: #4caf50;
}

.status-icon.in-progress {
    color: #ff9800;
}

@media (max-width: 768px) {
    .maintenance-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .search-filter-bar {
        flex-direction: column;
    }

    .add-maintenance-btn {
        width: 100%;
        justify-content: center;
    }

    .maintenance-grid {
        grid-template-columns: 1fr;
    }
}

.header-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.notifications-btn {
    position: relative;
    padding: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #1A80E5;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ff4444;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

.notifications-panel {
    position: absolute;
    top: 80px;
    right: 32px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 320px;
    z-index: 1000;
    padding: 16px;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-bottom: 1px solid #e1e4e8;
}

.notification-item.overdue {
    background: #fff3f3;
}

.notification-item.upcoming {
    background: #f0f7ff;
}

.notification-date {
    font-size: 12px;
    color: #637587;
}

.reports-section {
    margin: 16px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

.report-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.upload-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border: 1px dashed #1A80E5;
    border-radius: 4px;
    color: #1A80E5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    background: #f0f7ff;
}

.priority-tag {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.priority-tag.high {
    background: #fff3f3;
    color: #ff4444;
}

.priority-tag.medium {
    background: #fff8e6;
    color: #ff9800;
}

.priority-tag.low {
    background: #e8f5e9;
    color: #4caf50;
}

.button-group {
    display: flex;
    gap: 8px;
}

.assign-btn {
    padding: 6px 12px;
    background: #f0f7ff;
    border: 1px solid #1A80E5;
    border-radius: 4px;
    color: #1A80E5;
    cursor: pointer;
    transition: all 0.2s ease;
}

.assign-btn:hover {
    background: #1A80E5;
    color: white;
}

.overdue {
    color: #ff4444;
}

.overdue-icon {
    color: #ff4444;
    margin-right: 8px;
}

.status-container {
    display: flex;
    align-items: center;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notifications-panel {
        right: 16px;
        width: calc(100% - 32px);
    }

    .header-actions {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
        width: 100%;
    }

    .assign-btn,
    .details-btn {
        width: 100%;
    }
} 
.defect-reporting-container {
    padding: 24px;
}

.defect-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-content h1 {
    font-size: 24px;
    color: #1a1f36;
    margin-bottom: 8px;
}

.header-content p {
    color: #637587;
    font-size: 14px;
}

.report-defect-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1A80E5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.report-defect-btn:hover {
    background: #1565c0;
}

.defect-reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    grid-gap: 24px;
    gap: 24px;
    margin-top: 24px;
}

.defect-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.priority-badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-high {
    background: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.priority-medium {
    background: rgba(255, 152, 0, 0.1);
    color: #ff9800;
}

.priority-low {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
}

.assignment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 16px 0;
    padding: 8px 0;
    border-top: 1px solid #e1e4e8;
    border-bottom: 1px solid #e1e4e8;
}

.photos-btn, .update-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.photos-btn {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    color: #637587;
}

.update-btn {
    background: #1A80E5;
    border: none;
    color: white;
}

.photos-btn:hover {
    background: #e9ecef;
}

.update-btn:hover {
    background: #1565c0;
}

@media (max-width: 768px) {
    .defect-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .report-defect-btn {
        width: 100%;
        justify-content: center;
    }

    .defect-reports-grid {
        grid-template-columns: 1fr;
    }
} 
.documentation-container {
    padding: 24px;
}

.documentation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.header-content h1 {
    font-size: 24px;
    color: #1a1f36;
    margin-bottom: 8px;
}

.header-content p {
    color: #637587;
    font-size: 14px;
}

.upload-doc-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1A80E5;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.upload-doc-btn:hover {
    background: #1565c0;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    grid-gap: 24px;
    gap: 24px;
    margin-top: 24px;
}

.document-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.doc-icon {
    font-size: 32px;
    color: #1A80E5;
}

.doc-icon .file-icon.pdf {
    color: #f44336;
}

.doc-icon .file-icon.image {
    color: #4caf50;
}

.doc-content {
    flex: 1 1;
}

.doc-content h3 {
    font-size: 16px;
    color: #1a1f36;
    margin-bottom: 8px;
}

.doc-info {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.doc-info span {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 4px;
    background: #f8f9fa;
}

.doc-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    color: #637587;
    font-size: 12px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.doc-actions {
    display: flex;
    gap: 8px;
}

.view-btn, .download-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn {
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    color: #637587;
}

.download-btn {
    background: #1A80E5;
    border: none;
    color: white;
}

.view-btn:hover {
    background: #e9ecef;
}

.download-btn:hover {
    background: #1565c0;
}

@media (max-width: 768px) {
    .documentation-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .upload-doc-btn {
        width: 100%;
        justify-content: center;
    }

    .documents-grid {
        grid-template-columns: 1fr;
    }

    .search-filter-bar {
        flex-direction: column;
    }
} 
.fixed-equipment-section {
  padding: 20px;
  overflow-x: hidden;
}

.search-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.search-bar {
  position: relative;
  width: 300px;
}

.search-bar input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.search-bar i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.table-buttons {
  display: flex;
  gap: 10px;
}

.btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #007bff;
  color: white;
}

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

.btn-secondary {
  background-color: #6c757d;
  color: white;
}

.btn-secondary:hover {
  background-color: #545b62;
}

.filter-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
}

.filter-btn:hover {
  background-color: #f8f9fa;
}

.table-section, .table-container {
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  width: 100%;
  height: 100%;
  margin: 0 !important;
  border: none;
  padding: 0 !important;
  box-sizing: border-box;
}

.table-container {
  width: 100%;
  overflow-x: auto;
  margin: 0;
  border: none;
  padding: 0;
  box-sizing: border-box;
}

table {
  width: 100%;
  height: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: auto;
  background: #fff;
  min-width: 0;
  max-width: 100%;
  margin: 0 !important;
  box-shadow: none;
  border-radius: 0 !important;
  overflow: hidden;
  box-sizing: border-box;
}

thead, tbody, tr, th, td {
  margin: 0 !important;
  padding: 16px 16px !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  border: none;
  vertical-align: middle;
}

th {
  padding: 24px 16px !important;
  letter-spacing: 0.5px;
  vertical-align: middle;
  background-color: #f8f9fa;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #dee2e6;
}

td {
  padding: 16px 16px !important;
  vertical-align: middle;
  border-bottom: 1px solid #f1f3f4;
}

.status-select {
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #ddd;
  font-size: 12px;
  font-weight: 500;
}

.status-select.pass {
  background-color: #d4edda;
  color: #155724;
  border-color: #c3e6cb;
}

.status-select.fail {
  background-color: #f8d7da;
  color: #721c24;
  border-color: #f5c6cb;
}

.status-select.pending {
  background-color: #fff3cd;
  color: #856404;
  border-color: #ffeaa7;
}

.status-select.unknown {
  background-color: #e2e3e5;
  color: #383d41;
  border-color: #d6d8db;
}

/* Modal Styles */
.modal-overlay {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(0,0,0,0.5) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 99999 !important;
}

.modal {
  position: relative !important;
  background: #fff !important;
  border-radius: 12px !important;
  padding: 32px 32px 16px 32px !important;
  max-width: 600px !important;
  width: 100% !important;
  min-width: 320px !important;
  max-height: 90vh !important;
  overflow-y: auto !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15) !important;
  z-index: 100000 !important;
  display: block !important;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #1a1f36;
}

.close-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #637587;
  padding: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-btn:hover {
  background-color: #e3f0fd;
  color: #1574F6;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  color: #333;
  margin-bottom: 6px;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 15px;
  color: #1a1f36;
  background: white;
  transition: all 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1A80E5;
  box-shadow: 0 0 0 3px rgba(26, 128, 229, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #e9ecef;
}

.btn-primary {
  background-color: #1A80E5;
  color: white;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary:hover {
  background-color: #1574F6;
}

.btn-secondary {
  background-color: white;
  color: #1A80E5;
  border: 1px solid #E1E4E8;
  padding: 12px 20px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-secondary:hover {
  background-color: #F0F0F5;
  border-color: #1A80E5;
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 16px;
  color: #666;
}

.error-message {
  color: #dc3545;
  text-align: center;
  padding: 20px;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 4px;
  margin: 20px 0;
}

/* Action buttons */
.edit-btn, .delete-btn, .view-test-data-btn {
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.edit-btn {
  background: #ffc107;
  color: #000;
}

.edit-btn:hover {
  background: #e0a800;
}

.delete-btn {
  background: #dc3545;
  color: white;
}

.delete-btn:hover {
  background: #c82333;
}

.view-test-data-btn {
  background: #1A80E5;
  color: white;
}

.view-test-data-btn:hover {
  background: #1574F6;
}

.system-blue {
  background: #1A80E5 !important;
  color: #fff !important;
  border: none !important;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(26,128,229,0.04);
  transition: background 0.2s, color 0.2s;
}

.system-blue:hover {
  background: #1574F6 !important;
  color: #fff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .modal {
    padding: 20px;
    margin: 10px;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .search-controls {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .search-bar {
    width: 100%;
  }
  
  .table-container {
    overflow-x: auto;
  }
} 
.equipment-safety-container {
  display: block;
  height: 100vh;
  max-height: 100vh;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  padding-top: 72px;
  box-sizing: border-box;
}

.equipment-safety-content {
  display: flex;
  flex: 1 1 auto;
  padding: 24px;
  margin-left: 280px; /* Account for fixed sidebar */
  gap: 24px;
  background-color: #f5f6fa;
  overflow: hidden;
  height: calc(100vh - 72px);
  max-height: calc(100vh - 72px);
  box-sizing: border-box;
}

/* Sidebar Styles - Matching Roof Safety */
.equipment-safety-sidebar {
  position: fixed;
  left: 0;
  top: 72px;
  bottom: 0;
  background: white;
  padding: 24px 16px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  box-sizing: border-box;
  width: 280px;
  overflow-y: auto;
  z-index: 90;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.equipment-safety-sidebar::-webkit-scrollbar {
  width: 4px;
}

.equipment-safety-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.equipment-safety-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.equipment-safety-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.5);
}

.equipment-safety-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1;
  padding-top: 8px;
  min-height: 0;
}

.equipment-safety-menu-item {
  padding: 10px 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  font: inherit;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
  gap: 12px;
}

.equipment-safety-menu-item:hover {
  background-color: #f8fafc;
  color: #3b82f6;
}

.equipment-safety-menu-item.active {
  background-color: #f0f9ff;
  color: #3b82f6;
  font-weight: 600;
}

.equipment-safety-menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.equipment-safety-menu-label {
  flex: 1 1;
  text-align: left;
}

.equipment-safety-menu-arrow {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.6;
  flex-shrink: 0;
}

.equipment-safety-main {
  flex: 1 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 16px;
  padding-bottom: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-sizing: border-box;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.sidebar-back-btn:hover {
  color: #3b82f6;
  background-color: #f8fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .equipment-safety-content {
    flex-direction: column;
  }
  .equipment-safety-sidebar {
    width: 100%;
  }
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2em;
  color: #666;
}

.error-message {
  color: #dc3545;
  text-align: center;
  padding: 20px;
  font-size: 1.2em;
}
/* Electrical Safety Dashboard Styles - Exact Copy from Roof Safety Design */
.electrical-dashboard-wrapper {
  width: 100%;
  height: 100%;
  max-height: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  /* Ensure the whole dashboard fits without scrolling */
  overflow: hidden;
  box-sizing: border-box;
}


.electrical-dashboard-wrapper .dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.electrical-dashboard-wrapper .dashboard-title {
  color: #0c437c !important;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.electrical-dashboard-wrapper .dashboard-actions {
  display: flex;
  gap: 16px;
}

.electrical-dashboard-wrapper .btn,
.electrical-dashboard-wrapper .btn-primary,
.electrical-dashboard-wrapper .btn-small {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.electrical-dashboard-wrapper .btn-primary,
.electrical-dashboard-wrapper .btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.electrical-dashboard-wrapper .btn-primary:hover,
.electrical-dashboard-wrapper .btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

.electrical-dashboard-wrapper .dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.electrical-dashboard-wrapper .dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  border: 1px solid #f1f5f9;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.electrical-dashboard-wrapper .dashboard-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #2563eb 100%);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.electrical-dashboard-wrapper .dashboard-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: #e0e7ff;
}

.electrical-dashboard-wrapper .dashboard-card:hover::before {
  opacity: 1;
}

.electrical-dashboard-wrapper .dashboard-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  color: #3b82f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
  flex-shrink: 0;
}

.electrical-dashboard-wrapper .dashboard-card-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.electrical-dashboard-wrapper .dashboard-card-label {
  color: hsl(217, 91%, 60%) !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
  margin: 0 !important;
  width: 100% !important;
  line-height: 1.1 !important;
}

.electrical-dashboard-wrapper .dashboard-card-numbers {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  align-items: flex-start !important;
}

.electrical-dashboard-wrapper .dashboard-card-total {
  font-size: 16px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  text-align: left !important;
  align-self: flex-start !important;
  margin-top: 4px !important;
}

.electrical-dashboard-wrapper .dashboard-card-failed {
  display: none;
}

.electrical-dashboard-wrapper .dashboard-bottom-panels {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 16px;
  gap: 16px;
  margin-top: 24px;
  flex: 1 1 auto;
  align-items: stretch;
  min-height: 0;
}

.electrical-dashboard-wrapper .dashboard-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.1);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  min-width: 0;
}

.electrical-dashboard-wrapper .dashboard-panel:hover {
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.2);
}

.electrical-dashboard-wrapper .panel-title {
  font-size: 1.1em;
  color: #0c437c !important;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.electrical-dashboard-wrapper .panel-title svg,
.electrical-dashboard-wrapper .panel-title .fa-icon {
  color: #0c437c !important;
}

.electrical-dashboard-wrapper .attention-list {
  list-style: none;
  padding: 0 0 12px 0;
  margin: 0;
}

.electrical-dashboard-wrapper .attention-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  color: #d32f2f;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.electrical-dashboard-wrapper .attention-list li:last-child {
  border-bottom: none;
}


.electrical-dashboard-wrapper .attention-icon {
  color: #d32f2f;
  font-size: 1.2em;
}

.electrical-dashboard-wrapper .attention-label {
  color: #1F2937;
  font-weight: 500;
}

.electrical-dashboard-wrapper .attention-failed {
  color: #1F2937;
  font-weight: 600;
}

.electrical-dashboard-wrapper .no-issues {
  color: #10B981;
  font-weight: 500;
  text-align: left;
  font-size: 1em;
}

.electrical-dashboard-wrapper .next-inspection-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.electrical-dashboard-wrapper .next-inspection-date {
  color: #1F2937;
  font-size: 1em;
  margin-bottom: 8px;
}

/* Responsive styles */
@media (max-width: 1200px) {
  .electrical-dashboard-wrapper .dashboard-bottom-panels {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
.electrical-dashboard-wrapper .dashboard-panel.activity-panel {
  grid-column: 1 / -1;
}

.electrical-dashboard-wrapper .dashboard-panel.activity-panel > div > div {
  background-color: #fff !important;
}

.electrical-dashboard-wrapper .dashboard-panel.activity-panel > div > div > div {
  background-color: #fff !important;
}

.electrical-dashboard-wrapper .dashboard-panel.activity-panel div {
  background-color: #fff !important;
}
}

@media (max-width: 900px) {
  .electrical-dashboard-wrapper .dashboard-bottom-panels {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .electrical-dashboard-wrapper .dashboard-panel {
    min-width: 0;
    padding: 20px 16px;
  }
  .electrical-dashboard-wrapper .dashboard-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .electrical-dashboard-wrapper {
    padding: 8px;
  }
  .electrical-dashboard-wrapper .dashboard-panel {
    padding: 12px 8px;
  }
  .electrical-dashboard-wrapper .dashboard-card {
    padding: 12px 8px;
    min-width: 0;
  }
}

.electrical-dashboard-wrapper .dashboard-actions .btn,
.electrical-dashboard-wrapper .dashboard-actions .btn-primary,
.electrical-dashboard-wrapper .dashboard-actions .btn-small,
.electrical-dashboard-wrapper .next-inspection-panel .btn,
.electrical-dashboard-wrapper .next-inspection-panel .btn-primary,
.electrical-dashboard-wrapper .next-inspection-panel .btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.electrical-dashboard-wrapper .dashboard-actions .btn:hover,
.electrical-dashboard-wrapper .dashboard-actions .btn-primary:hover,
.electrical-dashboard-wrapper .dashboard-actions .btn-small:hover,
.electrical-dashboard-wrapper .next-inspection-panel .btn:hover,
.electrical-dashboard-wrapper .next-inspection-panel .btn-primary:hover,
.electrical-dashboard-wrapper .next-inspection-panel .btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

/* Make sure the old styles don't interfere */
.electrical-dashboard-wrapper .dashboard-section {
  width: 100%;
}

.electrical-dashboard-wrapper .status-card {
  display: none; /* Hide old cards */
}

.electrical-dashboard-wrapper .upcoming-tests {
  display: none; /* Hide old upcoming tests section */
}

/* Circuit Breaker Checks - Modern Design */
.circuit-breaker-checks {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-check-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-check-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.checks-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.checks-table {
  width: 100%;
  border-collapse: collapse;
}

.checks-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.checks-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
}

.checks-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pass {
  background: #e6f4ea;
  color: #10B981;
}

.status-badge.fail {
  background: #fce8e6;
  color: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-check-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-check-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .checks-table-container {
    overflow-x: auto;
  }
  
  .add-check-modal {
    width: 95%;
    padding: 24px;
  }
}
/* Electrical Equipment Logs - Modern Design */
.equipment-logs {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-log-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-log-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.logs-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.logs-table {
  width: 100%;
  border-collapse: collapse;
}

.logs-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.logs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.logs-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.good {
  background: #e6f4ea;
  color: #10B981;
}

.status-badge.fair {
  background: #fef3c7;
  color: #F59E0B;
}

.status-badge.poor {
  background: #fce8e6;
  color: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-log-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-log-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .logs-table-container {
    overflow-x: auto;
  }
  
  .add-log-modal {
    width: 95%;
    padding: 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* Emergency Power Systems - Modern Design */
.emergency-power {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-system-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-system-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

/* Status indicators section */
.status-indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.status-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
}

.status-icon {
  font-size: 24px;
  color: #1574F6;
  margin-bottom: 16px;
}

.fuel-levels, .battery-status {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fuel-indicator, .battery-indicator {
  display: flex;
  align-items: center;
  gap: 16px;
}

.fuel-bar {
  flex: 1 1;
  height: 12px;
  background: #f0f2f5;
  border-radius: 6px;
  overflow: hidden;
}

.fuel-level {
  height: 100%;
  background: #10B981;
  transition: width 0.3s ease;
}

.health-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.health-badge.good {
  background: #e6f4ea;
  color: #10B981;
}

.health-badge.fair {
  background: #fef3c7;
  color: #F59E0B;
}

.health-badge.poor {
  background: #fce8e6;
  color: #d32f2f;
}

.systems-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.systems-table {
  width: 100%;
  border-collapse: collapse;
}

.systems-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.systems-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
}

.systems-table tr:hover {
  background: #f9fafb;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-system-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-system-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .status-indicators {
    grid-template-columns: 1fr;
  }
  
  .systems-table-container {
    overflow-x: auto;
  }
  
  .add-system-modal {
    width: 95%;
    padding: 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* Fuse Board Inspections - Modern Design */
.fuse-board-inspections {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-inspection-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-inspection-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.inspections-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.inspections-table {
  width: 100%;
  border-collapse: collapse;
}

.inspections-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.inspections-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
}

.inspections-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pass {
  background: #e6f4ea;
  color: #10B981;
}

.status-badge.fail {
  background: #fce8e6;
  color: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-inspection-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-inspection-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .inspections-table-container {
    overflow-x: auto;
  }
  
  .add-inspection-modal {
    width: 95%;
    padding: 24px;
  }
}
/* Grounding and Bonding - Modern Design */
.grounding-bonding {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-test-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-test-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.tests-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
}

.tests-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.tests-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
}

.tests-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pass {
  background: #e6f4ea;
  color: #10B981;
}

.status-badge.fail {
  background: #fce8e6;
  color: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-test-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-test-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .tests-table-container {
    overflow-x: auto;
  }
  
  .add-test-modal {
    width: 95%;
    padding: 24px;
  }
}
/* Load Testing - Modern Design */
.load-testing {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-test-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-test-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-icon.danger {
  background: #fce8e6;
  color: #d32f2f;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.tests-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
}

.tests-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.tests-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
}

.tests-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pass {
  background: #e6f4ea;
  color: #10B981;
}

.status-badge.fail {
  background: #fce8e6;
  color: #d32f2f;
}

.load-percentage {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 100px;
}

.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  position: relative;
  flex: 1 1;
}

.progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #10B981;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-bar.danger::after {
  background: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-test-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-test-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .tests-table-container {
    overflow-x: auto;
  }
  
  .add-test-modal {
    width: 95%;
    padding: 24px;
  }
}
/* PAT Testing Logs - Modern Design */
.pat-testing {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-test-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-test-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.tests-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
}

.tests-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.tests-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tests-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pass {
  background: #e6f4ea;
  color: #10B981;
}

.status-badge.fail {
  background: #fce8e6;
  color: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-test-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-test-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 16px;
  gap: 16px;
  margin-bottom: 24px;
}

.full-width {
  grid-column: 1 / -1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .tests-table-container {
    overflow-x: auto;
  }
  
  .add-test-modal {
    width: 95%;
    padding: 24px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
}
/* RCD Testing - Modern Design */
.rcd-testing {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-test-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-test-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.tests-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.tests-table {
  width: 100%;
  border-collapse: collapse;
}

.tests-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.tests-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
}

.tests-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pass {
  background: #e6f4ea;
  color: #10B981;
}

.status-badge.fail {
  background: #fce8e6;
  color: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-test-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-test-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .tests-table-container {
    overflow-x: auto;
  }
  
  .add-test-modal {
    width: 95%;
    padding: 24px;
  }
}
/* Switchgear Inspections - Modern Design */
.switchgear-inspections {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-inspection-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-inspection-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.inspections-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.inspections-table {
  width: 100%;
  border-collapse: collapse;
}

.inspections-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.inspections-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
}

.inspections-table tr:hover {
  background: #f9fafb;
}

.status-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.pass {
  background: #e6f4ea;
  color: #10B981;
}

.status-badge.fail {
  background: #fce8e6;
  color: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-inspection-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-inspection-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .inspections-table-container {
    overflow-x: auto;
  }
  
  .add-inspection-modal {
    width: 95%;
    padding: 24px;
  }
}
/* Thermal Imaging Reports - Modern Design */
.thermal-imaging {
  width: 100%;
  padding: 0;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.header-content h1 {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0 0 8px 0;
}

.header-content p {
  color: #6B7280;
  font-size: 1rem;
  margin: 0;
}

.add-report-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.add-report-btn:hover {
  background: #1264D9;
}

.overview-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.overview-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5em;
}

.card-icon.success {
  background: #e6f4ea;
  color: #10B981;
}

.card-icon.warning {
  background: #fef3c7;
  color: #F59E0B;
}

.card-icon.primary {
  background: #e3f2fd;
  color: #1976d2;
}

.card-content h3 {
  color: #6B7280;
  font-size: 0.875rem;
  font-weight: 500;
  margin: 0 0 8px 0;
}

.card-value {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.reports-table-container {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  overflow-x: auto;
}

.reports-table {
  width: 100%;
  border-collapse: collapse;
}

.reports-table th {
  background: #f8fafc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.875rem;
}

.reports-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  font-size: 0.875rem;
}

.reports-table tr:hover {
  background: #f9fafb;
}

.severity-badge {
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.severity-badge.low {
  background: #e6f4ea;
  color: #10B981;
}

.severity-badge.medium {
  background: #fef3c7;
  color: #F59E0B;
}

.severity-badge.high {
  background: #fce8e6;
  color: #d32f2f;
}

.temperature-display {
  display: flex;
  align-items: center;
  gap: 8px;
}

.temperature-icon {
  color: #d32f2f;
}

.view-btn {
  background: #1574F6;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.view-btn:hover {
  background: #1264D9;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.add-report-modal {
  background: white;
  border-radius: 12px;
  padding: 32px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.add-report-modal h2 {
  color: #1F2937;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 24px 0;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  color: #374151;
  font-weight: 500;
  margin-bottom: 6px;
  font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  color: #374151;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1574F6;
  box-shadow: 0 0 0 3px rgba(21, 116, 246, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.image-upload {
  border: 2px dashed #d1d5db;
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
  background: #f9fafb;
}

.image-upload:hover {
  border-color: #1574F6;
  background: #f0f9ff;
}

.image-preview {
  max-width: 100%;
  height: auto;
  margin-top: 16px;
  border-radius: 8px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.cancel-btn {
  padding: 10px 20px;
  background: white;
  color: #6B7280;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.cancel-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.submit-btn {
  padding: 10px 20px;
  background: #1574F6;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.submit-btn:hover {
  background: #1264D9;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .overview-section {
    grid-template-columns: 1fr;
  }
  
  .reports-table-container {
    overflow-x: auto;
  }
  
  .add-report-modal {
    width: 95%;
    padding: 24px;
  }
}
.electrical-safety-container {
  display: block;
  min-height: 100vh;
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  padding-top: 72px;
}

.electrical-safety-content {
  display: flex;
  flex: 1 1 auto;
  padding: 24px;
  margin-left: 280px; /* Account for fixed sidebar */
  gap: 24px;
  background-color: #f5f6fa;
  overflow: hidden;
  min-height: calc(100vh - 72px);
  box-sizing: border-box;
}

/* Sidebar Styles - Matching Roof Safety */
.electrical-safety-sidebar {
  position: fixed;
  left: 0;
  top: 72px;
  bottom: 0;
  background: white;
  padding: 24px 16px;
  border-right: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  height: calc(100vh - 72px);
  box-sizing: border-box;
  width: 280px;
  overflow-y: auto;
  z-index: 90;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.3) transparent;
}

.electrical-safety-sidebar::-webkit-scrollbar {
  width: 4px;
}

.electrical-safety-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.electrical-safety-sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.3);
  border-radius: 2px;
}

.electrical-safety-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: rgba(148, 163, 184, 0.5);
}

.electrical-safety-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1;
  padding-top: 8px;
  min-height: 0;
}

.electrical-safety-menu-item {
  padding: 10px 12px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  font: inherit;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  color: #64748b;
  font-weight: 500;
  font-size: 14px;
  gap: 12px;
}

.electrical-safety-menu-item:hover {
  background-color: #f8fafc;
  color: #3b82f6;
}

.electrical-safety-menu-item.active {
  background-color: #f0f9ff;
  color: #3b82f6;
  font-weight: 600;
}

.electrical-safety-menu-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.electrical-safety-menu-label {
  flex: 1 1;
  text-align: left;
}

.electrical-safety-menu-arrow {
  margin-left: auto;
  font-size: 12px;
  opacity: 0.6;
  flex-shrink: 0;
}

.electrical-safety-main {
  flex: 1 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 16px !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #64748b;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 8px;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}

.sidebar-back-btn:hover {
  color: #3b82f6;
  background-color: #f8fafc;
}

/* Responsive Design */
@media (max-width: 768px) {
  .electrical-safety-content {
    flex-direction: column;
  }
  .electrical-safety-sidebar {
    width: 100%;
  }
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2em;
  color: #666;
}

.error-message {
  color: #dc3545;
  text-align: center;
  padding: 20px;
  font-size: 1.2em;
}
/* Building Maintenance Dashboard Styles - Matching Fire Safety Design */
.building-maintenance-dashboard-wrapper {
  width: 100%;
  padding: 0;
}

.dashboard-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-title {
  color: #1F2937;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.dashboard-actions {
  display: flex;
  gap: 16px;
}

.btn,
.btn-primary,
.btn-small {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 1em;
  transition: background 0.2s, color 0.2s;
}

.btn-primary,
.btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.btn-primary:hover,
.btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}

.dashboard-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 32px;
}

.dashboard-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px 24px 20px 24px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 220px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.dashboard-card:hover {
  box-shadow: 0 4px 16px rgba(21,116,246,0.10);
  transform: translateY(-2px);
}

.dashboard-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #e7f5ff;
  color: #1574F6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7em;
}

.dashboard-card-info {
  flex: 1 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.dashboard-card-label {
  color: #1F2937;
  font-size: 1.1em;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.dashboard-card-numbers {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-card-total {
  font-size: 1.5em;
  font-weight: 700;
  color: #1F2937;
}

.dashboard-card-failed {
  font-size: 1em;
  color: #d32f2f;
  font-weight: 600;
  background: #fce8e6;
  border-radius: 6px;
  padding: 2px 10px;
  margin-left: 4px;
}

.dashboard-card.good {
  border-left: 4px solid #10B981;
}
.dashboard-card.warning {
  border-left: 4px solid #F59E0B;
}
.dashboard-card.alert {
  border-left: 4px solid #d32f2f;
}

.dashboard-bottom-panels {
  display: flex;
  gap: 24px;
  margin-top: 8px;
  flex-wrap: wrap;
}

.dashboard-panel {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  padding: 24px 32px;
  flex: 1 1 320px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.panel-title {
  font-size: 1.1em;
  color: #1F2937;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.attention-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.attention-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 1em;
  color: #d32f2f;
  font-weight: 500;
}

.attention-list li:last-child {
  border-bottom: none;
}

.attention-icon {
  color: #d32f2f;
  font-size: 1.2em;
}

.attention-label {
  color: #1F2937;
  font-weight: 500;
}

.attention-failed {
  color: #d32f2f;
  font-weight: 600;
}

.no-issues {
  color: #10B981;
  font-weight: 500;
  text-align: left;
  font-size: 1em;
}

.next-inspection-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.next-inspection-date {
  color: #1F2937;
  font-size: 1em;
  margin-bottom: 8px;
}

/* Responsive styles */
@media (max-width: 900px) {
  .dashboard-bottom-panels {
    flex-direction: column;
    gap: 16px;
  }
  .dashboard-panel {
    min-width: 0;
    padding: 20px 16px;
  }
  .dashboard-cards-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .building-maintenance-dashboard-wrapper {
    padding: 8px;
  }
  .dashboard-panel {
    padding: 12px 8px;
  }
  .dashboard-card {
    padding: 12px 8px;
    min-width: 0;
  }
}

.dashboard-actions .btn,
.dashboard-actions .btn-primary,
.dashboard-actions .btn-small,
.next-inspection-panel .btn,
.next-inspection-panel .btn-primary,
.next-inspection-panel .btn-small {
  background: #1574F6 !important;
  color: #fff !important;
  border: none !important;
}

.dashboard-actions .btn:hover,
.dashboard-actions .btn-primary:hover,
.dashboard-actions .btn-small:hover,
.next-inspection-panel .btn:hover,
.next-inspection-panel .btn-primary:hover,
.next-inspection-panel .btn-small:hover {
  background: #1264D9 !important;
  color: #fff !important;
}
/* Common styles for all maintenance pages */
.maintenance-page {
  padding: 2rem;
  background-color: var(--color-background);
  min-height: calc(100vh - 64px); /* Adjust for header height */
}

.maintenance-content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  max-width: 1440px;
  margin: 0 auto;
}

.maintenance-content h1 {
  color: var(--color-text-primary);
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 600;
}

/* Status Cards Grid */
.maintenance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--color-border);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.status-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.status-card h3 {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.status-card p {
  color: var(--color-text-primary);
  font-size: 1.5rem;
  font-weight: 600;
}

/* Status Colors */
.status-ok {
  color: var(--color-success) !important;
}

.status-warning {
  color: var(--color-warning) !important;
}

.status-critical {
  color: var(--color-danger) !important;
}

/* Action Buttons */
.action-button {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.action-button:hover {
  background: var(--color-primary-dark);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .maintenance-page {
    padding: 1rem;
  }
  
  .maintenance-content {
    padding: 1.5rem;
  }
}

@media (max-width: 768px) {
  .maintenance-grid {
    grid-template-columns: 1fr;
  }
  
  .status-card {
    margin-bottom: 1rem;
  }
} 
.maintenance-page {
  padding: 2rem;
  background-color: var(--color-background);
  min-height: calc(100vh - 64px);
}

.maintenance-content {
  max-width: 1440px;
  margin: 0 auto;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.action-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.action-button:hover {
  background-color: var(--color-primary-dark);
}

/* Status Grid */
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.status-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 500;
}

.status-badge.good { color: var(--color-success); }
.status-badge.warning { color: var(--color-warning); }
.status-badge.critical { color: var(--color-danger); }

/* Table Styles */
.inspection-section,
.documents-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.inspection-table {
  width: 100%;
  border-collapse: collapse;
}

.inspection-table th,
.inspection-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.status-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.status-pill.good {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.completed {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Upload Area */
.upload-box {
  border: 2px dashed var(--color-border);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.upload-box:hover {
  border-color: var(--color-primary);
}

.upload-box svg {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .status-grid {
    grid-template-columns: 1fr;
  }
  
  .content-header {
    flex-direction: column;
    gap: 1rem;
    align-items: flex-start;
  }
} 
/* Extend shared maintenance styles */
.service-section,
.issues-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Table Styles */
.service-table,
.issues-table {
  width: 100%;
  border-collapse: collapse;
}

.service-table th,
.service-table td,
.issues-table th,
.issues-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

/* Priority Pills */
.priority-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.priority-pill.high {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.priority-pill.medium {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.priority-pill.low {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Status Indicators */
.status-pill.investigating {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.completed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .service-table,
  .issues-table {
    min-width: 800px;
  }
} 
/* Extend shared maintenance styles */
.maintenance-section,
.certificates-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Table Styles */
.maintenance-table {
  width: 100%;
  border-collapse: collapse;
}

.maintenance-table th,
.maintenance-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

/* Certificate Cards */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.certificate-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-background);
}

.certificate-icon {
  width: 40px;
  height: 40px;
  border-radius: 20px;
  background: var(--color-success-light);
  color: var(--color-success);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.certificate-details {
  flex: 1 1;
}

.certificate-details h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.certificate-details p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Status Indicators */
.status-pill.passed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.active {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .maintenance-table {
    min-width: 800px;
  }
  
  .certificates-grid {
    grid-template-columns: 1fr;
  }
} 
.inspection-history {
  margin-top: 2rem;
}

.inspection-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.inspection-table th,
.inspection-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

/* Extend shared maintenance styles */
.inspection-section,
.damage-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Damage Reports Grid */
.damage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.damage-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
}

.damage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.damage-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.damage-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Status Indicators */
.status-pill.monitoring {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.passed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.completed {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .inspection-table {
    min-width: 800px;
  }
  
  .damage-grid {
    grid-template-columns: 1fr;
  }
} 
/* Extend shared maintenance styles */
.inspection-section,
.issues-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Issues Grid */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.issue-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
}

.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.issue-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.issue-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Severity Pills */
.severity-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.severity-pill.high {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.severity-pill.medium {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.severity-pill.low {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Status Indicators */
.status-pill.monitoring {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.passed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .inspection-table {
    min-width: 800px;
  }
  
  .issues-grid {
    grid-template-columns: 1fr;
  }
} 
/* Extend shared maintenance styles */
.maintenance-section,
.repairs-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Repairs Grid */
.repairs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.repair-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
}

.repair-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.repair-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.repair-type svg {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.repair-type h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.repair-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Status Indicators */
.status-pill.scheduled {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.completed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Priority Pills */
.priority-pill.high {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.priority-pill.medium {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.priority-pill.low {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .maintenance-table {
    min-width: 800px;
  }
  
  .repairs-grid {
    grid-template-columns: 1fr;
  }
} 
/* Extend shared maintenance styles */
.maintenance-section,
.issues-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Issues Grid */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.issue-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
}

.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.issue-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.issue-type svg {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.issue-type h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.issue-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Status Indicators */
.status-pill.in-progress {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.passed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

.status-pill.completed {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Priority Pills */
.priority-pill.high {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.priority-pill.medium {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.priority-pill.low {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .maintenance-table {
    min-width: 800px;
  }
  
  .issues-grid {
    grid-template-columns: 1fr;
  }
} 
/* Extend shared maintenance styles */
.treatment-section,
.issues-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Treatment Table */
.treatment-table {
  width: 100%;
  border-collapse: collapse;
}

.treatment-table th,
.treatment-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

/* Issues Grid */
.issues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.issue-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
}

.issue-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.issue-header h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.issue-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Status Indicators */
.status-pill.scheduled {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.completed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Severity Pills */
.severity-pill {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
}

.severity-pill.high {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.severity-pill.medium {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.severity-pill.low {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .treatment-table {
    min-width: 800px;
  }
  
  .issues-grid {
    grid-template-columns: 1fr;
  }
} 
/* Extend shared maintenance styles */
.maintenance-section,
.scheduled-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Scheduled Work Grid */
.scheduled-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.scheduled-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
}

.scheduled-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.work-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.work-type svg {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.work-type h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.scheduled-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Status Indicators */
.status-pill.scheduled {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.completed {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .table-container {
    overflow-x: auto;
  }
  
  .maintenance-table {
    min-width: 800px;
  }
  
  .scheduled-grid {
    grid-template-columns: 1fr;
  }
} 
.defects-form {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--color-background);
  border-radius: 8px;
}

.defects-list {
  margin-top: 2rem;
}

.defect-item {
  padding: 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Form Styles */
.report-section,
.defects-section {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.defect-form {
  max-width: 800px;
  margin: 1rem 0;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--color-text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--color-text-primary);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.file-input {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  cursor: pointer;
}

.image-preview {
  margin-top: 1rem;
}

.preview-item {
  padding: 0.5rem;
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.submit-button {
  background-color: var(--color-primary);
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-button:hover {
  background-color: var(--color-primary-dark);
}

/* Defects Grid */
.defects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-top: 1rem;
}

.defect-card {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 1rem;
}

.defect-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.defect-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.defect-title svg {
  color: var(--color-primary);
  font-size: 1.2rem;
}

.defect-title h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--color-text-primary);
}

.defect-details p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: var(--color-text-secondary);
}

/* Status Indicators */
.status-pill.investigating {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.status-pill.scheduled {
  background-color: var(--color-primary-light);
  color: var(--color-primary);
}

/* Priority Pills */
.priority-pill.high {
  background-color: var(--color-danger-light);
  color: var(--color-danger);
}

.priority-pill.medium {
  background-color: var(--color-warning-light);
  color: var(--color-warning);
}

.priority-pill.low {
  background-color: var(--color-success-light);
  color: var(--color-success);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .defect-form {
    max-width: 100%;
  }
  
  .defects-grid {
    grid-template-columns: 1fr;
  }
} 
.building-maintenance-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background-color: #f5f6fa;
}

.building-maintenance-content {
  display: flex;
  flex: 1 1;
  padding: 20px;
  padding-top: 100px;
  gap: 20px;
}

.building-maintenance-sidebar {
  width: 280px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

.building-maintenance-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.building-maintenance-menu-item {
  padding: 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.building-maintenance-menu-item:hover {
  background-color: #f0f2f5;
}

.building-maintenance-menu-item.active {
  background-color: #e3f2fd;
  color: #1976d2;
}

.building-maintenance-menu-item-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.building-maintenance-menu-icon {
  width: 20px;
}

.building-maintenance-menu-arrow {
  margin-left: auto;
  font-size: 12px;
}

.building-maintenance-main {
  flex: 1 1;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 24px;
  overflow-y: auto;
  overflow-x: hidden;
  min-width: 0;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: #1F2937;
  font-size: 1em;
  font-weight: 500;
  padding: 8px 0 16px 0;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s;
}
.sidebar-back-btn:hover {
  color: #1574F6;
}

/* Responsive Design */
@media (max-width: 768px) {
  .building-maintenance-content {
    flex-direction: column;
  }
  .building-maintenance-sidebar {
    width: 100%;
  }
}

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 200px;
  font-size: 1.2em;
  color: #666;
}

.error-message {
  color: #dc3545;
  text-align: center;
  padding: 20px;
  font-size: 1.2em;
}
/* Header Styles */
.general-maintenance-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.add-task-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-primary);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.add-task-btn:hover {
  background-color: var(--color-primary-dark);
}

/* Form Styles */
.task-form-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.task-form {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.task-form h2 {
  margin-bottom: 1.5rem;
  color: var(--color-text-primary);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 1rem;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.submit-btn,
.cancel-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn {
  background-color: var(--color-primary);
  color: white;
}

.submit-btn:hover {
  background-color: var(--color-primary-dark);
}

.cancel-btn {
  background-color: var(--color-background);
  color: var(--color-text-secondary);
}

.cancel-btn:hover {
  background-color: var(--color-background-hover);
}

/* Task Cards */
.tasks-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-top: 2rem;
}

.task-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  border-left: 4px solid var(--color-primary);
}

.task-card.priority-high { border-left-color: var(--color-danger); }
.task-card.priority-medium { border-left-color: var(--color-warning); }
.task-card.priority-low { border-left-color: var(--color-success); }

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.task-header h3 {
  color: var(--color-text-primary);
  font-size: 1.1rem;
  margin: 0;
}

.task-actions {
  display: flex;
  gap: 0.5rem;
}

.task-actions button {
  background: none;
  border: none;
  color: var(--color-text-secondary);
  cursor: pointer;
  padding: 0.25rem;
  transition: color 0.2s ease;
}

.task-actions button:hover {
  color: var(--color-primary);
}

.task-description {
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.task-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.85rem;
}

.status-badge,
.priority-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-weight: 500;
}

.status-badge.status-pending { background-color: var(--color-warning-light); color: var(--color-warning); }
.status-badge.status-in-progress { background-color: var(--color-primary-light); color: var(--color-primary); }
.status-badge.status-completed { background-color: var(--color-success-light); color: var(--color-success); }

.priority-badge.priority-high { background-color: var(--color-danger-light); color: var(--color-danger); }
.priority-badge.priority-medium { background-color: var(--color-warning-light); color: var(--color-warning); }
.priority-badge.priority-low { background-color: var(--color-success-light); color: var(--color-success); }

.due-date,
.assigned-to {
  color: var(--color-text-secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .tasks-container {
    grid-template-columns: 1fr;
  }

  .task-details {
    flex-direction: column;
    gap: 0.5rem;
  }
} 
.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  text-align: center;
  padding: 20px;
}

.error-header {
  padding: 20px 40px;
  border-bottom: 1px solid var(--border-color);
}

.error-content {
  flex: 1 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 40px;
}

.error-container {
  max-width: 600px;
  text-align: center;
  background: white;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.error-title {
  font-size: 32px;
  color: var(--text-color);
  margin-bottom: 20px;
}

.error-code {
  font-size: 72px;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.error-message {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.error-actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-bottom: 30px;
}

.back-button,
.home-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-button {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.home-button {
  background-color: var(--primary-color);
  border: none;
  color: white;
}

.back-button:hover,
.home-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.error-details {
  color: #666;
  margin: 20px 0;
}

.error-stack {
  font-size: 12px;
  overflow-x: auto;
  white-space: pre-wrap;
  margin-top: 10px;
  padding: 10px;
  background-color: #eee;
  border-radius: 4px;
}

.back-link {
  color: #1A80E5;
  text-decoration: none;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .error-container {
    margin: 20px;
    padding: 20px;
  }

  .error-code {
    font-size: 48px;
  }

  .error-actions {
    flex-direction: column;
  }
} 
.documents-container {
  padding: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.documents-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.property-inspections-page {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f6fa;
  height: 100vh; /* Fixed height instead of min-height */
  width: 100vw; /* Full viewport width */
  padding-top: 80px; /* Further reduced from 100px to 80px */
  padding-bottom: 0; /* Remove bottom padding */
  overflow: hidden; /* Prevent page scrolling */
  display: flex;
  flex-direction: column;
  position: fixed; /* Ensure no scrolling */
  top: 0;
  left: 0;
}

.documents-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 40px 0 40px; /* Further reduced padding from 20px to 12px */
  background: #f5f6fa;
}

.documents-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.documents-title-icon {
  font-size: 1.8rem; /* Reduced from 2.2rem to 1.8rem to match header */
  color: #1574F6;
  flex-shrink: 0; /* Prevent icon from shrinking */
  line-height: 1; /* Ensure icon aligns with text baseline */
}

.documents-header-bar h1 {
  font-size: 1.8rem; /* Reduced from 2.2rem to 1.8rem */
  font-weight: 700;
  color: #1a1f36;
  margin: 0; /* Remove bottom margin */
  line-height: 1.2; /* Better line height for alignment */
}

.documents-header-bar p {
  color: #637587;
  font-size: 1.1rem;
  margin: 0;
}

/* Property address styling */
.property-address {
  color: #637587;
  font-size: 1.05rem;
  margin: 4px 0 0 0;
  text-align: left;
  margin-left: calc(1.8rem + 12px);
}

/* Documents meta row styling */
.documents-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  text-align: left;
  margin-left: calc(1.8rem + 12px);
}

.last-updated {
  color: #637587;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-summary {
  color: #637587;
  font-size: 0.9rem;
}

.expiring-soon {
  color: #f59e0b;
  font-weight: 500;
}

.upload-doc-btn {
  background: #1574F6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,116,246,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.upload-doc-btn:hover {
  background: #1264D9;
  box-shadow: 0 4px 16px rgba(21,116,246,0.12);
}

.documents-filters-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  padding: 24px 40px;
  margin: 24px 40px 0 40px;
  flex-wrap: wrap;
}

.documents-filters-bar select,
.documents-filters-bar input[type="text"] {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  background: #f8f9fa;
  color: #1a1f36;
  min-width: 160px;
  outline: none;
  transition: border 0.2s;
}
.documents-filters-bar select:focus,
.documents-filters-bar input[type="text"]:focus {
  border: 1.5px solid #1574F6;
}

.view-toggle {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* Search bar expansion and inline clear */
.filters-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 460px;
  max-width: 520px;
}
.filters-search-wrap input[type="text"] {
  width: 100%;
  padding-left: 36px;
  padding-right: 30px;
}
.filters-search-icon {
  position: absolute;
  left: 10px;
  color: #637587;
}
.filters-search-clear {
  position: absolute;
  right: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8a94a6;
  cursor: pointer;
}
.filters-search-clear:hover {
  color: #1a1f36;
  background: #eef1f6;
}
.view-toggle button {
  background: #f5f6fa;
  border: 1px solid #e5e7eb;
  color: #1574F6;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.view-toggle button.active,
.view-toggle button:hover {
  background: #1574F6;
  color: #fff;
}

.documents-main-content {
  background: #fff;
  border-radius: 16px;
  margin: 8px 40px 8px 40px; /* Further reduced margin from 16px to 8px */
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent content overflow */
  width: calc(100% - 80px);
  height: -webkit-fit-content;
  height: fit-content; /* Only take height needed */
  box-sizing: border-box;
}

.documents-table-container {
  overflow-x: auto;
  overflow-y: auto;
  height: calc(100vh - 375px);
  max-height: calc(100vh - 375px);
  min-height: calc(100vh - 375px);
  width: 100%;
  /* Enhanced scrolling properties */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

/* Custom scrollbar for webkit browsers */
.documents-table-container::-webkit-scrollbar {
  width: 8px;
}

.documents-table-container::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.documents-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.documents-table-container::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0; /* match Documents table spacing */
  font-size: 0.9rem; /* Reduced font size from 1rem to 0.9rem */
  min-width: 1200px; /* Ensure table has minimum width for horizontal scrolling */
}
.documents-table th, .documents-table td {
  padding: 8px 10px; /* match Documents */
  text-align: left;
  vertical-align: middle; /* match Documents compact alignment */
}
.documents-table th {
  background: #f8f9fa;
  color: #1a1f36;
  font-weight: 600;
  font-size: 1.05rem;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.documents-table tr {
  margin: 0; /* prevent inter-row gaps */
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s;
}
.documents-table tr:hover {
  background: #f5f6fa;
}
/* General button styling removed to allow specific action button styles to take precedence */

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  height: calc(100vh - 375px); /* Reduced by 25px to match table container */
  max-height: calc(100vh - 375px);
  min-height: calc(100vh - 375px);
  width: 100%;
  box-sizing: border-box;
  /* Enhanced scrolling properties */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

/* Custom scrollbar for grid view */
.documents-grid::-webkit-scrollbar {
  width: 8px;
}

.documents-grid::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.documents-grid::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.documents-grid::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Text truncation and tooltips */
.documents-table td:nth-child(1), /* Task Name */
.documents-table td:nth-child(2), /* Assigned To */
.documents-table td:nth-child(3), /* Priority */
.documents-table td:nth-child(4), /* Status */
.documents-table td:nth-child(5), /* Due Date */
.documents-table td:nth-child(6) { /* Actions */
  max-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  position: relative !important;
}

/* Universal Tooltip for all truncated columns */
.documents-table td[data-truncated="true"]:hover::after {
  content: attr(data-full-text) !important;
  position: fixed !important;
  top: 0px !important;
  top: var(--tooltip-y, 0px) !important;
  left: 0px !important;
  left: var(--tooltip-x, 0px) !important;
  width: 320px !important;
  background: #3b82f6 !important;
  color: white !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: normal !important;
  z-index: 999999 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  pointer-events: none !important;
  opacity: 0.98 !important;
  text-align: left !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
  transform: translateX(-50%) !important; /* Center horizontally */
}

.documents-table td[data-truncated="false"]:hover::after {
  display: none !important;
}

/* Universal arrow for all tooltips */
.documents-table td[data-truncated="true"]:hover::before {
  content: '' !important;
  position: fixed !important;
  top: calc(0px + 50px) !important;
  top: calc(var(--tooltip-y, 0px) + 50px) !important;
  left: 0px !important;
  left: var(--tooltip-x, 0px) !important;
  border: 6px solid transparent !important;
  border-top-color: #3b82f6 !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important; /* Center horizontally */
}

.document-card {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  height: 200px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.document-card:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: none;
}

.document-card.selected {
  background-color: #e8f0fe;
  border-color: #1a73e8;
}

.doc-icon {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #5f6368;
  margin-bottom: 8px;
  padding: 16px;
}

.doc-info {
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.doc-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #202124;
  margin: 0;
  flex: 1 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-status {
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.doc-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.doc-left {
  flex: 1 1;
}

.doc-right {
  flex-shrink: 0;
}

.doc-info > div {
  font-size: 0.75rem;
  color: #5f6368;
  margin-top: 4px;
}

.doc-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  gap: 4px;
  background: white;
  border-radius: 4px;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-card:hover .doc-actions {
  display: flex;
}

.doc-actions button {
  background: transparent;
  border: none;
  color: #5f6368;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-actions button:hover {
  background: #f1f3f4;
  color: #202124;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-pill.active {
  background-color: #e6f4ea;
  color: #137333;
}

.status-pill.expired {
  background-color: #fce8e6;
  color: #c5221f;
}

.status-pill.missing {
  background-color: #fef7e0;
  color: #b06000;
}

/* Priority badge styling */
.priority-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.priority-badge.high {
  background-color: #fce8e6;
  color: #c5221f;
}

.priority-badge.medium {
  background-color: #fef7e0;
  color: #b06000;
}

.priority-badge.low {
  background-color: #e6f4ea;
  color: #137333;
}

.documents-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 0 40px;
  font-size: 1rem;
  color: #637587;
}

@media (max-width: 900px) {
  .documents-header-bar,
  .documents-filters-bar,
  .documents-main-content,
  .documents-footer {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .documents-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
  }
  .documents-filters-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px 8px;
  }
  .documents-main-content {
    padding: 0 0 12px 0;
  }
  .documents-grid {
    padding: 16px 0;
    gap: 12px;
  }
}

/* Loading and Error States */
.loading-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.loading-icon, .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #007bff;
}

.error-icon {
  color: #dc3545;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #333;
}

/* Form Styles */
.upload-form {
  padding: 16px;
  flex: 1 1;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #333;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
}

.form-group textarea {
  resize: vertical;
  min-height: 50px;
  max-height: 60px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.cancel-btn, .upload-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.cancel-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #ddd;
}

.cancel-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.upload-btn {
  background: #007bff;
  color: white;
}

.upload-btn:hover:not(:disabled) {
  background: #0056b3;
}

.upload-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Document Grid Meta */
.doc-meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-meta small {
  color: #666;
  font-size: 11px;
}

/* Document Action Buttons */
.documents-table tbody button,
.doc-actions button {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* All action buttons - simple blue icons */
.documents-table tbody button[title="View Details"],
.documents-table tbody button[title="Edit Task"],
.documents-table tbody button[title="Mark as Complete"],
.documents-table tbody button[title="Delete Task"],
.doc-actions button[title="View Details"],
.doc-actions button[title="Edit Task"],
.doc-actions button[title="Mark as Complete"],
.doc-actions button[title="Delete Task"] {
  background: none;
  color: #1574F6;
}

.documents-table tbody button[title="View Details"]:hover,
.documents-table tbody button[title="Edit Task"]:hover,
.documents-table tbody button[title="Mark as Complete"]:hover,
.documents-table tbody button[title="Delete Task"]:hover,
.doc-actions button[title="View Details"]:hover,
.doc-actions button[title="Edit Task"]:hover,
.doc-actions button[title="Mark as Complete"]:hover,
.doc-actions button[title="Delete Task"]:hover {
  background: none;
  color: #1264D9;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .modal-actions {
    flex-direction: column-reverse;
  }
  
  .cancel-btn, .upload-btn {
    width: 100%;
  }
}

/* Additional task-specific styles */
.upload-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.no-documents-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  color: #637587;
}

.no-doc-icon {
  font-size: 3rem;
  color: #1574F6;
  margin-bottom: 16px;
}

.no-doc-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.no-doc-desc {
  font-size: 1rem;
  margin-bottom: 24px;
  text-align: center;
}

.doc-table-icon {
  margin-right: 8px;
  color: #1574F6;
}

/* Clear filters button */
.clear-filters-btn {
  background: #f5f6fa;
  border: 1px solid #e5e7eb;
  color: #637587;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.clear-filters-btn:hover {
  background: #e5e7eb;
  color: #1a1f36;
}
.documents-container {
  padding: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.documents-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.property-inspections-page {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f6fa;
  min-height: 100vh; /* Allow page to grow with content */
  width: 100%;
  padding-top: 80px; /* Space under header */
  padding-bottom: 24px;
  overflow: visible; /* Let content define height */
  display: flex;
  flex-direction: column;
  position: static; /* Avoid locking to viewport */
}

.documents-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 40px 0 40px; /* Further reduced padding from 20px to 12px */
  background: #f5f6fa;
}

.documents-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.documents-title-icon {
  font-size: 1.8rem; /* Reduced from 2.2rem to 1.8rem to match header */
  color: #1574F6;
  flex-shrink: 0; /* Prevent icon from shrinking */
  line-height: 1; /* Ensure icon aligns with text baseline */
}

.documents-header-bar h1 {
  font-size: 1.8rem; /* Reduced from 2.2rem to 1.8rem */
  font-weight: 700;
  color: #1a1f36;
  margin: 0; /* Remove bottom margin */
  line-height: 1.2; /* Better line height for alignment */
}

.documents-header-bar p {
  color: #637587;
  font-size: 1.1rem;
  margin: 0;
}

/* Property address styling */
.property-address {
  color: #637587;
  font-size: 1.05rem;
  margin: 4px 0 0 0;
  text-align: left;
  margin-left: calc(1.8rem + 12px); /* Icon width + gap to align with 'I' in Inspections */
}

/* Documents meta row styling */
.documents-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  text-align: left;
  margin-left: calc(1.8rem + 12px); /* Icon width + gap to align with 'I' in Inspections */
}

.last-updated {
  color: #637587;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-summary {
  color: #637587;
  font-size: 0.9rem;
}

.expiring-soon {
  color: #f59e0b;
  font-weight: 500;
}

.upload-doc-btn {
  background: #1574F6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,116,246,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.upload-doc-btn:hover {
  background: #1264D9;
  box-shadow: 0 4px 16px rgba(21,116,246,0.12);
}

.documents-filters-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  padding: 24px 40px;
  margin: 24px 40px 0 40px;
  flex-wrap: wrap;
}

.documents-filters-bar select,
.documents-filters-bar input[type="text"] {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  background: #f8f9fa;
  color: #1a1f36;
  min-width: 160px;
  outline: none;
  transition: border 0.2s;
}
.documents-filters-bar select:focus,
.documents-filters-bar input[type="text"]:focus {
  border: 1.5px solid #1574F6;
}

.property-filter-display {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #e3f2fd;
  border: 1px solid #2196f3;
  border-radius: 6px;
  color: #1976d2;
  font-size: 0.9rem;
  font-weight: 500;
}

.property-filter-display svg {
  color: #2196f3;
}

.view-toggle {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* Search bar expansion and inline clear */
.filters-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 460px;
  max-width: 520px;
}
.filters-search-wrap input[type="text"] {
  width: 100%;
  padding-left: 36px;
  padding-right: 30px;
}
.filters-search-icon {
  position: absolute;
  left: 10px;
  color: #637587;
}
.filters-search-clear {
  position: absolute;
  right: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8a94a6;
  cursor: pointer;
}
.filters-search-clear:hover {
  color: #1a1f36;
  background: #eef1f6;
}
.view-toggle button {
  background: #f5f6fa;
  border: 1px solid #e5e7eb;
  color: #1574F6;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.view-toggle button.active,
.view-toggle button:hover {
  background: #1574F6;
  color: #fff;
}

.property-inspections-page .documents-main-content {
  background: #fff;
  border-radius: 16px;
  margin: 8px 40px 8px 40px; /* Further reduced margin from 16px to 8px */
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden !important; /* Prevent content overflow */
  width: calc(100% - 80px) !important; /* Full width minus margins */
  height: auto !important; /* Only take height needed */
  box-sizing: border-box;
}

.property-inspections-page .documents-table-container {
  overflow-x: auto;
  overflow-y: auto;
  width: 100% !important;
  height: calc(100vh - 375px) !important; /* match Documents behavior */
  max-height: calc(100vh - 375px) !important;
  min-height: calc(100vh - 375px) !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
  /* Enhanced scrolling properties */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

/* Custom scrollbar for webkit browsers */
.documents-table-container::-webkit-scrollbar {
  width: 8px;
}

.documents-table-container::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.documents-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.documents-table-container::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.property-inspections-page .documents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem; /* Reduced font size from 1rem to 0.9rem */
  min-width: 1200px; /* Ensure table has minimum width for horizontal scrolling */
  margin-top: 0 !important;
  border-spacing: 0 !important;
}
.property-inspections-page .documents-table th, .property-inspections-page .documents-table td {
  padding: 8px 10px; /* Further reduced padding from 12px to 8px */
  text-align: left;
}
.property-inspections-page .documents-table tbody {
  display: table-row-group;
  vertical-align: top;
}
.property-inspections-page .documents-table tbody tr {
  height: auto !important;
  min-height: 0 !important;
}
.documents-table th {
  background: #f8f9fa;
  color: #1a1f36;
  font-weight: 600;
  font-size: 1.05rem;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.documents-table tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s;
}
.documents-table tr:hover {
  background: #f5f6fa;
}
/* General button styling removed to allow specific action button styles to take precedence */

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  height: auto;
  max-height: none;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  /* Enhanced scrolling properties */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

/* Custom scrollbar for grid view */
.documents-grid::-webkit-scrollbar {
  width: 8px;
}

.documents-grid::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.documents-grid::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.documents-grid::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Text truncation and tooltips */
.documents-table td:nth-child(1), /* Name column */
.documents-table td:nth-child(2), /* Type column */
.documents-table td:nth-child(3), /* Zone column */
.documents-table td:nth-child(4), /* Scheduled Date column */
.documents-table td:nth-child(5), /* Status column */
.documents-table td:nth-child(6), /* Inspector column */
.documents-table td:nth-child(7) { /* Actions column */
  max-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  position: relative !important;
}

/* Universal Tooltip for all truncated columns */
.documents-table td[data-truncated="true"]:hover::after {
  content: attr(data-full-text) !important;
  position: fixed !important;
  top: 0px !important;
  top: var(--tooltip-y, 0px) !important;
  left: 0px !important;
  left: var(--tooltip-x, 0px) !important;
  width: 320px !important;
  background: #3b82f6 !important;
  color: white !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: normal !important;
  z-index: 999999 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  pointer-events: none !important;
  opacity: 0.98 !important;
  text-align: left !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
  transform: translateX(-50%) !important; /* Center horizontally */
}

.documents-table td[data-truncated="false"]:hover::after {
  display: none !important;
}

/* Universal arrow for all tooltips */
.documents-table td[data-truncated="true"]:hover::before {
  content: '' !important;
  position: fixed !important;
  top: calc(0px + 50px) !important;
  top: calc(var(--tooltip-y, 0px) + 50px) !important;
  left: 0px !important;
  left: var(--tooltip-x, 0px) !important;
  border: 6px solid transparent !important;
  border-top-color: #3b82f6 !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important; /* Center horizontally */
}

.document-card {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  height: 200px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.document-card:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: none;
}

.document-card.selected {
  background-color: #e8f0fe;
  border-color: #1a73e8;
}

.doc-icon {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #5f6368;
  margin-bottom: 8px;
  padding: 16px;
}

.doc-info {
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.doc-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #202124;
  margin: 0;
  flex: 1 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-status {
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.doc-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.doc-left {
  flex: 1 1;
}

.doc-right {
  flex-shrink: 0;
}

.doc-info > div {
  font-size: 0.75rem;
  color: #5f6368;
  margin-top: 4px;
}

.doc-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  gap: 4px;
  background: white;
  border-radius: 4px;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-card:hover .doc-actions {
  display: flex;
}

.doc-actions button {
  background: transparent;
  border: none;
  color: #5f6368;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-actions button:hover {
  background: #f1f3f4;
  color: #202124;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-pill.active {
  background-color: #e6f4ea;
  color: #137333;
}

.status-pill.expired {
  background-color: #fce8e6;
  color: #c5221f;
}

.status-pill.missing {
  background-color: #fef7e0;
  color: #b06000;
}

.documents-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 0 40px;
  font-size: 1rem;
  color: #637587;
}

@media (max-width: 900px) {
  .documents-header-bar,
  .documents-filters-bar,
  .documents-main-content,
  .documents-footer {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .documents-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
  }
  .documents-filters-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px 8px;
  }
  .documents-main-content {
    padding: 0 0 12px 0;
  }
  .documents-grid {
    padding: 16px 0;
    gap: 12px;
  }
}

/* Loading and Error States */
.loading-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.loading-icon, .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #007bff;
}

.error-icon {
  color: #dc3545;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #333;
}

/* Form Styles */
.upload-form {
  padding: 16px;
  flex: 1 1;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #333;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
}

.form-group textarea {
  resize: vertical;
  min-height: 50px;
  max-height: 60px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.cancel-btn, .upload-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.cancel-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #ddd;
}

.cancel-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.upload-btn {
  background: #007bff;
  color: white;
}

.upload-btn:hover:not(:disabled) {
  background: #0056b3;
}

.upload-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Document Grid Meta */
.doc-meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-meta small {
  color: #666;
  font-size: 11px;
}

/* Document Action Buttons */
.documents-table tbody button,
.doc-actions button {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* All action buttons - simple blue icons */
.documents-table tbody button[title="View"],
.documents-table tbody button[title="Edit"],
.documents-table tbody button[title="Complete"],
.documents-table tbody button[title="Delete"],
.doc-actions button[title="View"],
.doc-actions button[title="Edit"],
.doc-actions button[title="Complete"],
.doc-actions button[title="Delete"] {
  background: none;
  color: #1574F6;
}

.documents-table tbody button[title="View"]:hover,
.documents-table tbody button[title="Edit"]:hover,
.documents-table tbody button[title="Complete"]:hover,
.documents-table tbody button[title="Delete"]:hover,
.doc-actions button[title="View"]:hover,
.doc-actions button[title="Edit"]:hover,
.doc-actions button[title="Complete"]:hover,
.doc-actions button[title="Delete"]:hover {
  background: none;
  color: #1264D9;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .modal-actions {
    flex-direction: column-reverse;
  }
  
  .cancel-btn, .upload-btn {
    width: 100%;
  }
}

/* Additional inspection-specific styles */
.upload-btn-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.no-documents-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 20px;
  color: #637587;
}

.no-doc-icon {
  font-size: 3rem;
  color: #1574F6;
  margin-bottom: 16px;
}

.no-doc-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.no-doc-desc {
  font-size: 1rem;
  margin-bottom: 24px;
  text-align: center;
}

.doc-table-icon {
  margin-right: 8px;
  color: #1574F6;
}
.documents-container {
  padding: 40px;
  max-width: 1440px;
  margin: 0 auto;
}

.documents-content {
  background: white;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.property-documents-page {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  background: #f5f6fa;
  height: 100vh; /* Fixed height instead of min-height */
  width: 100vw; /* Full viewport width */
  padding-top: 80px; /* Further reduced from 100px to 80px */
  padding-bottom: 0; /* Remove bottom padding */
  overflow: hidden; /* Prevent page scrolling */
  display: flex;
  flex-direction: column;
  position: fixed; /* Ensure no scrolling */
  top: 0;
  left: 0;
}

.documents-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 12px 40px 0 40px; /* Further reduced padding from 20px to 12px */
  background: #f5f6fa;
}

.documents-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.documents-title-icon {
  font-size: 1.8rem; /* Reduced from 2.2rem to 1.8rem to match header */
  color: #1574F6;
  flex-shrink: 0; /* Prevent icon from shrinking */
  line-height: 1; /* Ensure icon aligns with text baseline */
}

.documents-header-bar h1 {
  font-size: 1.8rem; /* Reduced from 2.2rem to 1.8rem */
  font-weight: 700;
  color: #1a1f36;
  margin: 0; /* Remove bottom margin */
  line-height: 1.2; /* Better line height for alignment */
}

.documents-header-bar p {
  color: #637587;
  font-size: 1.1rem;
  margin: 0;
}

/* Property address styling */
.property-address {
  color: #637587;
  font-size: 1.05rem;
  margin: 4px 0 0 0;
  text-align: left;
  margin-left: calc(1.8rem + 12px); /* Icon width + gap to align with 'D' in Documents */
}

/* Documents meta row styling */
.documents-meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 8px;
  text-align: left;
  margin-left: calc(1.8rem + 12px); /* Icon width + gap to align with 'D' in Documents */
}

.last-updated {
  color: #637587;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-summary {
  color: #637587;
  font-size: 0.9rem;
}

.expiring-soon {
  color: #f59e0b;
  font-weight: 500;
}

.upload-doc-btn {
  background: #1574F6;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(21,116,246,0.08);
  transition: background 0.2s, box-shadow 0.2s;
}
.upload-doc-btn:hover {
  background: #1264D9;
  box-shadow: 0 4px 16px rgba(21,116,246,0.12);
}

.documents-filters-bar {
  display: flex;
  gap: 16px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  padding: 24px 40px;
  margin: 24px 40px 0 40px;
  flex-wrap: wrap;
}

.documents-filters-bar select,
.documents-filters-bar input[type="text"] {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 1rem;
  background: #f8f9fa;
  color: #1a1f36;
  min-width: 160px;
  outline: none;
  transition: border 0.2s;
}
.documents-filters-bar select:focus,
.documents-filters-bar input[type="text"]:focus {
  border: 1.5px solid #1574F6;
}

.view-toggle {
  margin-left: auto;
  display: flex;
  gap: 8px;
}

/* Search bar expansion and inline clear */
.filters-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 460px;
  max-width: 520px;
}
.filters-search-wrap input[type="text"] {
  width: 100%;
  padding-left: 36px;
  padding-right: 30px;
}
.filters-search-icon {
  position: absolute;
  left: 10px;
  color: #637587;
}
.filters-search-clear {
  position: absolute;
  right: 6px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #8a94a6;
  cursor: pointer;
}
.filters-search-clear:hover {
  color: #1a1f36;
  background: #eef1f6;
}
.view-toggle button {
  background: #f5f6fa;
  border: 1px solid #e5e7eb;
  color: #1574F6;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.view-toggle button.active,
.view-toggle button:hover {
  background: #1574F6;
  color: #fff;
}

.documents-main-content {
  background: #fff;
  border-radius: 16px;
  margin: 8px 40px 8px 40px; /* Further reduced margin from 16px to 8px */
  box-shadow: 0 2px 8px rgba(21,116,246,0.06);
  padding: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden; /* Prevent content overflow */
  width: calc(100% - 80px); /* Full width minus margins */
  height: -webkit-fit-content;
  height: fit-content; /* Only take height needed */
  box-sizing: border-box;
}

.documents-table-container {
  overflow-x: auto;
  overflow-y: auto;
  height: calc(100vh - 375px); /* Reduced by 25px to fit on one screen */
  max-height: calc(100vh - 375px);
  min-height: calc(100vh - 375px);
  width: 100%;
  /* Enhanced scrolling properties */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

/* Custom scrollbar for webkit browsers */
.documents-table-container::-webkit-scrollbar {
  width: 8px;
}

.documents-table-container::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.documents-table-container::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.documents-table-container::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

.documents-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem; /* Reduced font size from 1rem to 0.9rem */
  min-width: 1200px; /* Ensure table has minimum width for horizontal scrolling */
}
.documents-table th, .documents-table td {
  padding: 8px 10px; /* Further reduced padding from 12px to 8px */
  text-align: left;
}
.documents-table th {
  background: #f8f9fa;
  color: #1a1f36;
  font-weight: 600;
  font-size: 1.05rem;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 10;
}
.documents-table tr {
  border-bottom: 1px solid #e5e7eb;
  transition: background 0.15s;
}
.documents-table tr:hover {
  background: #f5f6fa;
}
/* General button styling removed to allow specific action button styles to take precedence */

.documents-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 12px;
  gap: 12px;
  padding: 16px;
  overflow-y: auto;
  height: calc(100vh - 375px); /* Reduced by 25px to match table container */
  max-height: calc(100vh - 375px);
  min-height: calc(100vh - 375px);
  width: 100%;
  box-sizing: border-box;
  /* Enhanced scrolling properties */
  scrollbar-width: thin;
  scrollbar-color: #cbd5e0 #f7fafc;
}

/* Custom scrollbar for grid view */
.documents-grid::-webkit-scrollbar {
  width: 8px;
}

.documents-grid::-webkit-scrollbar-track {
  background: #f7fafc;
  border-radius: 4px;
}

.documents-grid::-webkit-scrollbar-thumb {
  background: #cbd5e0;
  border-radius: 4px;
}

.documents-grid::-webkit-scrollbar-thumb:hover {
  background: #a0aec0;
}

/* Text truncation and tooltips */
.documents-table td:nth-child(1), /* Name column */
.documents-table td:nth-child(2), /* Summary column */
.documents-table td:nth-child(3), /* Zone column */
.documents-table td:nth-child(4), /* Type column */
.documents-table td:nth-child(5), /* Status column */
.documents-table td:nth-child(6), /* Uploaded By column */
.documents-table td:nth-child(7), /* Upload Date column */
.documents-table td:nth-child(8) { /* Expiry Date column */
  max-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  position: relative !important;
}

/* Universal Tooltip for all truncated columns */
.documents-table td[data-truncated="true"]:hover::after {
  content: attr(data-full-text) !important;
  position: fixed !important;
  top: 0px !important;
  top: var(--tooltip-y, 0px) !important;
  left: 0px !important;
  left: var(--tooltip-x, 0px) !important;
  width: 320px !important;
  background: #3b82f6 !important;
  color: white !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  white-space: normal !important;
  z-index: 999999 !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3) !important;
  pointer-events: none !important;
  opacity: 0.98 !important;
  text-align: left !important;
  line-height: 1.4 !important;
  word-wrap: break-word !important;
  transform: translateX(-50%) !important; /* Center horizontally */
}

.documents-table td[data-truncated="false"]:hover::after {
  display: none !important;
}

/* Universal arrow for all tooltips */
.documents-table td[data-truncated="true"]:hover::before {
  content: '' !important;
  position: fixed !important;
  top: calc(0px + 50px) !important;
  top: calc(var(--tooltip-y, 0px) + 50px) !important;
  left: 0px !important;
  left: var(--tooltip-x, 0px) !important;
  border: 6px solid transparent !important;
  border-top-color: #3b82f6 !important;
  z-index: 1000000 !important;
  pointer-events: none !important;
  transform: translateX(-50%) !important; /* Center horizontally */
}

.document-card {
  position: relative;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background-color 0.2s;
  height: 200px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.document-card:hover {
  background-color: #f8f9fa;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transform: none;
}

.document-card.selected {
  background-color: #e8f0fe;
  border-color: #1a73e8;
}

.doc-icon {
  flex: 1 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #5f6368;
  margin-bottom: 8px;
  padding: 16px;
}

.doc-info {
  padding: 8px 0;
  border-top: 1px solid #e0e0e0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.doc-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #202124;
  margin: 0;
  flex: 1 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.doc-status {
  font-size: 0.75rem;
  font-weight: 500;
  flex-shrink: 0;
}

.doc-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.doc-left {
  flex: 1 1;
}

.doc-right {
  flex-shrink: 0;
}

.doc-info > div {
  font-size: 0.75rem;
  color: #5f6368;
  margin-top: 4px;
}

.doc-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: none;
  gap: 4px;
  background: white;
  border-radius: 4px;
  padding: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.document-card:hover .doc-actions {
  display: flex;
}

.doc-actions button {
  background: transparent;
  border: none;
  color: #5f6368;
  padding: 6px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doc-actions button:hover {
  background: #f1f3f4;
  color: #202124;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-pill.active {
  background-color: #e6f4ea;
  color: #137333;
}

.status-pill.expired {
  background-color: #fce8e6;
  color: #c5221f;
}

.status-pill.missing {
  background-color: #fef7e0;
  color: #b06000;
}

.documents-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px 0 40px;
  font-size: 1rem;
  color: #637587;
}

@media (max-width: 900px) {
  .documents-header-bar,
  .documents-filters-bar,
  .documents-main-content,
  .documents-footer {
    margin-left: 8px;
    margin-right: 8px;
    padding-left: 8px;
    padding-right: 8px;
  }
  .documents-header-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
  }
  .documents-filters-bar {
    flex-direction: column;
    gap: 12px;
    padding: 16px 8px;
  }
  .documents-main-content {
    padding: 0 0 12px 0;
  }
  .documents-grid {
    padding: 16px 0;
    gap: 12px;
  }
}

/* Loading and Error States */
.loading-state, .error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #666;
}

.loading-icon, .error-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #007bff;
}

.error-icon {
  color: #dc3545;
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  font-size: 1.25rem;
  color: #333;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  color: #666;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.close-btn:hover {
  background: #f8f9fa;
  color: #333;
}

/* Form Styles */
.upload-form {
  padding: 16px;
  flex: 1 1;
  overflow-y: auto;
}

.form-group {
  margin-bottom: 10px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 10px;
  gap: 10px;
  margin-bottom: 8px;
}

.form-group label {
  display: block;
  margin-bottom: 4px;
  font-weight: 500;
  color: #333;
  font-size: 13px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 13px;
  transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-group small {
  display: block;
  margin-top: 4px;
  color: #666;
  font-size: 12px;
}

.form-group textarea {
  resize: vertical;
  min-height: 50px;
  max-height: 60px;
}

/* Modal Actions */
.modal-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e9ecef;
}

.cancel-btn, .upload-btn {
  padding: 8px 16px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.cancel-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #ddd;
}

.cancel-btn:hover {
  background: #e9ecef;
  color: #495057;
}

.upload-btn {
  background: #007bff;
  color: white;
}

.upload-btn:hover:not(:disabled) {
  background: #0056b3;
}

.upload-btn:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

/* Document Grid Meta */
.doc-meta {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.doc-meta small {
  color: #666;
  font-size: 11px;
}

/* Document Action Buttons */
.documents-table tbody button,
.doc-actions button {
  margin: 0 4px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 16px;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* All action buttons - simple blue icons */
.documents-table tbody button[title="View"],
.documents-table tbody button[title="Download"],
.documents-table tbody button[title="Edit"],
.documents-table tbody button[title="Delete"],
.doc-actions button[title="View"],
.doc-actions button[title="Download"],
.doc-actions button[title="Edit"],
.doc-actions button[title="Delete"] {
  background: none;
  color: #1574F6;
}

.documents-table tbody button[title="View"]:hover,
.documents-table tbody button[title="Download"]:hover,
.documents-table tbody button[title="Edit"]:hover,
.documents-table tbody button[title="Delete"]:hover,
.doc-actions button[title="View"]:hover,
.doc-actions button[title="Download"]:hover,
.doc-actions button[title="Edit"]:hover,
.doc-actions button[title="Delete"]:hover {
  background: none;
  color: #1264D9;
}

/* Responsive Modal */
@media (max-width: 768px) {
  .modal-overlay {
    padding: 10px;
  }
  
  .modal-content {
    max-height: 95vh;
  }
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .modal-actions {
    flex-direction: column-reverse;
  }
  
  .cancel-btn, .upload-btn {
    width: 100%;
  }
}

.settings-sidebar {
  background: white;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-nav-item {
  display: flex;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  color: #637587;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.settings-nav-item:hover {
  background: #f5f6fa;
  color: #1a80e5;
}

.settings-nav-item.active {
  background: #1a80e5;
  color: white;
}

.settings-nav-icon {
  margin-right: 12px;
  font-size: 18px;
}

.sidebar-back-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  color: var(--color-text-primary);
  font-size: 1em;
  font-weight: 500;
  padding: 8px 0 16px 0;
  margin-bottom: 8px;
  cursor: pointer;
  transition: color 0.2s;
  width: 100%;
  padding-left: 16px;
}

.sidebar-back-btn:hover {
  color: var(--color-primary);
} 
.settings-dashboard {
  padding: 16px;
}

.settings-dashboard h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 24px;
}

.settings-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 24px;
  gap: 24px;
}

.settings-card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 24px;
  transition: all 0.2s ease;
}

.settings-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.settings-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.settings-card-icon {
  font-size: 24px;
  margin-right: 12px;
}

.settings-card h2 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1f36;
  margin: 0;
}

.settings-card p {
  color: #637587;
  margin-bottom: 20px;
  line-height: 1.5;
}

.settings-card-link {
  display: inline-block;
  padding: 8px 16px;
  background: #1a80e5;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.settings-card-link:hover {
  background: #1565c0;
} 
.company-info {
  padding: 16px;
}

.company-info h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 24px;
}

.company-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1a1f36;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 14px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.save-button {
  padding: 10px 20px;
  background: #1a80e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.save-button:hover {
  background: #1565c0;
} 
.app-settings {
  padding: 16px;
}

.app-settings h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 24px;
}

.settings-form {
  max-width: 600px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1a1f36;
}

.form-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
}

.checkbox-group {
  margin-top: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

.help-text {
  margin-top: 4px;
  margin-left: 24px;
  font-size: 14px;
  color: #637587;
}

.save-button {
  padding: 10px 20px;
  background: #1a80e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.save-button:hover {
  background: #1565c0;
} 
.notification-settings {
  padding: 16px;
}

.notification-settings h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 24px;
}

.notification-settings h2 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1f36;
  margin-bottom: 16px;
}

.settings-form {
  max-width: 600px;
}

.notification-section {
  margin-bottom: 32px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.notification-options {
  margin-top: 16px;
  margin-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.checkbox-group {
  margin-bottom: 16px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
  color: #1a1f36;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

.save-button {
  padding: 10px 20px;
  background: #1a80e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
  margin-top: 16px;
}

.save-button:hover {
  background: #1565c0;
} 
.security-settings {
  padding: 16px;
}

.security-settings h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 24px;
}

.settings-form {
  max-width: 600px;
}

.settings-card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1a1f36;
}

.form-group select,
.form-group input {
  width: 100%;
  padding: 10px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
}

.checkbox-group {
  margin-top: 24px;
}

.checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
  width: auto;
}

.help-text {
  margin-top: 4px;
  font-size: 14px;
  color: #637587;
}

.save-button {
  padding: 10px 20px;
  background: #1a80e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
  margin-top: 16px;
}

.save-button:hover {
  background: #1565c0;
} 
.branding-settings {
  padding: 16px;
}

.branding-settings h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 24px;
}

.settings-form {
  max-width: 600px;
}

.settings-card {
  background: white;
  border: 1px solid #e1e4e8;
  border-radius: 8px;
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1a1f36;
}

.file-input-wrapper {
  position: relative;
}

.file-input-wrapper input[type="file"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 14px;
  background-color: white;
}

.color-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.color-input-wrapper input[type="color"] {
  width: 50px;
  height: 40px;
  padding: 2px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  cursor: pointer;
}

.color-text-input {
  flex: 1 1;
  padding: 10px;
  border: 1px solid #e1e4e8;
  border-radius: 6px;
  font-size: 14px;
  font-family: monospace;
  text-transform: uppercase;
}

.help-text {
  margin-top: 4px;
  font-size: 14px;
  color: #637587;
}

.save-button {
  padding: 10px 20px;
  background: #1a80e5;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background-color 0.2s ease;
  margin-top: 16px;
}

.save-button:hover {
  background: #1565c0;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .branding-settings {
    padding: 12px;
  }

  .settings-card {
    padding: 16px;
  }

  .color-input-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .color-input-wrapper input[type="color"] {
    width: 100%;
  }
} 
.settings-layout {
  min-height: 100vh;
  background: #f5f6fa;
}

.settings-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  padding: 24px;
  grid-gap: 24px;
  gap: 24px;
}

.settings-container h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1a1f36;
  margin-bottom: 24px;
}

.settings-content {
  background: white;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.settings-section {
  margin-bottom: 32px;
}

.settings-section h2 {
  font-size: 18px;
  font-weight: 500;
  color: #1a1f36;
  margin-bottom: 16px;
} 
.forgot-password-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 0 20px;
}

.forgot-password-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
  text-align: left;
}

.forgot-password-subtitle {
  font-size: 16px;
  margin-bottom: 30px;
  color: #637587;
  text-align: left;
}

.back-to-login {
  margin-right: 10px;
  color: var(--text-color);
  font-size: 14px;
}

.login-link-btn {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
}

.reset-button {
  background-color: var(--primary-color);
  color: white;
  border: none;
  border-radius: 15px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-top: 20px;
}

.reset-button:hover {
  background-color: #1565c0;
}

.reset-button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
}

.success-message {
  text-align: center;
  padding: 20px 0;
}

.success-message p {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-color);
  margin-bottom: 16px;
}

.success-details {
  font-size: 16px !important;
  font-weight: normal !important;
  color: #637587;
  margin-bottom: 24px;
}

.back-to-login-btn {
  display: inline-block;
  background-color: var(--primary-color);
  color: white;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 15px;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.back-to-login-btn:hover {
  background-color: #1565c0;
}

@media (max-width: 768px) {
  .depth-frame {
    padding: 24px;
    width: 100%;
    max-width: 400px;
  }

  .forgot-password-title {
    font-size: 24px;
  }
} 
.reset-password-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
  padding: 0 20px;
}

.reset-password-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text-color);
  text-align: left;
}

.reset-password-subtitle {
  font-size: 16px;
  margin-bottom: 30px;
  color: #637587;
  text-align: left;
}

.password-requirements {
  margin: 20px 0;
  padding: 16px;
  background-color: var(--input-background);
  border-radius: 8px;
}

.password-requirements p {
  margin: 0 0 8px 0;
  font-weight: 500;
  color: var(--text-color);
}

.password-requirements ul {
  margin: 0;
  padding-left: 20px;
  color: #637587;
}

.password-requirements li {
  margin: 4px 0;
  font-size: 14px;
}

.input-group {
  margin-bottom: 20px;
}

.input-with-icon {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #637587;
  cursor: pointer;
  padding: 4px;
}

.toggle-password:hover {
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .depth-frame {
    padding: 24px;
    width: 100%;
    max-width: 400px;
  }

  .reset-password-title {
    font-size: 24px;
  }
} 
.edit-property-container {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.edit-property-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.edit-property-header h1 {
  font-size: 24px;
  font-weight: 600;
  color: #333;
  margin: 0;
}

.back-button {
  padding: 8px 16px;
  background: #f5f5f5;
  border: none;
  border-radius: 8px;
  color: #333;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: #e5e5e5;
}

.edit-property-form {
  background: white;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 24px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: #1A80E5;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  margin-top: 32px;
}

.cancel-button,
.save-button {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cancel-button {
  background: #f5f5f5;
  border: none;
  color: #666;
}

.cancel-button:hover {
  background: #e5e5e5;
}

.save-button {
  background: #1A80E5;
  border: none;
  color: white;
}

.save-button:hover {
  background: #1666b8;
}

.save-button:disabled {
  background: #ccc;
  cursor: not-allowed;
}

.loading {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-size: 18px;
  color: #666;
}

.error {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  font-size: 18px;
  color: #ff3b30;
}

@media (max-width: 768px) {
  .edit-property-container {
    margin: 20px auto;
  }

  .edit-property-form {
    padding: 20px;
  }

  .form-actions {
    flex-direction: column;
  }

  .cancel-button,
  .save-button {
    width: 100%;
  }
} 
/* Contractor Dashboard Styles */
.contractor-dashboard {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Header */
.contractor-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.contractor-header .logo {
  height: 40px;
}

.contractor-header .header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.contractor-header .nav-links {
  display: flex;
  gap: 1.5rem;
}

.contractor-header .nav-link {
  color: #ecf0f1;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.contractor-header .nav-link:hover,
.contractor-header .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.contractor-header .header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contractor-header .icon {
  color: #ecf0f1;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.contractor-header .icon:hover {
  color: #ffffff;
  background: rgba(52, 152, 219, 0.8);
  transform: scale(1.05);
}

.contractor-header .user-avatar-container {
  position: relative;
  cursor: pointer;
  color: #ecf0f1;
  padding: 0.5rem;
  font-size: 1.5rem;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.contractor-header .user-avatar-container:hover {
  color: #ffffff;
  background: rgba(52, 152, 219, 0.8);
  transform: scale(1.05);
}

.contractor-header .user-avatar-container .icon {
  font-size: 1.5rem;
}

.contractor-header .user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  z-index: 1000;
  margin-top: 8px;
}

.contractor-header .user-menu a,
.contractor-header .user-menu button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #2c3e50;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.contractor-header .user-menu a:hover,
.contractor-header .user-menu button:hover {
  background-color: #3498db;
  color: white;
}

/* Layout */
.contractor-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

/* Sidebar */
.contractor-sidebar {
  width: 280px;
  background: #2c3e50;
  color: white;
  padding: 1.5rem 0;
  position: fixed;
  height: calc(100vh - 80px);
  overflow-y: auto;
  top: 80px;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  color: #bdc3c7;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1rem 1.5rem;
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-nav .nav-item {
  background: none;
  border: none;
  color: #ecf0f1;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #3498db;
}

.sidebar-nav .nav-item.active {
  background: #3498db;
  color: white;
  border-right: 3px solid #2980b9;
}

.sidebar-nav .nav-item svg {
  font-size: 1.1rem;
  flex-shrink: 0;
  min-width: 1.1rem;
}

.sidebar-nav .nav-item span {
  flex: 1 1;
  text-align: left;
}

/* Main Content */
.contractor-content {
  flex: 1 1;
  margin-left: 280px;
  padding: 2rem;
  background: #f8f9fa;
}

.dashboard-header {
  margin-bottom: 2rem;
}

.dashboard-header h1 {
  color: #2c3e50;
  font-size: 2.5rem;
  margin: 0;
  font-weight: 600;
}

.dashboard-subtitle {
  color: #7f8c8d;
  font-size: 1.1rem;
  margin: 0.5rem 0 0 0;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
}

.stat-card.pending .stat-icon {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card.completed .stat-icon {
  background: linear-gradient(135deg, #27ae60, #2ecc71);
}

.stat-card.overdue .stat-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.stat-card.reports .stat-icon {
  background: linear-gradient(135deg, #3498db, #2980b9);
}

.stat-content h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: #2c3e50;
  margin: 0;
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 2rem;
  gap: 2rem;
  margin-bottom: 2rem;
}

.dashboard-section {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ecf0f1;
}

.section-header h2 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin: 0;
  font-weight: 600;
}

.view-all-link {
  color: #3498db;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.view-all-link:hover {
  text-decoration: underline;
}

/* Task Cards */
.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.task-card {
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.3s;
}

.task-card:hover {
  border-color: #3498db;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.task-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  flex: 1 1;
}

.priority-badge {
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-property {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.task-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.due-date {
  color: #7f8c8d;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status.pending {
  background-color: #fff3cd;
  color: #856404;
}

.status.in-progress {
  background-color: #cce5ff;
  color: #004085;
}

.status.completed {
  background-color: #d4edda;
  color: #155724;
}

/* Inspection Cards */
.inspections-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inspection-card {
  border: 1px solid #ecf0f1;
  border-radius: 8px;
  padding: 1rem;
  transition: border-color 0.3s;
}

.inspection-card:hover {
  border-color: #27ae60;
}

.inspection-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.inspection-header h4 {
  margin: 0;
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  flex: 1 1;
}

.inspection-property,
.inspection-date,
.inspection-findings {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0.5rem 0;
}

.inspection-findings {
  color: #2c3e50;
  font-style: italic;
}

/* Quick Actions */
.quick-actions {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.quick-actions h2 {
  color: #2c3e50;
  font-size: 1.3rem;
  margin: 0 0 1.5rem 0;
  font-weight: 600;
}

.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.action-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  text-decoration: none;
  border-radius: 12px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-align: center;
}

.action-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(52, 152, 219, 0.3);
  color: white;
  text-decoration: none;
}

.action-card svg {
  font-size: 2rem;
}

.action-card span {
  font-weight: 600;
  font-size: 1rem;
}

/* Comprehensive Dashboard Section Styles */

/* Section Headers */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #ecf0f1;
}

.section-header h2 {
  color: #2c3e50;
  font-size: 1.5rem;
  margin: 0;
  font-weight: 600;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.btn-primary, .btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: #3498db;
  color: white;
}

.btn-primary:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: #ecf0f1;
  color: #2c3e50;
}

.btn-secondary:hover {
  background: #d5dbdb;
}

/* Overview Section */
.overview-section .stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 2rem;
}

.stat-card.clients .stat-icon {
  background: linear-gradient(135deg, #9b59b6, #8e44ad);
}

.stat-card.properties .stat-icon {
  background: linear-gradient(135deg, #16a085, #1abc9c);
}

.stat-card.financial .stat-icon {
  background: linear-gradient(135deg, #f39c12, #e67e22);
}

.stat-card.certification .stat-icon {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.overview-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-header h3 {
  margin: 0;
  color: #2c3e50;
  font-size: 1.1rem;
}

.card-header button {
  background: none;
  border: none;
  color: #3498db;
  cursor: pointer;
  font-size: 0.9rem;
}

.task-preview, .message-preview, .inspection-preview {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.task-preview:last-child,
.message-preview:last-child,
.inspection-preview:last-child {
  border-bottom: none;
}

.priority.high { color: #e74c3c; }
.priority.medium { color: #f39c12; }
.priority.low { color: #27ae60; }

.message-preview.unread {
  font-weight: 600;
}

.next-date {
  color: #3498db;
  font-weight: 500;
}

/* Clients Section */
.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.client-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.client-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.client-info h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.priority-indicator {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.priority-indicator.high {
  background: #ffebee;
  color: #c62828;
}

.priority-indicator.medium {
  background: #fff3e0;
  color: #ef6c00;
}

.contact-info {
  margin: 1rem 0;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  color: #7f8c8d;
}

.contact-item .icon {
  color: #3498db;
  width: 16px;
}

.client-stats {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #ecf0f1;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.stat-item .label {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.stat-item .value {
  color: #2c3e50;
  font-weight: 500;
}

.client-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.action-btn {
  flex: 1 1;
  padding: 0.5rem 0.75rem;
  background: #ecf0f1;
  color: #2c3e50;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background-color 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.action-btn:hover {
  background: #d5dbdb;
}

/* Properties Section */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.property-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.property-info h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.property-type {
  color: #7f8c8d;
  font-size: 0.9rem;
  background: #ecf0f1;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.property-details {
  margin: 1rem 0;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.75rem 0;
  color: #7f8c8d;
}

.detail-item .icon {
  color: #3498db;
  width: 16px;
}

.property-schedule {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #ecf0f1;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.schedule-item .label {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.schedule-item .value {
  color: #2c3e50;
  font-weight: 500;
}

.schedule-item .next-due {
  color: #3498db;
  font-weight: 600;
}

.property-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Tasks Section */
.work-order-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.work-order-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.order-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.order-info h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 1.2rem;
}

.property-name {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.order-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.order-description {
  margin: 1rem 0;
  color: #7f8c8d;
  line-height: 1.5;
}

.order-progress {
  margin: 1rem 0;
  padding: 1rem 0;
  border-top: 1px solid #ecf0f1;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: #ecf0f1;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(135deg, #3498db, #2980b9);
  transition: width 0.3s;
}

.order-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Inspections Section */
.inspections-calendar {
  margin-bottom: 2rem;
}

.inspections-calendar h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
  margin-bottom: 2rem;
}

.calendar-item {
  background: white;
  border-radius: 12px;
  padding: 1rem;
  display: flex;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.calendar-date {
  background: #3498db;
  color: white;
  border-radius: 8px;
  padding: 0.75rem;
  text-align: center;
  min-width: 60px;
}

.calendar-date .month {
  font-size: 0.8rem;
  font-weight: 600;
  display: block;
}

.calendar-date .day {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-top: 0.25rem;
}

.calendar-info h4 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.calendar-info p {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.calendar-info .time {
  color: #3498db;
  font-weight: 500;
  font-size: 0.9rem;
}

.inspection-history h3 {
  color: #2c3e50;
  margin-bottom: 1rem;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.history-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.inspection-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.inspection-summary h4 {
  margin: 0;
  color: #2c3e50;
}

.inspection-summary .property {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.inspection-summary .date {
  color: #3498db;
  font-size: 0.9rem;
  font-weight: 500;
}

.inspection-result {
  margin: 1rem 0;
}

.inspection-result p {
  margin: 0.5rem 0 0 0;
  color: #7f8c8d;
  line-height: 1.5;
}

.inspection-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Certificates Section */
.certificates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.certificate-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.certificate-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.cert-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.cert-type {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cert-icon {
  color: #3498db;
  font-size: 1.2rem;
}

.type-label {
  background: #ecf0f1;
  color: #2c3e50;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

.cert-status {
  font-weight: 600;
  font-size: 0.9rem;
}

.cert-details h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.issuer {
  color: #7f8c8d;
  font-size: 0.9rem;
  margin: 0 0 1rem 0;
}

.cert-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.date-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.date-item .label {
  color: #7f8c8d;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.date-item .value {
  color: #2c3e50;
  font-weight: 500;
}

.date-item .value.warning {
  color: #f39c12;
  font-weight: 600;
}

.cert-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.action-btn.renew {
  background: #f39c12;
  color: white;
}

.action-btn.renew:hover {
  background: #e67e22;
}

/* Equipment Section */
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.equipment-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.equipment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.equipment-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.equipment-info h3 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.equipment-type {
  color: #7f8c8d;
  font-size: 0.9rem;
  background: #ecf0f1;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
}

.condition {
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
}

.condition.excellent {
  background: #d4edda;
  color: #155724;
}

.condition.good {
  background: #cce5ff;
  color: #004085;
}

.condition.fair {
  background: #fff3cd;
  color: #856404;
}

.condition.poor {
  background: #f8d7da;
  color: #721c24;
}

.equipment-details {
  margin: 1rem 0;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  margin: 0.5rem 0;
}

.detail-row .label {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.detail-row .value {
  color: #2c3e50;
  font-weight: 500;
}

.equipment-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Communications Section */
.messages-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.message-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  border-left: 4px solid #ecf0f1;
}

.message-card.unread {
  border-left-color: #3498db;
  background: #f8feff;
}

.message-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.sender-info h4 {
  margin: 0 0 0.25rem 0;
  color: #2c3e50;
}

.sender-info .company {
  color: #7f8c8d;
  font-size: 0.9rem;
}

.message-meta {
  text-align: right;
}

.message-meta .priority {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.message-meta .timestamp {
  color: #7f8c8d;
  font-size: 0.85rem;
}

.message-content h5 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
}

.message-content p {
  margin: 0;
  color: #7f8c8d;
  line-height: 1.5;
}

.message-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Financial Section */
.financial-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.financial-stats .stat-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.stat-change {
  font-size: 0.85rem;
  margin-top: 0.5rem;
  display: block;
}

.stat-change.positive {
  color: #27ae60;
}

.financial-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
}

.breakdown-card {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.breakdown-card h3 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
}

.earning-item, .invoice-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #ecf0f1;
}

.earning-item:last-child,
.invoice-item:last-child {
  border-bottom: none;
}

.client-name, .invoice-number {
  font-weight: 500;
  color: #2c3e50;
}

.amount {
  font-weight: 600;
  color: #27ae60;
}

.status.paid {
  background: #d4edda;
  color: #155724;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status.pending {
  background: #fff3cd;
  color: #856404;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Status Colors */
.status.active {
  background: #d4edda;
  color: #155724;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status.inactive {
  background: #f8d7da;
  color: #721c24;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status.scheduled {
  background: #cce5ff;
  color: #004085;
  padding: 0.25rem 0.75rem;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Responsive Design Updates */
@media (max-width: 1200px) {
  .contractor-sidebar {
    width: 240px;
  }
  
  .contractor-content {
    margin-left: 240px;
  }
  
  .clients-grid,
  .properties-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) {
  .contractor-sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s;
  }
  
  .contractor-sidebar.open {
    transform: translateX(0);
  }
  
  .contractor-content {
    margin-left: 0;
  }
  
  .overview-grid,
  .financial-breakdown {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contractor-content {
    padding: 1rem;
  }
  
  .header-actions {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .client-actions,
  .property-actions,
  .order-actions,
  .inspection-actions,
  .cert-actions,
  .equipment-actions,
  .message-actions {
    flex-direction: column;
  }
  
  .calendar-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .task-header,
  .inspection-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .task-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
} 

/* Task Controls */
.task-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  gap: 2rem;
}

.filter-controls,
.sort-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-controls label,
.sort-controls label {
  font-weight: 600;
  color: #2c3e50;
  font-size: 0.9rem;
}

.filter-controls select,
.sort-controls select {
  padding: 0.5rem 1rem;
  border: 2px solid #e0e6ed;
  border-radius: 8px;
  background: white;
  font-size: 0.9rem;
  color: #2c3e50;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-controls select:hover,
.sort-controls select:hover {
  border-color: #3498db;
}

.filter-controls select:focus,
.sort-controls select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Task Cards */
.task-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.task-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-color: #3498db;
}

.task-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.task-info h3 {
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

.task-meta {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.property-name,
.client-name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #7f8c8d;
  font-size: 0.9rem;
  font-weight: 500;
}

.property-name .icon,
.client-name .icon {
  color: #3498db;
}

.task-status-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.task-status-info .priority {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.task-status-info .status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  background: rgba(52, 152, 219, 0.1);
  color: #3498db;
}

.task-description {
  margin-bottom: 1.5rem;
}

.task-description p {
  color: #5d6d7e;
  line-height: 1.6;
  margin: 0;
}

.task-details {
  margin-bottom: 1.5rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1rem;
  gap: 1rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #5d6d7e;
  font-size: 0.9rem;
}

.detail-item .icon {
  color: #3498db;
  font-size: 1rem;
}

/* Task Progress */
.task-progress {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.progress-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #2c3e50;
}

.progress-bar {
  height: 8px;
  background: #e9ecef;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db 0%, #2ecc71 100%);
  border-radius: 4px;
  transition: width 0.5s ease;
}

/* Task Actions */
.task-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border: none;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  background: #f8f9fa;
  color: #5d6d7e;
  border: 2px solid #e9ecef;
}

.action-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.action-btn.start {
  background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
  color: white;
  border-color: #27ae60;
}

.action-btn.start:hover {
  background: linear-gradient(135deg, #229954 0%, #27ae60 100%);
  box-shadow: 0 4px 15px rgba(39, 174, 96, 0.3);
}

.action-btn.complete {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  border-color: #3498db;
}

.action-btn.complete:hover {
  background: linear-gradient(135deg, #2980b9 0%, #2471a3 100%);
  box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
}

.action-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

/* Status Colors */
.status.completed {
  background: rgba(39, 174, 96, 0.1) !important;
  color: #27ae60 !important;
}

.status.in-progress {
  background: rgba(52, 152, 219, 0.1) !important;
  color: #3498db !important;
}

.status.pending {
  background: rgba(243, 156, 18, 0.1) !important;
  color: #f39c12 !important;
}

.status.overdue {
  background: rgba(231, 76, 60, 0.1) !important;
  color: #e74c3c !important;
}

/* Priority Colors */
.priority.high {
  background: rgba(231, 76, 60, 0.1) !important;
  color: #e74c3c !important;
}

.priority.medium {
  background: rgba(243, 156, 18, 0.1) !important;
  color: #f39c12 !important;
}

.priority.low {
  background: rgba(39, 174, 96, 0.1) !important;
  color: #27ae60 !important;
}

/* Responsive Design for Tasks */
@media (max-width: 768px) {
  .task-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .filter-controls,
  .sort-controls {
    justify-content: space-between;
  }

  .task-header {
    flex-direction: column;
    gap: 1rem;
  }

  .task-status-info {
    align-items: flex-start;
    flex-direction: row;
    gap: 1rem;
  }

  .detail-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .task-actions {
    justify-content: center;
  }

  .action-btn {
    flex: 1 1;
    justify-content: center;
    min-width: auto;
  }
}

@media (max-width: 480px) {
  .task-card {
    padding: 1rem;
  }

  .task-info h3 {
    font-size: 1.1rem;
  }

  .task-meta {
    flex-direction: column;
    gap: 0.5rem;
  }

  .action-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
} 

/* Inspection-specific styles */
.inspection-checklist {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.inspection-checklist h4 {
  color: #2c3e50;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
}

.checklist-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: white;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #5d6d7e;
  border: 1px solid #e9ecef;
  white-space: nowrap;
}

.checklist-item svg {
  font-size: 0.9rem;
  flex-shrink: 0;
}

.inspection-findings {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  border-radius: 8px;
  border-left: 4px solid #f39c12;
}

.inspection-findings h4 {
  color: #856404;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.inspection-findings p {
  color: #856404;
  margin: 0;
  line-height: 1.5;
}

/* Enhanced responsive design for inspection elements */
@media (max-width: 768px) {
  .checklist-items {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .checklist-item {
    justify-content: flex-start;
  }
  
  .inspection-checklist,
  .inspection-findings {
    padding: 0.75rem;
  }
} 

/* Report-specific styles */
.report-findings {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #e8f5e8 0%, #d5eddb 100%);
  border-radius: 8px;
  border-left: 4px solid #27ae60;
}

.report-findings h4 {
  color: #1e8449;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.report-findings p {
  color: #1e8449;
  margin: 0;
  line-height: 1.5;
}

.report-actions-required {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #fdeaea 0%, #fadbd8 100%);
  border-radius: 8px;
  border-left: 4px solid #e74c3c;
}

.report-actions-required h4 {
  color: #c0392b;
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.report-actions-required p {
  color: #c0392b;
  margin: 0 0 0.5rem 0;
  line-height: 1.5;
}

.report-actions-required .deadline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: #e74c3c;
  margin-top: 0.75rem;
}

.next-inspection {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border-radius: 8px;
  border-left: 4px solid #3498db;
  color: #1976d2;
  font-weight: 600;
}

.report-format {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: rgba(52, 152, 219, 0.1);
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3498db;
  margin-bottom: 0.5rem;
}

.report-number {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #7f8c8d;
  font-size: 0.9rem;
  font-weight: 500;
  font-family: 'Courier New', monospace;
}

/* Enhanced task controls for reports with 3 columns */
.task-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  gap: 2rem;
  flex-wrap: wrap;
}

/* Enhanced responsive design for reports */
@media (max-width: 768px) {
  .report-findings,
  .report-actions-required,
  .next-inspection {
    padding: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .report-format {
    margin-bottom: 0.75rem;
  }
  
  .task-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }
  
  .filter-controls,
  .sort-controls {
    justify-content: space-between;
  }
}

@media (max-width: 480px) {
  .next-inspection {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
} 
.contractor-profile {
  min-height: 100vh;
  background-color: #f8f9fa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  color: #2c3e50;
  gap: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ecf0f1;
  border-left-color: #3498db;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Header */
.profile-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #ecf0f1;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.back-button {
  color: #ecf0f1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  font-size: 0.9rem;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #3498db;
  text-decoration: none;
}

.logo {
  height: 40px;
  width: auto;
}

.profile-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ecf0f1;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ecf0f1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
}

.logout-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #3498db;
}

/* Profile Container */
.profile-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.profile-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.card-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  color: #ecf0f1;
  padding: 2rem 1.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  border: 3px solid rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}

.profile-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.card-header h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
}

.role-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.375rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.card-content {
  padding: 1.5rem;
}

/* Sections */
.section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #ecf0f1;
}

.section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.section h3 {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #2c3e50;
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 1rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* CloudSafe ID Section */
.cloudsafe-id-section {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid #ecf0f1;
}

.id-display {
  margin-bottom: 1rem;
}

.id-label {
  display: block;
  color: #7f8c8d;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.id-value {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.id-value code {
  background: #2c3e50;
  color: #ecf0f1;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: 'Monaco', 'Menlo', monospace;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 1px;
  flex: 1 1;
  min-width: 200px;
}

.id-actions {
  display: flex;
  gap: 0.5rem;
}

.copy-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
}

.copy-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.show-badge-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
}

.show-badge-btn:hover {
  background: #2ecc71;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.id-description {
  color: #7f8c8d;
  font-size: 0.875rem;
  margin: 0;
  line-height: 1.5;
}

/* Profile Information */
.profile-display {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  justify-content: center;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
  flex: 1 1 auto;
  min-width: 0;
}

.info-item .icon {
  color: #3498db;
  font-size: 1.125rem;
  margin-top: 0.25rem;
}

.info-item div {
  flex: 1 1;
  text-align: center;
}

.info-item label {
  display: block;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
}

.info-item span {
  color: #7f8c8d;
  font-size: 0.9rem;
  display: block;
}

.info-item small {
  display: block;
  color: #95a5a6;
  font-size: 0.7rem;
  margin-top: 0.25rem;
  font-style: italic;
  line-height: 1.2;
}

/* Forms */
.edit-form, .password-form {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #ecf0f1;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 1rem;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 0.375rem;
  font-size: 0.875rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #ecf0f1;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s;
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Buttons */
.edit-btn, .change-password-btn {
  background: #3498db;
  color: white;
  border: none;
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.3s;
  min-width: 120px;
  justify-content: center;
}

.edit-btn:hover, .change-password-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.save-btn {
  background: #27ae60;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}

.save-btn:hover {
  background: #2ecc71;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
}

.cancel-btn {
  background: #7f8c8d;
  color: white;
  border: none;
  padding: 0.75rem 1.25rem;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s;
}

.cancel-btn:hover {
  background: #95a5a6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(127, 140, 141, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .profile-header {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    gap: 0.5rem;
  }

  .profile-header h1 {
    font-size: 1.25rem;
  }

  .profile-container {
    margin: 1rem auto;
    padding: 0 1rem;
  }

  .card-header {
    padding: 1.5rem 1rem;
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 1.75rem;
  }

  .card-content {
    padding: 1rem;
  }

  .section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .form-actions {
    flex-direction: column;
  }

  .id-value {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
  }

  .id-value code {
    font-size: 0.875rem;
    padding: 0.625rem 0.75rem;
  }

  .id-actions {
    justify-content: center;
  }
} 
/* Contractor ID Badge Styles */
.contractor-id-badge-page {
  min-height: 100vh;
  background-color: #f8f9fa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  box-sizing: border-box;
  overflow-x: hidden;
}

/* Header */
.badge-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #ecf0f1;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.back-button {
  color: #ecf0f1;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s;
  font-size: 0.9rem;
}

.back-button:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #3498db;
  text-decoration: none;
}

.badge-header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ecf0f1;
}

.header-actions {
  display: flex;
  gap: 1rem;
}

.action-btn {
  background: rgba(255, 255, 255, 0.1);
  color: #ecf0f1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.action-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
}

.action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.regenerate-btn:hover:not(:disabled) {
  color: #f39c12;
}

.download-btn:hover {
  color: #27ae60;
}

.spinning {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Badge Container */
.badge-container {
  max-width: 1200px;
  margin: 1rem auto;
  padding: 1rem;
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 200px);
  align-items: flex-start;
}

/* ID Badge Styling - Made Responsive */
.id-badge {
  width: 100%;
  max-width: 400px;
  min-height: 700px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  overflow: visible;
  position: relative;
  border: 2px solid #ecf0f1;
  display: flex;
  flex-direction: column;
}

/* Badge Header Section */
.badge-header-section {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 1.5rem;
  color: white;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.company-logo {
  height: 50px;
  width: auto;
}

.company-info h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
}

.company-info p {
  margin: 0;
  font-size: 0.9rem;
  color: #bdc3c7;
}

/* Badge Body */
.badge-body {
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1 1;
}

/* Photo Section */
.photo-section {
  display: flex;
  justify-content: center;
}

.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  border: 4px solid #3498db;
  position: relative;
  background: #f8f9fa;
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #ecf0f1;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 3.5rem;
  color: #7f8c8d;
}

/* Info Section */
.info-section {
  flex: 1 1;
}

.name-section {
  text-align: center;
  margin-bottom: 2rem;
}

.name-section h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.2;
}

.role-title {
  background: #3498db;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.5rem;
  display: inline-block;
}

.details-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #3498db;
}

.detail-icon {
  color: #3498db;
  font-size: 1.2rem;
}

.detail-item div {
  flex: 1 1;
}

.detail-label {
  display: block;
  font-size: 0.8rem;
  color: #7f8c8d;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.detail-value {
  display: block;
  font-size: 1rem;
  color: #2c3e50;
  font-weight: 600;
  margin-top: 0.25rem;
}

/* QR Code Section */
.qr-section {
  display: flex;
  justify-content: center;
  margin: 1.5rem 0;
}

.qr-code-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.qr-code-image {
  width: 120px;
  height: 120px;
  border-radius: 8px;
  border: 3px solid #3498db;
  background: white;
  padding: 0.5rem;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.qr-code-placeholder {
  width: 120px;
  height: 120px;
  background: #ecf0f1;
  border: 3px solid #3498db;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.2);
}

.qr-code-placeholder svg {
  font-size: 2rem;
  color: #7f8c8d;
}

.qr-code-placeholder span {
  font-size: 0.8rem;
  color: #7f8c8d;
  font-weight: 600;
}

.qr-info {
  text-align: center;
}

.qr-label {
  display: block;
  font-size: 0.9rem;
  color: #3498db;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.qr-description {
  font-size: 0.75rem;
  color: #7f8c8d;
  font-weight: 500;
  line-height: 1.3;
}

/* QR Action Buttons */
.qr-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  justify-content: center;
}

.qr-action-btn {
  background: #3498db;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 0.4rem 0.8rem;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.qr-action-btn:hover:not(:disabled) {
  background: #2980b9;
  transform: translateY(-1px);
}

.qr-action-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.regenerate-qr-btn:hover:not(:disabled) {
  background: #e67e22;
}

.download-qr-btn:hover:not(:disabled) {
  background: #27ae60;
}

/* QR Code Information */
.qr-code-info {
  background: #e8f4fd;
  border: 1px solid #3498db;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
}

.qr-code-info h4 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.2rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.qr-code-info h4::before {
  content: '📱';
  font-size: 1.1rem;
}

.qr-code-info p {
  margin: 0 0 1rem 0;
  color: #7f8c8d;
  line-height: 1.5;
}

.qr-code-info ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.qr-code-info li {
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: #2c3e50;
  line-height: 1.4;
  position: relative;
}

.qr-code-info li::before {
  content: '🔍';
  position: absolute;
  left: -1.25rem;
  font-size: 0.8rem;
}

.qr-code-info strong {
  color: #2c3e50;
  font-weight: 600;
}

/* Badge Footer */
.badge-footer {
  background: #f8f9fa;
  padding: 1rem 1.5rem;
  border-top: 1px solid #ecf0f1;
  margin-top: auto;
  border-radius: 0 0 14px 14px;
}

.security-features {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.security-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.security-label {
  font-size: 0.7rem;
  color: #7f8c8d;
  font-weight: 600;
  text-transform: uppercase;
}

.security-value {
  font-size: 0.85rem;
  color: #2c3e50;
  font-weight: 600;
}

.verification-code {
  text-align: center;
  font-size: 0.8rem;
  color: #7f8c8d;
  font-family: 'Monaco', 'Menlo', monospace;
}

/* Instructions Section */
.badge-instructions {
  max-width: 900px;
  margin: 3rem auto;
  padding: 0 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 2rem;
}

.badge-instructions h3 {
  margin: 0 0 2rem 0;
  color: #2c3e50;
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
}

/* Security Notice */
.security-notice {
  background: #fff3cd;
  border: 1px solid #ffeaa7;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.notice-icon {
  color: #f39c12;
  font-size: 1.5rem;
  margin-top: 0.25rem;
}

.notice-content h4 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.notice-content p {
  margin: 0;
  color: #7f8c8d;
  line-height: 1.5;
}

.instructions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  grid-gap: 1.5rem;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.instruction-item {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.instruction-icon {
  width: 60px;
  height: 60px;
  background: #3498db;
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.instruction-item h4 {
  margin: 0 0 0.5rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.instruction-item p {
  margin: 0;
  color: #7f8c8d;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Authorization Terms */
.authorization-terms {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  border: 1px solid #ecf0f1;
}

.authorization-terms h4 {
  margin: 0 0 1.5rem 0;
  color: #2c3e50;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.terms-section,
.contact-section {
  margin-bottom: 2rem;
}

.authorization-terms h5 {
  margin: 0 0 1rem 0;
  color: #2c3e50;
  font-size: 1.1rem;
  font-weight: 600;
}

.authorization-terms ul {
  margin: 0;
  padding-left: 1.5rem;
  list-style: none;
}

.authorization-terms li {
  margin: 0.75rem 0;
  font-size: 0.9rem;
  color: #7f8c8d;
  line-height: 1.5;
  position: relative;
}

.authorization-terms li::before {
  content: '•';
  color: #3498db;
  font-weight: bold;
  position: absolute;
  left: -1rem;
}

.contact-info p {
  margin: 0.5rem 0;
  font-size: 0.9rem;
  color: #7f8c8d;
}

.terms-list {
  font-size: 0.85rem;
}

/* Print Styles */
@media print {
  .badge-header,
  .badge-instructions {
    display: none !important;
  }

  .contractor-id-badge-page {
    background: white !important;
  }

  .badge-container {
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
  }

  .id-badge {
    width: 3.375in !important;
    height: 5.625in !important;
    margin: 0.25in auto !important;
    box-shadow: none !important;
    border: 1px solid #000 !important;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .badge-header {
    padding: 1rem;
    justify-content: center;
    text-align: center;
  }

  .header-left {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  .badge-container {
    margin: 0.5rem auto;
    padding: 0.5rem;
    min-height: auto;
  }

  .id-badge {
    width: 100%;
    max-width: 350px;
    min-height: 620px;
  }

  .badge-body {
    padding: 1.5rem 1rem;
    gap: 1.5rem;
  }

  .profile-photo {
    width: 120px;
    height: 120px;
  }

  .name-section h3 {
    font-size: 1.3rem;
  }

  .instructions-grid {
    grid-template-columns: 1fr;
  }

  .badge-instructions {
    margin: 2rem auto;
    padding: 1.5rem;
  }

  .security-notice {
    flex-direction: column;
    text-align: center;
  }

  .authorization-terms {
    padding: 1.5rem;
  }
}

@media (max-width: 600px) and (min-width: 481px) {
  .id-badge {
    max-width: 330px;
    min-height: 600px;
  }
  
  .badge-container {
    padding: 0.75rem;
  }
}

@media (max-width: 480px) {
  .badge-header h1 {
    font-size: 1.2rem;
  }

  .id-badge {
    max-width: 300px;
    min-height: 580px;
  }

  .badge-body {
    padding: 1rem;
    gap: 1rem;
  }

  .profile-photo {
    width: 100px;
    height: 100px;
  }

  .name-section h3 {
    font-size: 1.1rem;
  }

  .detail-item {
    padding: 0.75rem;
  }

  .qr-code-placeholder {
    width: 80px;
    height: 80px;
  }

  .qr-code-image {
    width: 80px;
    height: 80px;
  }

  .qr-actions {
    gap: 0.4rem;
    margin-top: 0.5rem;
  }

  .qr-action-btn {
    padding: 0.3rem 0.6rem;
    font-size: 0.65rem;
  }

  .badge-instructions {
    padding: 1rem;
  }

  .qr-code-info {
    padding: 1rem;
  }

  .security-notice {
    padding: 1rem;
  }

  .authorization-terms {
    padding: 1rem;
  }
} 
/* Staff Dashboard Styles (copied from ContractorDashboard.css for consistency) */
/* Contractor Dashboard Styles */
.contractor-dashboard {
  min-height: 100vh;
  background-color: #f8f9fa;
}

/* Header */
.contractor-header {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  padding: 1rem 2rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.contractor-header .logo {
  height: 40px;
}

.contractor-header .header-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.contractor-header .nav-links {
  display: flex;
  gap: 1.5rem;
}

.contractor-header .nav-link {
  color: #ecf0f1;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.contractor-header .nav-link:hover,
.contractor-header .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
}

.contractor-header .header-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.contractor-header .icon {
  color: #ecf0f1;
  padding: 0.5rem;
  cursor: pointer;
  font-size: 1.2rem;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.contractor-header .icon:hover {
  color: #ffffff;
  background: rgba(52, 152, 219, 0.8);
  transform: scale(1.05);
}

.contractor-header .user-avatar-container {
  position: relative;
  cursor: pointer;
  color: #ecf0f1;
  padding: 0.5rem;
  font-size: 1.5rem;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
}

.contractor-header .user-avatar-container:hover {
  color: #ffffff;
  background: rgba(52, 152, 219, 0.8);
  transform: scale(1.05);
}

.contractor-header .user-avatar-container .icon {
  font-size: 1.5rem;
}

.contractor-header .user-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  min-width: 150px;
  z-index: 1000;
  margin-top: 8px;
}

.contractor-header .user-menu a,
.contractor-header .user-menu button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #2c3e50;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s;
  font-size: 0.95rem;
}

.contractor-header .user-menu a:hover,
.contractor-header .user-menu button:hover {
  background-color: #3498db;
  color: white;
}

/* Layout */
.contractor-layout {
  display: flex;
  min-height: calc(100vh - 80px);
}

/* Sidebar */
.contractor-sidebar {
  width: 280px;
  background: #2c3e50;
  color: white;
  padding: 1.5rem 0;
  position: fixed;
  height: calc(100vh - 80px);
  overflow-y: auto;
  top: 80px;
}

.sidebar-section {
  margin-bottom: 2rem;
}

.sidebar-section h3 {
  color: #bdc3c7;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 1rem 1.5rem;
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.sidebar-nav .nav-item {
  background: none;
  border: none;
  color: #ecf0f1;
  padding: 1rem 1.5rem;
  text-align: left;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
  white-space: nowrap;
  overflow: hidden;
}

.sidebar-nav .nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #3498db;
}

.sidebar-nav .nav-item.active {
  background: #3498db;
  color: white;
  border-right: 3px solid #2980b9;
}

.sidebar-nav .nav-item svg {
  font-size: 1.1rem;
  flex-shrink: 0;
  min-width: 1.1rem;
}

.sidebar-nav .nav-item span {
  flex: 1 1;
  text-align: left;
}

/* Main Content */ 
.building-checkin {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.checkin-header {
    text-align: center;
    margin-bottom: 30px;
}

.checkin-header h2 {
    color: #2c3e50;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 8px;
}

.checkin-header p {
    color: #7f8c8d;
    font-size: 16px;
    margin: 0;
}

/* Tabs */
.checkin-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #ecf0f1;
}

.tab {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 500;
    color: #7f8c8d;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    color: #3498db;
}

.tab.active {
    color: #3498db;
    border-bottom-color: #3498db;
}

/* Content */
.checkin-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* QR Scanner */
.qr-scanner-section {
    display: flex;
    justify-content: center;
}

.scanner-container {
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.scanner-placeholder {
    padding: 60px 40px;
    text-align: center;
    color: #7f8c8d;
}

.scanner-placeholder svg {
    color: #bdc3c7;
    margin-bottom: 20px;
}

.scanner-placeholder h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 20px;
}

.scanner-placeholder p {
    margin-bottom: 30px;
    font-size: 14px;
}

.start-scan-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.start-scan-btn:hover {
    background: #2980b9;
}

.scanner-active {
    position: relative;
    height: 400px;
}

.scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.3);
}

.scanner-frame {
    width: 200px;
    height: 200px;
    border: 3px solid #3498db;
    border-radius: 12px;
    position: relative;
    margin-bottom: 20px;
}

.scanner-frame::before,
.scanner-frame::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 3px solid #e74c3c;
}

.scanner-frame::before {
    top: -3px;
    left: -3px;
    border-right: none;
    border-bottom: none;
}

.scanner-frame::after {
    bottom: -3px;
    right: -3px;
    border-left: none;
    border-top: none;
}

.scanner-overlay p {
    color: white;
    font-size: 16px;
    margin-bottom: 20px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.scanner-debug {
    color: #3498db;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    text-shadow: none;
    font-family: monospace;
    max-width: 250px;
    word-wrap: break-word;
}

.stop-scan-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.stop-scan-btn:hover {
    background: #c0392b;
}

/* ID Search */
.id-search-section {
    display: flex;
    justify-content: center;
}

.search-container {
    width: 100%;
    max-width: 600px;
}

.search-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 4px;
    margin-bottom: 15px;
}

.search-icon {
    position: absolute;
    left: 20px;
    color: #bdc3c7;
    z-index: 1;
}

.search-input-group input {
    flex: 1 1;
    border: none;
    padding: 16px 20px 16px 50px;
    font-size: 16px;
    border-radius: 8px;
    outline: none;
    background: transparent;
}

.search-input-group input::placeholder {
    color: #bdc3c7;
}

.search-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 8px;
}

.search-btn:hover:not(:disabled) {
    background: #2980b9;
}

.search-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.clear-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 16px 20px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
    margin-left: 8px;
}

.clear-btn:hover:not(:disabled) {
    background: #c0392b;
}

.clear-btn:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
}

.search-help {
    text-align: center;
    color: #7f8c8d;
    font-size: 14px;
}

/* Person Details */
.person-details {
    display: flex;
    justify-content: center;
}

.person-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 30px;
    width: 100%;
    max-width: 600px;
}

.person-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #ecf0f1;
}

.person-photo {
    width: 80px;
    height: 80px;
    background: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bdc3c7;
}

.person-info h3 {
    color: #2c3e50;
    font-size: 24px;
    margin-bottom: 5px;
}

.person-id {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.person-role {
    color: #3498db;
    font-weight: 500;
    font-size: 16px;
    margin-bottom: 5px;
}

.person-dept, .person-company {
    color: #7f8c8d;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 3px;
}

/* Induction Status */
.induction-status {
    margin-bottom: 25px;
}

.status-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.status-text {
    font-size: 18px;
    font-weight: 600;
}

.status-dates {
    margin-bottom: 20px;
}

.status-dates p {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 5px;
}

.certifications h4 {
    color: #2c3e50;
    font-size: 16px;
    margin-bottom: 10px;
}

.cert-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cert-tag {
    background: #e8f6f3;
    color: #16a085;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* Check-in Actions */
.checkin-actions {
    text-align: center;
}

.checkin-btn {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 auto;
}

.checkin-btn:hover {
    background: #229954;
}

.checkin-warning {
    background: #ffeaa7;
    color: #d63031;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 500;
}

/* Check-in History */
.checkin-history {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
}

.checkin-history h3 {
    color: #2c3e50;
    font-size: 20px;
    margin-bottom: 20px;
    text-align: center;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.history-item:hover {
    background: #ecf0f1;
}

.history-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-name {
    font-weight: 500;
    color: #2c3e50;
}

.history-id {
    color: #7f8c8d;
    font-size: 14px;
}

.history-time {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #7f8c8d;
    font-size: 14px;
}

.history-status {
    font-weight: 500;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .building-checkin {
        padding: 15px;
    }
    
    .checkin-tabs {
        flex-direction: column;
        align-items: center;
    }
    
    .tab {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
    
    .person-header {
        flex-direction: column;
        text-align: center;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .search-btn {
        margin-left: 0;
        width: 100%;
    }
    
    .clear-btn {
        margin-left: 0;
        margin-top: 10px;
        width: 100%;
    }
    
    .history-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .scanner-container {
        margin: 0 15px;
    }
} 
.onboarding-container { padding: 24px 40px; max-width: 1200px; margin: 80px auto 32px auto; background: transparent; min-height: calc(100vh - 140px); display: flex; flex-direction: column; justify-content: center; }

.onboarding-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; row-gap: 8px; }

.onboarding-title { font-size: 24px; font-weight: 700; }

.onboarding-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.onboarding-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.onboarding-tab { padding: 8px 12px; cursor: pointer; border-radius: 8px; border: 1px solid #1A80E5; background: #f0f7ff; color: #1A80E5; }

.onboarding-tab:hover { background: #e8f2ff; }

.onboarding-tab.active {
  background: #1A80E5;
  color: #ffffff;
  border-color: #1A80E5;
}

.onboarding-content { background: #ffffff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; box-shadow: 0 2px 8px rgba(0,0,0,0.06); }

.onboarding-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  grid-gap: 12px;
  gap: 12px;
}

.onboarding-card { border: 1px solid #eef2f7; border-radius: 12px; padding: 14px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.05); }

.onboarding-section-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
}

.onboarding-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 12px;
  gap: 12px;
}
.onboarding-vertical { display: grid; grid-gap: 12px; gap: 12px; }
.onboarding-field { display: flex; flex-direction: column; gap: 8px; }
.onboarding-label { font-size: 13px; font-weight: 600; color: #374151; }

@media (max-width: 900px) {
  .onboarding-form-row { grid-template-columns: 1fr; }
}

.onboarding-form-row + .onboarding-form-row { margin-top: 12px; }

.onboarding-input,
.onboarding-select {
  width: 100%;
  padding: 8px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
}

/* Compact input helpers */
.input-property-search { max-width: 320px; }
.input-date-compact { max-width: 220px; }

/* Checkbox lists for easy multi-select */
.onboarding-list { border: 1px solid #e5e7eb; border-radius: 6px; background: #fff; max-height: 180px; overflow: auto; padding: 6px; }
.onboarding-list-item { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; }
.onboarding-list-item:hover { background: #f3f4f6; }
.onboarding-list-item.checked { background: #e8f2ff; border: 1px solid #bcd7ff; }
.onboarding-list-item input[type="checkbox"] { cursor: pointer; }

/* Chips for selected items */
.onboarding-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.onboarding-chip { 
  background: #e8f2ff; 
  color: #1A80E5; 
  border: 1px solid #bcd7ff; 
  border-radius: 999px; 
  padding: 3px 8px; 
  font-size: 12px; 
  flex: 0 1 auto;
  max-width: calc(25% - 6px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-flex;
  align-items: center;
}
.onboarding-chip button { 
  margin-left: 6px; 
  background: transparent; 
  border: none; 
  color: #1A80E5; 
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  line-height: 1;
}
.onboarding-chip button:hover { color: #0d6efd; }

.onboarding-table { width: 100%; border-collapse: collapse; }
.onboarding-table th, .onboarding-table td { padding: 8px; border-bottom: 1px solid #f0f0f0; text-align: left; }
.onboarding-table th { background: #f9fafb; font-weight: 600; }

.btn-primary { background: #1A80E5; color: #fff; border: none; padding: 8px 12px; border-radius: 8px; cursor: pointer; box-shadow: 0 2px 8px rgba(26,128,229,0.08); }
.btn-secondary { background: #f8fbff; color: #111827; border: 1px solid #e5e7eb; padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.btn-danger { background: #dc2626; color: #fff; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; }

/* Status badges */
.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.success {
  background-color: #d4edda;
  color: #155724;
}

.status-badge.error {
  background-color: #f8d7da;
  color: #721c24;
}

.status-badge.warning {
  background-color: #fff3cd;
  color: #856404;
}

.status-badge.info {
  background-color: #d1ecf1;
  color: #0c5460;
}

/* Modal styles */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal-content {
  background: white;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
  margin: 0;
  color: #2c3e50;
}

.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #6c757d;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  color: #495057;
}

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 20px;
  border-top: 1px solid #e9ecef;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}



/* Account Settings - Sidebar Layout */
.main-container {
  width: 100vw;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: #f8fafc;
  overflow-x: hidden;
  box-sizing: border-box;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.settings-container {
  padding: 32px 40px;
  width: 100%;
  margin: 0;
  margin-top: 80px; /* Account for fixed header */
  box-sizing: border-box;
}

/* Main Layout - Sidebar + Content */
.settings-layout {
  display: flex;
  gap: 40px;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}

/* Sidebar */
.settings-sidebar {
  width: 320px;
  min-width: 320px;
  background: white;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  height: -webkit-fit-content;
  height: fit-content;
  position: -webkit-sticky;
  position: sticky;
  top: 112px; /* Account for header + margin */
}

/* Profile Section in Sidebar */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e5e7eb;
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 16px;
  border: 3px solid #e5e7eb;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #9ca3af;
}

.profile-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.profile-info p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Navigation */
.settings-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
  width: 100%;
  font-size: 14px;
  color: #6b7280;
}

.nav-item:hover {
  background: #f3f4f6;
  color: #374151;
}

.nav-item.active {
  background: #1A80E5;
  color: white;
  font-weight: 500;
}

.nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}

.nav-label {
  font-weight: 500;
}

/* Main Content Area */
.settings-main {
  flex: 1 1;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.content-card {
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  min-height: 600px;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  word-wrap: break-word;
}

/* Content Sections */
.content-section h2 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 24px 0;
}

.content-section h2:not(:first-child) {
  margin-top: 48px;
}

/* Form Grid - Two Column Layout */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 32px;
  gap: 32px;
  margin-bottom: 40px;
  width: 100%;
  box-sizing: border-box;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: #374151;
}

.form-group input {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
  box-sizing: border-box;
}

.form-group input:focus {
  border-color: #1A80E5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 128, 229, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

/* Save Button */
.save-button {
  background: #1A80E5;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 44px;
}

.save-button:hover {
  background: #1666b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(26, 128, 229, 0.3);
}

.save-button:active {
  transform: translateY(0);
}

/* Profile Picture Section */
.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}

.profile-picture-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.profile-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: #9ca3af;
  border: 3px solid #e5e7eb;
}

.file-input {
  display: none;
}

.upload-button {
  background: #1A80E5;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.upload-button:hover {
  background: #1666b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(26, 128, 229, 0.3);
}

/* Unique ID Section */
.unique-id-section {
  margin-bottom: 32px;
}

.unique-id-display {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  text-align: center;
}

.unique-id-text {
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 16px;
  color: #374151;
  font-weight: 600;
  background: #f8fafc;
  padding: 16px 24px;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  word-break: break-all;
  min-width: 200px;
}

.copy-button {
  background: #1A80E5;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-button:hover {
  background: #1666b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(26, 128, 229, 0.3);
}

/* Notification Toggles */
.notification-toggles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  gap: 20px;
  margin-top: 20px;
  width: 100%;
  box-sizing: border-box;
}

.toggle-switch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #e5e7eb;
}

.toggle-switch:hover {
  background: #f1f5f9;
  border-color: #1A80E5;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.toggle-label-container {
  display: flex;
  align-items: center;
}

.notification-icon {
  display: inline-block;
  margin-right: 12px;
  font-size: 18px;
}

.toggle-label {
  color: #374151;
  font-size: 14px;
  font-weight: 500;
}

/* Toggle Switch Styles */
.switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #d1d5db;
  transition: 0.2s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

input:checked + .slider {
  background-color: #1A80E5;
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* Form Select Styles */
.form-select {
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  transition: all 0.2s ease;
  background: white;
  box-sizing: border-box;
  width: 100%;
}

.form-select:focus {
  border-color: #1A80E5;
  outline: none;
  box-shadow: 0 0 0 3px rgba(26, 128, 229, 0.1);
}

/* Activity Stats */
.activity-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 24px;
  gap: 24px;
  margin-bottom: 40px;
}

.stat-card {
  background: #f8fafc;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.stat-card h3 {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 8px 0;
  font-weight: 500;
}

.stat-card p {
  font-size: 20px;
  color: #1f2937;
  margin: 0;
  font-weight: 600;
}

/* Activity List */
.activity-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.activity-icon {
  font-size: 24px;
  width: 48px;
  height: 48px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.activity-details h4 {
  font-size: 16px;
  color: #1f2937;
  margin: 0 0 4px 0;
  font-weight: 500;
}

.activity-details p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

/* Payment Method */
.payment-method {
  margin-bottom: 32px;
}

.payment-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
}

.card-icon {
  font-size: 32px;
  width: 60px;
  height: 60px;
  background: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card-details {
  flex: 1 1;
}

.card-details h4 {
  font-size: 18px;
  color: #1f2937;
  margin: 0 0 4px 0;
  font-weight: 600;
}

.card-details p {
  font-size: 14px;
  color: #6b7280;
  margin: 0;
}

.edit-button {
  background: #1A80E5;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-button:hover {
  background: #1666b8;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(26, 128, 229, 0.3);
}

/* Responsive Design */
@media (max-width: 1400px) {
  .settings-layout {
    gap: 32px;
  }
  
  .settings-sidebar {
    width: 280px;
    min-width: 280px;
  }
}

@media (max-width: 1200px) {
  .settings-layout {
    flex-direction: column;
    gap: 24px;
  }
  
  .settings-sidebar {
    width: 100%;
    min-width: auto;
    position: static;
  }
  
  .settings-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
  }
  
  .nav-item {
    white-space: nowrap;
    min-width: -webkit-fit-content;
    min-width: fit-content;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .notification-toggles {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .activity-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 768px) {
  .settings-container {
    padding: 20px;
    margin-top: 80px;
  }
  
  .content-card {
    padding: 24px;
  }
  
  .content-section h2 {
    font-size: 20px;
  }
  
  .settings-sidebar {
    padding: 20px;
  }
  
  .profile-avatar {
    width: 60px;
    height: 60px;
  }
  
  .profile-info h3 {
    font-size: 16px;
  }
  
  .profile-info p {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .settings-container {
    padding: 16px;
  }
  
  .content-card {
    padding: 20px;
  }
  
  .settings-sidebar {
    padding: 16px;
  }
  
  .nav-item {
    padding: 10px 12px;
    font-size: 13px;
  }
  
  .nav-icon {
    font-size: 14px;
  }
}

/* Focus states for accessibility */
.form-group input:focus,
.save-button:focus,
.copy-button:focus,
.upload-button:focus,
.nav-item:focus {
  outline: 2px solid #1A80E5;
  outline-offset: 2px;
}

/* Loading states */
.save-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.save-button:disabled:hover {
  background: #9ca3af;
  transform: none;
  box-shadow: none;
}

/*# sourceMappingURL=main.57992504.css.map*/