:root {
  --app-primary: #0b6b78;
  --app-primary-dark: #075662;
  --app-primary-soft: #e8f6f8;
  --app-accent: #f59e0b;
  --app-accent-dark: #c76f00;
  --app-danger: #dc3545;
  --app-success: #198754;
  --app-page-bg: #f4f7f9;
  --app-surface: #ffffff;
  --app-border: #dce5ea;
  --app-border-strong: #bfd0d8;
  --app-text: #1f2a33;
  --app-muted: #647481;
  --app-radius: 8px;
  --app-radius-sm: 4px;
  --app-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.08);
  --app-shadow-md: 0 10px 24px rgba(15, 23, 42, 0.1);
  --app-focus-ring: 0 0 0 0.2rem rgba(14, 162, 189, 0.22);
  --app-nav-height: 72px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--app-page-bg);
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Poppins', sans-serif;
  color: var(--app-text);
  background: var(--app-page-bg);
  text-rendering: optimizeLegibility;
}

.app-navbar {
  background-color: var(--app-primary);
  box-shadow: var(--app-shadow-sm);
}

.app-navbar .navbar-brand img {
  max-height: 45px;
}

.app-navbar .nav-link {
  border-radius: var(--app-radius-sm);
  padding-inline: 0.75rem;
}

.app-navbar .nav-link:hover,
.app-navbar .nav-link:focus {
  background: rgba(255, 255, 255, 0.12);
}

.app-dropdown-menu {
  background-color: var(--app-primary);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: var(--app-shadow-md);
}

.app-lang-flag {
  display: inline-block;
  flex: 0 0 auto;
  width: 30px;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  vertical-align: middle;
}

#navbarDropdownLanguage,
.app-lang-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.app-lang-link {
  color: #fff;
  width: 100%;
  min-height: 44px;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}

.app-lang-link.is-active {
  color: var(--app-accent);
}

.app-flash-container {
  top: calc(var(--app-nav-height) + 8px);
  z-index: 1055;
  width: min(92vw, 520px);
}

.app-flash-container .alert {
  min-width: 0;
  border: 0;
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow-md);
}

.custom-dropdown {
  position: relative;
  display: inline-block;
  width: 200px;
  max-width: 100%;
  margin-bottom: 10px;
}

#name_filter {
  width: 100%;
  padding: 5px;
  border: 1px solid #ccc;
}

.options-container {
  display: none;
  position: absolute;
  background-color: #fff;
  border: 1px solid #ccc;
  max-height: 200px;
  overflow-y: auto;
}

.options-container select {
  width: 100%;
  border: none;
  outline: none;
  background-color: transparent;
}

.tableContainer {
  margin-top: calc(var(--app-nav-height) + 36px);
  padding-bottom: 3rem;
}

.card,
.modal-content,
.dropdown-menu {
  border-radius: var(--app-radius);
  border-color: var(--app-border);
}

.card {
  box-shadow: var(--app-shadow-sm);
}

.card-header {
  border-bottom-color: var(--app-border);
}

.form-control,
.form-select,
.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select,
tfoot input {
  border-color: var(--app-border-strong);
  border-radius: var(--app-radius-sm);
  color: var(--app-text);
}

.form-control:focus,
.form-select:focus,
.dataTables_wrapper .dataTables_filter input:focus,
tfoot input:focus {
  border-color: var(--app-primary);
  box-shadow: var(--app-focus-ring);
}

.btn {
  border-radius: var(--app-radius-sm);
  font-weight: 600;
}

.btn-primary,
.main_btn {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.main_btn:hover {
  background-color: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
}

.btn-warning {
  background-color: var(--app-accent);
  border-color: var(--app-accent);
  color: #1f2a33;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: var(--app-accent-dark);
  border-color: var(--app-accent-dark);
  color: #fff;
}

.btn-outline-warning {
  color: var(--app-accent-dark);
  border-color: var(--app-accent);
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
  background-color: var(--app-accent);
  border-color: var(--app-accent);
  color: #1f2a33;
}

.table-responsive {
  border-radius: var(--app-radius);
}

.table {
  --bs-table-hover-bg: var(--app-primary-soft);
  color: var(--app-text);
}

.table thead th {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  white-space: nowrap;
}

.table tbody td {
  font-size: 0.875rem;
}

.table tfoot input {
  width: 100%;
  padding: 0.35rem 0.5rem;
  font-size: 0.8rem;
}

.dataTables_wrapper {
  color: var(--app-text);
}

.dataTables_wrapper .row {
  row-gap: 0.75rem;
}

.dataTables_wrapper > .row {
  --bs-gutter-x: 0;
}

.dataTables_wrapper > .row:first-child,
.dataTables_wrapper > .row:last-child {
  align-items: center;
  padding: 0.75rem 1.25rem;
}

.dataTables_wrapper > .row > div {
  min-width: 0;
}

.dataTables_wrapper .dataTables_filter input,
.dataTables_wrapper .dataTables_length select {
  margin-left: 0.5rem;
}

.page-title {
  color: var(--app-primary);
  font-weight: 700;
  letter-spacing: 0;
}

.chart-card {
  width: min(100%, 28rem);
}

.project-required-msg {
  display: none;
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

.project-required-msg.fade-in {
  display: block;
  opacity: 1;
}

.project-required-msg.fade-out {
  opacity: 0;
}

@media (max-width: 767.98px) {
  .tableContainer {
    margin-top: calc(var(--app-nav-height) + 20px);
    padding-inline: 0.75rem;
  }

  .floating-button {
    right: 20px;
    bottom: 28px;
  }
}

.go_back_btn {
  background-color: #0ea2bd;
  max-height: 26px;
  padding: 6px 12px;
  color: #fff;
  border-radius: 4px;
  border: none;
  font-size: 10px;
  font-weight: 400;
  /* font-family: "Source Sans Pro", sans-serif; */
  text-decoration: none;
  text-align: center;
}

.go_back_btn:hover {
  background-color: #0189a1;
  color: #fff;
}

.custom-dropdown-button {
  background-color: #f8f9fa;
  color: #333;
}

.custom_dropdown_menu {
  background-color: #f8f9fa !important;
  border-radius: 10px !important;
  padding: 10px !important;
  width: min(320px, calc(100vw - 2rem));
  min-width: 0 !important;
  max-height: 400px;
  overflow-y: auto;
}

.custom_dropdown_menu .btn-group {
  width: 100%;
}

.custom_dropdown_menu .btn-group .item_numName {
  width: 70%;
}

.custom_dropdown_menu .btn-group .item_deleteBTN {
  width: 30%;
}

#startbutton {
  background-color: #fd7e14;
  border: none;
  color: #fff;
  border-radius: 4px;
  border: 1px solid #fd7e14;
  font-size: 14px;
  font-weight: 500;
  /* font-family: "Source Sans Pro", sans-serif; */
  text-decoration: none;
  margin: 10px;
  padding: 4px 8px;
}

.red-switch {
  border-color: #cf1515 !important;
  float: none !important;
}

.red-switch:checked {
  background-color: #cf1515 !important;
}

.red-switch:checked + .form-check-label::before {
  background-color: #cf1515 !important;
}

.red-switch:focus {
  border-color: #cf1515 !important;
  box-shadow: none !important;
}

.imagePreview {
  width: 100%;
  height: 180px;
  background-position: center center;
  background-color: #fdeded;
  background-size: cover;
  background-repeat: no-repeat;
  display: inline-block;
  box-shadow: 0px -3px 6px 2px rgba(0, 0, 0, 0.2);
}

.btn_forUpload {
  display: block;
  border-radius: 0px;
  box-shadow: 0px 4px 6px 2px rgba(0, 0, 0, 0.2);
  margin-top: -5px;
}

.imgUp {
  margin-bottom: 15px;
}

.del {
  position: absolute;
  top: 0px;
  right: 15px;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
}

.imgAdd {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #4bd7ef;
  color: #fff;
  box-shadow: 0px 0px 2px 1px rgba(0, 0, 0, 0.2);
  text-align: center;
  line-height: 30px;
  margin-top: 0px;
  cursor: pointer;
  font-size: 15px;
}

.checkBoxTable,
.MsoNormalTable {
  border-collapse: collapse;
  border-radius: 10px;
}

.checkBoxTable tr,
.checkBoxTable th,
.checkBoxTable td,
.MsoNormalTable tr,
.MsoNormalTable th,
.MsoNormalTable td {
  background-color: transparent;
}

.checkBoxTable .img_box,
.MsoNormalTable .img_box {
  width: 100%;
}

.checkBoxTable .noTopBorder,
.MsoNormalTable .noTopBorder {
  border-top: none;
}

.checkBoxTable .MsoNormal,
.MsoNormalTable .MsoNormal {
  font-size: 24px;
  font-weight: 800;
  line-height: 36px;
  /* font-family: "Source Sans Pro", sans-serif; */
}

.checkBoxTable .textfieldForTable,
.MsoNormalTable .textfieldForTable {
  width: 100%;
  min-width: 57px;
  border: none;
  /* font-family: "Source Sans Pro", sans-serif; */
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}

.checkBoxTable .MsoNormal_Title,
.MsoNormalTable .MsoNormal_Title {
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  line-height: 36px;
  /* font-family: "Source Sans Pro", sans-serif; */
}

.checkBoxTable .header_Title,
.MsoNormalTable .header_Title {
  /* font-family: "Source Sans Pro", sans-serif; */
  font-size: 18px;
  font-weight: bold;
  line-height: normal;
}
.checkBoxTable .header_SubTitle,
.MsoNormalTable .header_SubTitle {
  /* font-family: "Source Sans Pro", sans-serif; */
  font-size: 12px;
  font-weight: 600;
  line-height: normal;
}
.checkBoxTable .header_Span,
.MsoNormalTable .header_Span {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
}
.checkBoxTable .header_Span_STA,
.MsoNormalTable .header_Span_STA {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 12px;
  font-weight: 400;
  line-height: normal;
  vertical-align: middle;
}
/* .checkBoxTable label,
.MsoNormalTable label {
  font-family: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
} */
.checkBoxTable input,
.MsoNormalTable input {
  background-color: #fff;
  margin-right: 2px;
  padding: 4px 4px !important;
}
.checkBoxTable textarea,
.MsoNormalTable textarea {
  width: 100%;
  height: 100px;
  box-sizing: border-box;
}
.checkBoxTable .sign_BTN,
.MsoNormalTable .sign_BTN {
  background-color: #fd7e14;
  border: none;
  border-radius: 15px;
  color: #fff;
  font-size: 10px;
  padding: 2px 10px;
  height: 20px;
}
.checkBoxTable .sign_BTN:hover,
.MsoNormalTable .sign_BTN:hover {
  background-color: #df6d0f;
}

.MsoNormalTable {
  width: 100%;
}

.shadow_table {
  box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
}

.marginTop_table {
  margin-top: 20px;
}

.table_margin_bottom {
  margin-bottom: 50px;
}

.left_padding {
  padding-left: 7px;
}

.p8 {
  padding: 8px;
}

.p10 {
  padding: 10px 15px;
}

.p15 {
  padding: 15px;
}

.pt_10 {
  padding-top: 10px;
}

.pt_15 {
  padding-top: 15px;
}

.pt_20 {
  padding-top: 20px;
}

.pt_30 {
  padding-top: 30px;
}

.pt_50 {
  padding-top: 50px;
}

.pb_10 {
  padding-bottom: 15px;
}

.pb_15 {
  padding-bottom: 15px;
}

.pr_10 {
  padding-right: 10px;
}

.pr_15 {
  padding-right: 15px;
}

.pr_30 {
  padding-right: 30px;
}

.pl_10 {
  padding-left: 10px;
}

.pl_15 {
  padding-left: 15px;
}

.pl_20 {
  padding-left: 20px;
}

.pl_30 {
  padding-left: 30px;
}

.padding_table_list {
  padding: 15px 5px;
}

.app-checksheet-punchlist .app-punch-status {
  width: 6rem;
  min-width: 6rem;
  white-space: nowrap;
  overflow-wrap: normal;
  vertical-align: middle;
}

.td_center {
  text-align: center;
}

.td_width {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bottom_margin {
  margin-bottom: 50px;
}

th,
td {
  vertical-align: middle;
}

.img_box {
  width: 100%;
}
.img_box img,
.img_box .image {
  padding: 4px;
}

.dark_input {
  background-color: #e7e6e6 !important;
  color: #fff !important;
  border-radius: 0 !important;
  margin-right: 1px !important;
  box-shadow: none !important;
}

.dark_single_input {
  background-color: #e7e6e6 !important;
  color: #fff !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-left: 10px !important;
}

.light_input {
  background-color: #fff !important;
  color: #000 !important;
  border: none !important;
  box-shadow: none !important;
}

.empty_input {
  background-color: transparent !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-align: center;
}
.empty_input:focus {
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
}

.line_input {
  background-color: transparent !important;
  color: #fff !important;
  border: none !important;
  border-bottom: 1px solid #c2f3fa !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-left: 10px;
}
.line_input:focus {
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
}

.date_input {
  background-color: transparent !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin-left: 10px;
}
.date_input:focus {
  outline: none !important;
  box-shadow: none !important;
  color: #fff !important;
}
.date_input .fa,
.date_input .icon {
  color: #fff;
}

.border_primery {
  background-color: #fff;
  color: #000;
}
.border_primery td,
.border_primery th {
  border: solid 1px #dc3545 !important;
}

.borders {
  border: solid 1px #0ea2bd !important;
}

.border_radius {
  border-radius: 10px !important;
}

.bottom_border {
  border: none !important;
  border-bottom: 1px solid #e8e8e8 !important;
  border-radius: 0 !important;
}

.primery_header_withBorder td,
.primery_header_withBorder th {
  border: solid 3px #fff;
}

.bg_primeryColor {
  background-color: #dc3545;
  color: #fff;
}

.card_bg_bottomBorderRadius {
  background-color: #0189a1 !important;
  color: #ffffff !important;
  border-radius: 0 0 10px 10px !important;
}

.card_bg_topBorderRadius {
  background-color: #0189a1 !important;
  color: #ffffff !important;
  border-radius: 10px 10px 0 0 !important;
}

.card_topBorder {
  border-radius: 10px 10px 0 0 !important;
}

.card_bottomBorder {
  border-radius: 0 0 10px 10px !important;
}

.border-top-left-radius {
  border-top-left-radius: 10px !important;
}

.border-top-right-radius {
  border-top-right-radius: 10px !important;
}

.border-bottom-left-radius {
  border-bottom-left-radius: 10px !important;
}

.border-bottom-right-radius {
  border-bottom-right-radius: 10px !important;
}

.title_bg {
  background-color: #0189a1 !important;
  color: #ffffff !important;
  border-radius: 10px;
}

.title_only_bg {
  background-color: #0189a1 !important;
  color: #ffffff !important;
}

.subTitle_bg {
  background-color: #0ea2bd !important;
  color: #c2f3fa !important;
}

.subTitle_only_bg {
  background-color: #0ea2bd !important;
}

.secondary_bg {
  background-color: #f7f7f7 !important;
  color: #c2f3fa !important;
}

.orange_bg {
  background-color: #ffa30c !important;
  color: #0f4d56 !important;
}

.forTable {
  padding: 20px 12px !important;
  background-color: #fff;
  box-shadow: -8px 0 8px -8px rgba(0, 0, 0, 0.2), 8px 0 8px -8px rgba(0, 0, 0, 0.2);
}

.cardTable {
  padding: 20px 20px !important;
  box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
}

.inside_container {
  box-shadow: 0 0 8px 4px rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  background-color: #fff;
}

.text_Primery_color {
  color: #0ea2bd;
}

.link_primery {
  color: #0ea2bd;
  text-decoration: none;
}
.link_primery:hover {
  color: #0189a1;
}

.text_orange_color {
  color: #fd7e14;
}

.text_secondary_color {
  color: #c2f3fa !important;
}

.text_white_color {
  color: #ffffff !important;
}

.main_btn {
  display: inline-block;
  background-color: #0ea2bd;
  padding: 4px 8px;
  color: #fff;
  border-radius: 4px;
  border: 1px solid #0ea2bd;
  font-size: 14px;
  font-weight: 400;
  /* font-family: "Source Sans Pro", sans-serif; */
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}
.main_btn:hover {
  background-color: #0189a1;
  color: #fff;
}

.orange_btn {
  display: inline-block;
  background-color: #fd7e14;
  padding: 4px 8px;
  color: #fff;
  border-radius: 4px;
  border: 1px solid #fd7e14;
  font-size: 14px;
  font-weight: 400;
  /* font-family: "Source Sans Pro", sans-serif; */
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}
.orange_btn:hover {
  background-color: #c05700;
  color: #fff;
}

.btn_outline_main {
  color: #0ea2bd;
  border-color: #0ea2bd;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #0ea2bd;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 400;
  /* font-family: "Source Sans Pro", sans-serif; */
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}
.btn_outline_main:hover {
  color: #fff;
  background-color: #0ea2bd;
  border-color: #0ea2bd;
}
.btn_outline_main:focus {
  box-shadow: var(--app-focus-ring);
}
.btn_outline_main:active {
  color: #fff;
  background-color: #0ea2bd;
  border-color: #0ea2bd;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn_outline_orange {
  color: #fd7e14;
  border-color: #fd7e14;
  background-color: transparent;
  border-radius: 4px;
  border: 1px solid #fd7e14;
  padding: 4px 8px;
  font-size: 14px;
  font-weight: 400;
  /* font-family: "Source Sans Pro", sans-serif; */
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
}
.btn_outline_orange:hover {
  color: #fff;
  background-color: #fd7e14;
  border-color: #fd7e14;
}
.btn_outline_orange:focus {
  box-shadow: var(--app-focus-ring);
}
.btn_outline_orange:active {
  color: #fff;
  background-color: #fd7e14;
  border-color: #fd7e14;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}

.btn_attachment {
  background-color: #fd7e14;
  padding: 10px 15px;
  color: #c2f3fa;
  border-radius: 4px;
  border: none;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 700;
  /* font-family: "Source Sans Pro", sans-serif; */
  justify-content: space-around;
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  min-width: 180px;
  margin-right: 10px;
}

.btn_cancel {
  background-color: #ee1b30;
  padding: 7px 15px;
  color: #c2f3fa;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  font-weight: 400;
  /* font-family: "Source Sans Pro", sans-serif; */
  text-decoration: none;
  text-align: center;
  margin-right: 10px;
}
.btn_cancel:hover {
  background-color: #b10113;
  color: #fff;
}

.btn_save {
  background-color: #018346;
  padding: 7px 15px;
  color: #c2f3fa;
  border-radius: 4px;
  border: none;
  font-size: 14px;
  font-weight: 400;
  /* font-family: "Source Sans Pro", sans-serif; */
  text-decoration: none;
  text-align: center;
}
.btn_save:hover {
  background-color: #01512c;
  color: #fff;
}

.modal-header {
  background-color: #0189a1 !important;
  color: #fff !important;
}

.image_title {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.delete_icon {
  margin-left: auto;
}

@media print {
  .navbar {
      display: none !important;
  }

  .container-fluid.tableContainer {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
}


.card-header {
  background-color: #0189a1 !important;
  color: #fff !important;

}


/* float button */
.floating-button {
  position: fixed;
  bottom: 80px;
  right: 50px;
  z-index: 1000; /* Ensure it's above other elements on the page */
}

.btn-floating {
  border-radius: 50%;
  padding: 18px;
  background-color: #0189a1;
  color: #fff;
  transition: background-color 0.3s ease; /* Add a smooth transition effect */
}

.btn-floating:hover {
  background-color: #fd7e14; /* Change to the desired hover color */
}

label {
  padding-bottom: 0px;
  color: #0189a1;
  font-weight: 600;
  /* font-family: Arial, Helvetica, sans-serif; */
  font-size: 14px;
}

/* h1, h2, h3, h4, h5, h6 {
  color: black;
  font-weight: bolder;

} */

.pl-bg {
  background-color: #0189a1;
}


/* Container for the lines */
.line-container {
  display: flex;
  align-items: center; /* Align items vertically */
  justify-content: center; /* Center items horizontally */
}

/* Styling for the horizontal lines */
.line {
  flex-grow: 1; /* Allow the line to grow and fill the remaining space */
  height: 1px; /* Set the height of the line */
  background-color: #0189a1; /* Set the color of the line */
  margin: 0 10px; /* Add some margin between the lines and the "Or" text */
}

/* Styling for the "Or" text */
.or-text {
  margin: 0 10px; /* Add some margin between the "Or" text and the lines */
  font-weight: bold; /* Make the text bold */
  color: #0189a1; /* Set the color of the text */
}


/* 404.html */

#notfound {
  position:relative;
  height:100vh
}
#notfound .notfound {
  position:absolute;
  left:50%;
  top:50%;
  -webkit-transform:translate(-50%,-50%);
  -ms-transform:translate(-50%,-50%);
  transform:translate(-50%,-50%)
}
.notfound {
  max-width:767px;
  width:100%;
  line-height:1.4;
  text-align:center;
  padding:15px
}
.notfound .notfound-404 {
  position:relative;
  height:220px
}
.notfound .notfound-404 h1 {
  font-family:kanit,sans-serif;
  position:absolute;
  left:50%;
  top:50%;
  -webkit-transform:translate(-50%,-50%);
  -ms-transform:translate(-50%,-50%);
  transform:translate(-50%,-50%);
  font-size:186px;
  font-weight:200;
  margin:0;
  background:linear-gradient(130deg,#ffa34f,#ff6f68);
  color:transparent;
  -webkit-background-clip:text;
  background-clip:text;
  text-transform:uppercase
}
.notfound h2 {
  font-family:kanit,sans-serif;
  font-size:33px;
  font-weight:200;
  text-transform:uppercase;
  margin-top:0;
  margin-bottom:25px;
  letter-spacing:3px
}
.notfound p {
  font-family:kanit,sans-serif;
  font-size:16px;
  font-weight:200;
  margin-top:0;
  margin-bottom:25px
}
.notfound a {
  font-family:kanit,sans-serif;
  color:#ff6f68;
  font-weight:200;
  text-decoration:none;
  border-bottom:1px dashed #ff6f68;
  border-radius:2px
}
.notfound-social>a {
  display:inline-block;
  height:40px;
  line-height:40px;
  width:40px;
  font-size:14px;
  color:#ff6f68;
  border:1px solid #efefef;
  border-radius:50%;
  margin:3px;
  -webkit-transition:.2s all;
  transition:.2s all
}
.notfound-social>a:hover {
  color:#fff;
  background-color:#ff6f68;
  border-color:#ff6f68
}
@media only screen and (max-width:480px) {
  .notfound .notfound-404 {
    position:relative;
    height:168px
  }
  .notfound .notfound-404 h1 {
    font-size:142px
  }
  .notfound h2 {
    font-size:22px
  }
}



.border-c {
  width: 100%; /* Full width of the container */
  max-width: 100%; /* Ensure the div doesn't exceed its container */
  height: 400px; /* Set the height as per your design */
  overflow: auto; /* Enable scrolling if content overflows */
  border: 3px solid black; /* Add a border */
  box-sizing: border-box; /* Include border in width/height calculations */
}

#myCanvas1 {
  display: block; /* Ensure the canvas respects its size */
  width: 1200px; /* Fixed width for the canvas */
  height: 800px; /* Fixed height for the canvas */
  max-width: none;
}


.z-9999 {
  z-index: 9999 !important;
}

/* Shared UI polish overrides */
.text-primary,
.link-primary {
  color: var(--app-primary) !important;
}

.bg-primary,
.table-primary,
.title_bg,
.title_only_bg,
.modal-header,
.card-header,
.pl-bg {
  background-color: var(--app-primary) !important;
  color: #fff !important;
}

.subTitle_bg,
.subTitle_only_bg {
  background-color: #13879a !important;
}

.main_btn,
.go_back_btn {
  background-color: var(--app-primary);
  border-color: var(--app-primary);
  color: #fff;
}

.main_btn:hover,
.go_back_btn:hover {
  background-color: var(--app-primary-dark);
  border-color: var(--app-primary-dark);
  color: #fff;
}

.orange_btn,
#startbutton {
  background-color: var(--app-accent);
  border-color: var(--app-accent);
}

.orange_btn:hover,
#startbutton:hover {
  background-color: var(--app-accent-dark);
  border-color: var(--app-accent-dark);
}

.btn_outline_main:focus,
.btn_outline_orange:focus {
  box-shadow: var(--app-focus-ring);
}

.shadow_table,
.cardTable,
.inside_container {
  box-shadow: var(--app-shadow-md);
}

.forTable {
  box-shadow: var(--app-shadow-sm);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius);
}

.floating-button {
  right: 32px;
}

.btn-floating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  padding: 0;
  background-color: var(--app-primary);
  box-shadow: var(--app-shadow-md);
}

.btn-floating:hover,
.btn-floating:focus {
  background-color: var(--app-accent);
  color: #1f2a33;
}

/* Responsive application layer */
.app-shell {
  width: min(100%, 1440px);
  margin-inline: auto;
}

.app-navbar .container {
  max-width: 1720px;
}

.app-lang-nav {
  margin-left: 2rem;
}

.app-navbar .dropdown-menu {
  padding: 0.35rem;
}

.app-navbar .dropdown-item,
.app-navbar .app-lang-link {
  border-radius: var(--app-radius-sm);
}

.app-navbar .dropdown-item:hover,
.app-navbar .dropdown-item:focus,
.app-navbar .app-lang-link:hover,
.app-navbar .app-lang-link:focus {
  background-color: rgba(255, 255, 255, 0.12);
}

.container-fluid.tableContainer {
  max-width: 1720px;
}

.table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--app-surface);
  border: 1px solid var(--app-border);
  box-shadow: var(--app-shadow-sm);
}

.table-responsive > .table {
  margin-bottom: 0;
}

.table th,
.table td {
  max-width: 22rem;
}

.table td {
  overflow-wrap: anywhere;
}

.table td:first-child,
.table th:first-child {
  position: sticky;
  left: 0;
  z-index: 2;
  background: var(--app-surface);
}

/* Keep sortable headers pinned when DataTables sets position: relative. */
.table thead th:first-child,
table.table.dataTable thead > tr > th:first-child {
  position: sticky;
  left: 0;
  z-index: 3;
  background: var(--app-surface) !important;
  color: var(--app-primary) !important;
}

.table td.table-dropdown-open,
.table th.table-dropdown-open {
  z-index: 1020;
}

.table td.table-dropdown-open:not(:first-child),
.table th.table-dropdown-open:not(:first-child) {
  position: relative;
}

.table .dropdown-menu[popover] {
  inset: auto;
  margin: 0;
}

.table .dropdown-menu[data-popper-reference-hidden] {
  visibility: hidden;
  pointer-events: none;
}

.table td .fa-solid,
.table td .fa-regular,
.table td .bi {
  line-height: 1;
}

.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 0.35rem 0;
}

.dataTables_wrapper .dataTables_paginate .pagination {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.modal-dialog {
  margin-inline: auto;
}

.modal-body {
  max-height: calc(100vh - 180px);
  overflow-y: auto;
}

.modal-footer,
.modal-body .text-end {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.form-check-input,
.btn,
.form-control,
.form-select {
  min-height: 38px;
}

.form-check-input {
  min-width: 1.15em;
  min-height: 1.15em;
}

.chart-card canvas {
  max-width: 100%;
  min-height: 220px;
}

@media (max-width: 1199.98px) {
  .container-fluid.tableContainer {
    max-width: 100%;
  }

  .c-dashboardInfo {
    flex: 0 0 50%;
    max-width: 50%;
  }

  .c-dashboardInfo .wrap {
    min-height: 180px;
  }
}

@media (max-width: 991.98px) {
  :root {
    --app-nav-height: 64px;
  }

  .app-navbar .navbar-brand img {
    max-height: 38px;
  }

  .app-navbar .container {
    position: relative;
  }

  .app-navbar .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0.75rem;
    width: min(18rem, calc(100vw - 1.5rem));
    margin-top: 0;
    padding: 0.75rem;
    background-color: var(--app-primary);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--app-radius);
    box-shadow: var(--app-shadow-md);
    text-align: right;
  }

  .app-navbar .navbar-nav {
    align-items: flex-end;
    gap: 0.25rem;
  }

  .app-navbar .nav-link,
  .app-navbar .dropdown-item {
    padding: 0.65rem 0.75rem;
    text-align: right;
  }

  .app-lang-nav {
    margin-left: 0;
  }

  .app-navbar .dropdown-menu {
    border: 0;
    box-shadow: none;
    margin-top: 0.25rem;
    width: 100%;
    min-width: 0;
    background-color: rgba(0, 0, 0, 0.08) !important;
  }

  .page-title,
  h5.text-primary {
    font-size: 1.05rem;
    line-height: 1.4;
  }

  .modal-dialog,
  .modal-lg,
  .modal-xl {
    max-width: calc(100% - 1.5rem);
  }
}

@media (max-width: 767.98px) {
  :root {
    --app-nav-height: 58px;
  }

  body {
    font-size: 0.925rem;
  }

  .container-fluid.tableContainer {
    margin-top: calc(var(--app-nav-height) + 18px);
    padding-inline: 0.75rem;
  }

  .c-dashboardInfo {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .c-dashboardInfo .wrap {
    min-height: 132px;
    padding: 22px 16px 18px;
  }

  .c-dashboardInfo h1 {
    font-size: 1.55rem;
    margin-bottom: 0.75rem !important;
  }

  .c-dashboardInfo__title,
  .c-dashboardInfo__subInfo {
    font-size: 0.9rem;
  }

  .c-dashboardInfo__count {
    font-size: 2rem;
    line-height: 2.4rem;
  }

  .table-responsive {
    border-radius: var(--app-radius-sm);
    margin-inline: -0.25rem;
  }

  .table {
    min-width: 720px;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.55rem;
    max-width: 16rem;
    font-size: 0.8rem;
  }

  .dataTables_wrapper > .row:first-child,
  .dataTables_wrapper > .row:last-child {
    padding: 0.5rem 0.75rem;
  }

  .dataTables_wrapper .row > div {
    width: 100%;
  }

  .dataTables_wrapper .dataTables_length,
  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate {
    text-align: left !important;
  }

  .dataTables_wrapper .dataTables_filter label,
  .dataTables_wrapper .dataTables_length label {
    display: grid;
    gap: 0.35rem;
    width: 100%;
  }

  .dataTables_wrapper .dataTables_filter input,
  .dataTables_wrapper .dataTables_length select {
    margin-left: 0;
    width: 100%;
  }

  .modal-dialog,
  .modal-lg,
  .modal-xl {
    max-width: 100%;
    margin: 0.5rem;
  }

  .modal-content {
    max-height: calc(100vh - 1rem);
  }

  .modal-body {
    max-height: calc(100vh - 145px);
    padding: 1rem;
  }

  .modal-header {
    padding: 0.75rem 1rem;
  }

  .modal-title {
    font-size: 1rem !important;
    line-height: 1.35;
  }

  .modal-body .text-end,
  .modal-footer {
    justify-content: stretch;
  }

  .modal-body .text-end .btn,
  .modal-footer .btn {
    flex: 1 1 140px;
  }

  .btn {
    min-height: 42px;
  }

  .floating-button {
    right: 18px;
    bottom: 18px;
  }

  .btn-floating {
    width: 48px;
    height: 48px;
  }

  .chart-card {
    width: 100%;
  }

  .chart-card .card-body {
    padding: 0.75rem;
  }

  .chart-card canvas {
    min-height: 190px;
  }
}

@media (max-width: 575.98px) {
  .app-navbar .container {
    padding-inline: 0.75rem;
  }

  .app-navbar .navbar-brand img {
    max-height: 34px;
  }

  .container-fluid.tableContainer {
    padding-inline: 0.5rem;
  }

  .row {
    --bs-gutter-x: 0.75rem;
  }

  .page-title,
  h5.text-primary {
    font-size: 0.98rem;
  }

  .form-control,
  .form-select {
    font-size: 16px;
  }

  .c-dashboardInfo .wrap {
    min-height: 118px;
  }

  .table {
    min-width: 660px;
  }

  .table th,
  .table td {
    max-width: 13rem;
  }
}

.app-list-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.app-create-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  max-width: 100%;
  white-space: normal;
}

.app-list-toolbar .app-create-action,
.app-list-toolbar .app-table-filters summary {
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.app-list-toolbar .app-table-filters:not([open]) { flex: 0 1 auto; }

.app-toolbar-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  order: 1;
  min-height: 44px;
  max-width: 100%;
  padding: 0.5rem 0.25rem;
  color: var(--app-primary);
  font-size: 0.875rem;
  line-height: 1.5;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

.app-toolbar-link i { flex-shrink: 0; }
.app-toolbar-link:focus-visible { outline: 2px solid var(--app-primary); outline-offset: 3px; }

body :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid #005a6a !important;
  outline-offset: 3px;
  box-shadow: 0 0 0 5px #fff;
}
.app-skip-link { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 2000; transform: translateY(-200%); padding: 0.75rem 1rem; background: #fff; color: #005a6a; }
.app-skip-link:focus { transform: translateY(0); }
.app-record-navigation { display: flex; align-items: center; min-height: 44px; }
.app-record-navigation a { min-height: 44px; display: inline-flex; align-items: center; gap: 0.5rem; }

.app-checksheet-tabs { gap: 0.25rem; flex-wrap: wrap; }
.app-checksheet-tabs .nav-link { min-height: 44px; color: var(--app-primary); }
.app-checksheet-project-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.app-checksheet-project-filter .form-select { flex: 0 1 24rem; width: auto; min-width: 0; min-height: 44px; }
.app-checksheet-project-filter .app-icon-button { width: 44px; height: 44px; }

.app-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  max-width: 100%;
  padding: 0.3rem 0.45rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: normal;
}
.app-status-badge i { flex-shrink: 0; }
.app-due-badge { display: flex; align-items: center; gap: 0.35rem; width: fit-content; max-width: 100%; margin-top: 0.35rem; padding: 0.25rem 0.4rem; border-radius: 4px; font-size: 0.8rem; white-space: normal; overflow-wrap: normal; word-break: normal; }
.app-due-badge i { flex-shrink: 0; }
.app-due-badge--overdue { background: #fce5e7; color: #862331; }
.app-due-badge--today { background: #fff3cd; color: #6b4d00; }
.app-due-filter { display: flex; align-items: center; gap: 0.5rem; max-width: 100%; font-size: 0.875rem; }
.app-due-filter .form-select { width: auto; min-width: 0; min-height: 44px; max-width: 100%; }
@media (max-width: 767.98px) {
  .app-due-filter { flex-basis: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
  .app-due-filter .form-select { width: 100%; }
}
.app-punchlist-form .form-check-input { width: 1.25rem; height: 1.25rem; }
.app-feedback-container { width: min(calc(100% - 2rem), 900px); margin: 1rem auto; }
.app-action-feedback { display: flex; align-items: flex-start; gap: 0.75rem; border-radius: 6px; padding: 1rem 3.5rem 1rem 1rem; }
.app-action-feedback > i { flex-shrink: 0; }
.app-action-feedback > div { min-width: 0; overflow-wrap: anywhere; }
.app-action-feedback strong { font-size: 0.9rem; }
.app-action-feedback p { margin: 0.25rem 0 0; }
.app-action-feedback .btn-close { width: 44px; height: 44px; padding: 0; top: 0.5rem; right: 0.5rem; }
.app-table-empty { display: grid; justify-items: center; gap: 0.75rem; padding: 1.5rem 0.5rem; white-space: normal; }
.app-table-empty > i { font-size: 1.5rem; color: var(--app-muted); }
.app-table-empty strong { font-size: 1rem; overflow-wrap: anywhere; }
.app-table-empty .btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; white-space: normal; }
.app-status-badge--not_started { background: #edf0f2; color: #46515b; border-color: #d5dade; }
.app-status-badge--in_progress { background: #fff3cd; color: #6b4d00; border-color: #ead58b; }
.app-status-badge--completed { background: #d1e7dd; color: #125837; border-color: #a9cdbb; }
.app-status-badge--accepted { background: #e0efff; color: #124e87; border-color: #b9d4ef; }

.app-checksheet-editor .modal-dialog { max-width: 760px; margin: 1rem auto; height: calc(100% - 2rem); }
.app-checksheet-form .modal-body { padding: 1rem 1.25rem; min-height: 0; overflow-y: auto; }
.app-checksheet-form .modal-header { gap: 0.75rem; }
.app-checksheet-form .modal-title { overflow-wrap: anywhere; }
.app-checksheet-form .modal-footer { flex-shrink: 0; gap: 0.5rem; background: var(--app-surface); }
.app-checksheet-form .modal-footer .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; }
.app-form-section { margin: 0 0 1rem; padding: 0 0 1rem; border: 0; border-bottom: 1px solid var(--app-border); min-width: 0; }
.app-form-section:last-child { margin-bottom: 0; border-bottom: 0; padding-bottom: 0; }
.app-form-section legend { float: none; width: auto; margin-bottom: 0.75rem; font-size: 0.95rem; font-weight: 600; color: var(--app-primary); }
.app-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1rem; }
.app-form-field { min-width: 0; display: grid; gap: 0.35rem; align-content: start; }
.app-form-field--wide { grid-column: 1 / -1; }
.app-form-field label { font-size: 0.875rem; overflow-wrap: anywhere; }
.app-checksheet-form .form-control, .app-checksheet-form .form-select { min-height: 44px; width: 100%; margin-bottom: 0; }
.app-checksheet-form textarea { resize: vertical; }
.app-required-mark, .app-field-error { color: #a12631; }
.app-field-error { font-size: 0.8rem; overflow-wrap: anywhere; }
.app-checksheet-form [aria-invalid="true"] { border-color: #a12631; }
.app-checksheet-form [hidden] { display: none !important; }
.app-editor-saving { margin-inline-end: auto; color: var(--app-muted); font-size: 0.875rem; }

@media (max-width: 575.98px) {
  .app-checksheet-project-filter label { flex-basis: 100%; }
  .app-checksheet-project-filter .form-select { flex: 1 1 0; }
  .app-checksheet-editor .modal-dialog { margin: 0.75rem; max-width: none; height: calc(100% - 1.5rem); }
  .app-checksheet-form .modal-body { padding: 1rem; }
  .app-form-grid { grid-template-columns: minmax(0, 1fr); }
  .app-editor-saving { flex-basis: 100%; }
}

.app-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 6px;
  vertical-align: middle;
}

.app-row-actions { display: inline-block; }
.app-row-actions .dropdown-item { display: flex; align-items: center; gap: 0.5rem; min-height: 44px; }
.app-row-details { margin-inline-start: 0.25rem; }
.app-row-details[hidden], .app-table-filters[hidden] { display: none !important; }

.table.app-responsive-table { min-width: 0 !important; width: 100% !important; }
.table-responsive.app-responsive-container { margin-inline: 0; }
.app-responsive-table .app-actions-cell { white-space: nowrap; }
.app-responsive-table thead .app-actions-cell { white-space: normal; }
.app-responsive-table .app-actions-cell > .dropdown > button { min-width: 44px; min-height: 44px; }
.app-responsive-table .app-actions-cell > .dropdown { display: inline-flex; vertical-align: middle; }
.app-responsive-table .app-actions-cell > .app-row-details { width: 44px; height: 44px; vertical-align: middle; }
.app-responsive-table .app-actions-cell .btn-sm span { display: inline-block; max-width: 7rem; white-space: normal; overflow-wrap: anywhere; }
.app-responsive-table tfoot .form-control,
.app-responsive-table tfoot .form-select { min-width: 0; }
.app-responsive-table .app-column-id { min-width: 6.5rem; }
.app-responsive-table .app-column-status { min-width: 9.5rem; }
.app-responsive-table .app-column-person { min-width: 8rem; }
.app-responsive-table .app-column-date { min-width: 10rem; }
.app-responsive-table .app-column-id,
.app-responsive-table .app-column-status,
.app-responsive-table .app-column-person,
.app-responsive-table .app-column-date,
.app-responsive-table .app-column-description { box-sizing: border-box; }
.app-responsive-table tbody .app-column-id,
.app-responsive-table tbody .app-column-date,
.app-responsive-table .app-column-id a,
.app-responsive-table .app-column-status .app-status-badge {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
}
.app-responsive-table .app-column-status .app-status-badge { max-width: none; }
@media (min-width: 768px) {
  .app-responsive-table .app-column-description { min-width: 14rem; }
}
.app-responsive-table.dtr-column > tbody > tr > td::before { display: none !important; }
.app-responsive-table > tbody > tr.child > td { position: static; white-space: normal; background: #f3f7f8; }
.app-responsive-table > tbody > tr.child ul.dtr-details { display: block; width: 100%; }
.app-responsive-table > tbody > tr.child ul.dtr-details > li { display: grid; grid-template-columns: minmax(100px, 35%) minmax(0, 1fr); gap: 0.75rem; padding: 0.6rem 0; }
.app-responsive-table .dtr-title,
.app-responsive-table .dtr-data { min-width: 0; white-space: normal; overflow-wrap: anywhere; }
.app-responsive-table .dtr-data img { max-width: 100%; height: auto; }

#punchlist_table [class*="app-column-punch-"] { box-sizing: border-box; }
#punchlist_table .app-column-punch-tools { min-width: 7rem; }
#punchlist_table .app-column-punch-source { min-width: 7rem; }
#punchlist_table .app-column-punch-description { min-width: 20rem; overflow-wrap: anywhere; word-break: normal; }
#punchlist_table .app-column-punch-person { min-width: 12rem; overflow-wrap: anywhere; word-break: normal; }
#punchlist_table .app-column-punch-date { min-width: 13rem; }
#punchlist_table .app-column-punch-category { min-width: 6rem; }
#punchlist_table thead th { white-space: normal; line-height: 1.4; text-align: start; }
#punchlist_table > tbody > tr:not(.child) > td { padding-block: 0.8rem; vertical-align: top; line-height: 1.5; }
.app-punchlist-row-tools { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.app-punchlist-row-tools > .dropdown { display: inline-flex; }
.app-punchlist-row-tools .app-row-details { width: 44px; height: 44px; margin: 0; flex-shrink: 0; }
.app-punchlist-row-tools .app-punchlist-action { min-width: 52px; height: 44px; min-height: 44px; padding: 0.4rem; white-space: nowrap; }
.app-punchlist-id { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px; font-weight: 600; color: var(--app-primary); }
#punchlist_table .app-column-punch-date .app-due-badge { font-size: 0.75rem; line-height: 1.4; padding: 0.2rem 0.35rem; }
#punchlist_table > tbody > tr.child > td { padding: 1rem; }
#punchlist_table ul.dtr-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem 1.5rem; }
#punchlist_table ul.dtr-details > li { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 0.3rem; padding: 0 0 0.65rem; min-width: 0; }
#punchlist_table .dtr-title { font-size: 0.75rem; font-weight: 600; color: var(--app-muted); }
#punchlist_table .dtr-data { font-size: 0.875rem; line-height: 1.5; }
#punchlist_table .app-punch-sign { min-height: 44px; font-size: 0.875rem; }
.app-punch-signature { font-size: 0.875rem; font-weight: 500; }
.app-punch-meta, .app-empty-value { font-size: 0.8rem; color: var(--app-muted); }
.app-constraint-value { display: inline-flex; align-items: center; gap: 0.35rem; }
@media (max-width: 1199.98px) {
  #punchlist_table ul.dtr-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
  #punchlist_table .app-column-punch-description { min-width: 8.25rem; width: auto !important; }
  #punchlist_table .app-column-punch-tools { width: 7rem !important; }
  #punchlist_table ul.dtr-details { grid-template-columns: minmax(0, 1fr); }
}

.app-table-filters {
  flex: 1 1 16rem;
  min-width: 0;
  max-width: 100%;
}

.app-table-filters summary {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--app-border-strong);
  border-radius: 6px;
  color: var(--app-primary);
  cursor: pointer;
}

.app-table-filters summary::after { content: '+'; }
.app-table-filters[open] summary::after { content: '-'; }
.app-table-filters__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 0.75rem; padding: 0.75rem 0; }
.app-table-filters__fields label { display: grid; gap: 0.35rem; min-width: 0; color: var(--app-primary); font-size: 0.85rem; }
.app-table-filters__fields input, .app-table-filters__fields select { width: 100%; min-height: 44px; }

@media (max-width: 767.98px) {
  .app-responsive-table.app-mobile-table tfoot { display: none; }
  .app-responsive-table th, .app-responsive-table td { padding: 0.65rem 0.4rem; overflow-wrap: anywhere; }
  .app-responsive-table td:not(.app-actions-cell) a { display: inline-block; padding-block: 0.35rem; }
  .app-responsive-table .app-icon-button { width: 44px; height: 44px; }
  .app-responsive-table > tbody > tr.child ul.dtr-details > li { grid-template-columns: minmax(90px, 38%) minmax(0, 1fr); }
  .app-list-toolbar .app-table-filters[open] { flex-basis: 100%; }
  .app-responsive-container .dataTables_wrapper .dataTables_length label { display: inline-flex; align-items: center; gap: 0.5rem; }
  .app-responsive-container .dataTables_wrapper .dataTables_length select { width: auto; min-height: 44px; }
  .app-responsive-container .dataTables_wrapper .dataTables_filter { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: end; gap: 0.5rem; }
  .app-responsive-container .app-clear-filters { width: 44px; height: 44px; margin: 0; padding: 0; }
  .app-responsive-container .app-clear-filters__label { display: none; }
}

.app-clear-filters {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0.5rem 0.75rem;
  white-space: nowrap;
}

.dataTables_wrapper .app-clear-filters { min-height: 44px; }

.dataTables_wrapper .dataTables_filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dataTables_wrapper .dataTables_filter input { height: 44px; }

.dataTables_wrapper tfoot input,
.dataTables_wrapper tfoot select {
  width: 100%;
  min-width: 8rem;
}

.has-checksheet-save-bar { padding-bottom: calc(var(--checksheet-save-bar-height, 5rem) + 1rem); }

.checksheet-save-bar {
  position: fixed;
  z-index: 1030;
  inset: auto 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.25rem calc(0.75rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--app-border);
  background: var(--app-surface);
  box-shadow: 0 -3px 12px rgba(0, 0, 0, 0.08);
  color: var(--app-muted);
  font-size: 0.9rem;
}

.checksheet-save-bar [role="status"] {
  min-width: 0;
  max-height: 8rem;
  overflow-y: auto;
  overflow-wrap: anywhere;
}

.checksheet-save-bar .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  gap: 0.5rem;
  min-width: 7rem;
  min-height: 44px;
}

.checksheet-save-bar [hidden] { display: none !important; }
.checksheet-save-bar[data-state="dirty"] { color: #705200; }
.checksheet-save-bar[data-state="saved"] { color: #146c43; }
.checksheet-save-bar[data-state="error"] { color: #b02a37; }

@media (max-width: 575.98px) {
  .checksheet-save-bar { padding-inline: 0.75rem; gap: 0.5rem; }
}

/* Login page */
.tableContainer.login-container {
  margin-top: 0 !important;
  padding: 0 !important;
}

.login-page {
  position: relative;
  display: grid;
  box-sizing: border-box;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--app-nav-height);
  isolation: isolate;
  overflow: hidden;
}

.login-page::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background: url("../assets/smartccm_background.6039012e334b.jpeg") center / cover no-repeat;
}

.login-page::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.08) 30%, rgba(0, 83, 94, 0.3) 100%);
}

.login-page__inner {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: min(1180px, 100%);
  margin-inline: auto;
  padding: clamp(1rem, 4vw, 3rem);
}

.login-panel {
  width: min(100%, 420px);
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--app-radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 45px rgba(13, 47, 53, 0.24);
  backdrop-filter: blur(8px);
}

.login-brand {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.login-brand__image {
  display: block;
  width: min(100%, 290px);
  height: auto;
}

.login-subtitle {
  margin: 0 0 1.5rem;
  color: var(--app-muted);
  font-size: 0.95rem;
  text-align: center;
}

.login-form .form-label {
  margin-bottom: 0.4rem;
  color: var(--app-primary);
  font-size: 0.9rem;
}

.login-control {
  min-height: 46px;
  border-color: var(--app-border-strong);
  color: var(--app-text);
}

.login-control:focus {
  border-color: var(--app-primary);
  box-shadow: var(--app-focus-ring);
}

.login-password-toggle {
  width: 48px;
  border: 1px solid var(--app-border-strong);
  border-left: 0;
  color: var(--app-primary);
  background: #fff;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible {
  border-color: var(--app-primary);
  color: var(--app-accent-dark);
  background: var(--app-primary-soft);
}

.login-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 46px;
}

.login-form .errorlist {
  margin: 0.35rem 0 0;
  padding: 0;
  list-style: none;
}

@media (max-width: 767.98px) {
  .login-page::after {
    background: rgba(0, 71, 80, 0.24);
  }

  .login-page__inner {
    justify-content: center;
    padding: 1rem;
  }

  .login-panel {
    padding: 1.5rem;
  }
}

@media (max-height: 650px) {
  .login-page__inner {
    align-items: flex-start;
    padding-block: 1rem;
  }

  .login-panel {
    padding-block: 1.25rem;
  }

  .login-brand__image {
    width: min(100%, 240px);
  }

  .login-subtitle {
    margin-bottom: 1rem;
  }
}
