:root {
  /* O'Sullivan Darcy + Lean BPI form theme */
  --osd-navy: #0A2E5C;
  --osd-navy-deep: #061E3F;
  --osd-navy-mid: #1E4A7A;
  --osd-blue-soft: #E8EEF5;
  --osd-orange: #E85D04;
  --osd-orange-hover: #CF4F00;
  --osd-orange-soft: #FFF3EB;
  --osd-surface: #EEF1F5;
  --osd-border: #C9D5E3;
  --osd-text: #0F172A;
  --osd-muted: #64748B;
  --osd-white: #FFFFFF;
}

body {
  background-color: var(--osd-surface) !important;
  color: var(--osd-text);
}
input:read-only,
textarea:read-only {
  background-color: #e4e9ef !important;
}
.logoForm {
  width: 30%;
  display: block;
  margin: 0px auto;
}
@media (min-width: 576px) {
  .bgSquare {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .bgSquare {
    max-width: 920px;
  }
}
@media (min-width: 992px) {
  .bgSquare {
    max-width: 1200px;
  }
}
@media (min-width: 1200px) {
  .bgSquare {
    max-width: 1340px;
  }
}
.site-info a img {
  width: 250px;
  margin: 0 auto;
  display: block;
}
.entry-form-sec {
  background-color: var(--osd-surface);
  padding: 50px 0;
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.entry-form h2 {
  color: var(--osd-navy);
  padding-bottom: 30px;
  font-weight: 700;
}
.entry-form {
  position: relative;
  z-index: 1;
  background: var(--osd-white);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(10, 46, 92, 0.12);
  border: 1px solid var(--osd-border);
  border-bottom: 3px solid var(--osd-orange);
  padding: 30px;
  width: 70%;
  margin: 0 auto;
}
.bgSquare {
  background: linear-gradient(135deg, var(--osd-navy) 0%, var(--osd-navy-mid) 55%, var(--osd-orange) 160%);
  height: 131px;
  width: 70%;
  position: absolute;
  z-index: -1;
  top: 185px;
  left: 0;
  transform: skewY(-11deg);
  margin: 0 auto;
  right: 0;
  opacity: 0.92;
}
.entry-form .form-control:focus,
.entry-form .form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(232, 93, 4, 0.18);
  border-color: var(--osd-orange);
  background-color: var(--osd-white);
}
.entry-form .form-control,
.entry-form select {
  background-color: var(--osd-white);
  font-size: 16px;
  color: var(--osd-text);
  font-weight: 400;
  border: 1px solid var(--osd-border);
  height: 40px;
}
.entry-form label {
  color: var(--osd-text);
  font-size: 16px;
  font-weight: 600;
  padding-bottom: 6px;
}
.entry-form button,
.btn:focus {
  background-color: var(--osd-navy);
  color: var(--osd-white);
  font-weight: 600;
  font-size: 16px;
  height: 40px;
  line-height: 20px;
  border: 0;
  width: 100%;
  outline: 0 !important;
  box-shadow: none !important;
}
.btn:active:focus {
  box-shadow: none;
}
.btn:active,
.btn:hover {
  background-color: var(--osd-navy-deep);
  color: var(--osd-white);
}
.customer-panel,
.job-select-panel,
.select-order-panel,
.other-job-select-panel {
  display: none;
}
#date-picker {
  left: 0;
  right: 0;
  width: 300px;
  margin: 0 auto;
  max-width: unset;
}
.select2-hidden-accessible {
  display: none;
}
.select2-container--default .select2-selection--single,
.select2-container .select2-selection--single {
  border: 1px solid var(--osd-border);
  background-color: var(--osd-white);
  height: 40px;
}
.select2-container {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
}
.select2-container--default .select2-selection--single,
.select2-container .select2-selection--single {
  border-radius: 0.375rem;
  font-size: 15px;
  color: var(--osd-text);
  font-weight: 400;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 38px;
  background: none;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 38px !important;
  font-size: 15px;
  color: var(--osd-text);
  padding-left: 10px;
  padding-right: 28px;
}
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default.select2-container--open .select2-selection--single {
  border-color: var(--osd-orange);
}
.bb-1 {
  border-bottom: 2px solid var(--osd-orange);
}
.bt-1 {
  border-top: 2px solid var(--osd-navy);
}
.add-more {
  width: auto !important;
  float: right;
  background: var(--osd-orange) !important;
  color: var(--osd-white) !important;
}
.add-more:hover {
  background: var(--osd-orange-hover) !important;
}
.remove-item {
  background: #dc2626;
  padding: 0px 6px;
  font-size: 1.3rem;
  color: #fff;
  border-radius: 6px;
  cursor: context-menu;
}
.item {
  position: relative;
}
h3 {
  color: var(--osd-navy);
}
.alert-danger {
  color: red !important;
}
.danger {
  border: 1px solid red !important;
}
.table-checkbox input {
  padding: 0;
  height: initial;
  width: initial;
  margin-bottom: 0;
  display: none;
  cursor: pointer;
}

.table-checkbox label {
  position: relative;
  cursor: pointer;
}

.table-checkbox label:before {
  content: "";
  -webkit-appearance: none;
  background-color: transparent;
  border: 2px solid var(--osd-navy);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05),
    inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
  padding: 8px;
  display: inline-block;
  position: relative;
  vertical-align: middle;
  cursor: pointer;
  margin-right: 5px;
}

.table-checkbox input:checked + label:after {
  content: "";
  display: block;
  position: absolute;
  top: 7px;
  left: 7px;
  width: 6px;
  height: 12px;
  border: solid var(--osd-navy);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.entry-form table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}
.form-tabel {
  border: 1px solid var(--osd-border);
}
.form-tabel thead tr:nth-child(even) {
  background-color: var(--osd-navy-mid);
}
.entry-form td,
.entry-form table th {
  text-align: center;
  padding: 8px 6px;
  font-size: 14px;
  vertical-align: middle;
}
.form-tabel td:last-child input {
  text-align: center;
}
.form-tabel td label {
  padding: 0;
  width: auto;
  margin: 0;
}
.form-tabel thead {
  position: sticky;
  top: -1px;
  background-color: var(--osd-navy);
  color: #fff;
  z-index: 9;
  border-bottom: 2px solid var(--osd-orange);
}

/* Time Management entry row: keep Select2 inside columns */
.job-table th:nth-child(1),
.job-table td:nth-child(1) {
  width: 38%;
}
.job-table th:nth-child(2),
.job-table td:nth-child(2) {
  width: 24%;
}
.job-table th:nth-child(3),
.job-table td:nth-child(3) {
  width: 16%;
}
.job-table th:nth-child(4),
.job-table td:nth-child(4) {
  width: 10%;
}
.job-table th:nth-child(5),
.job-table td:nth-child(5) {
  width: 12%;
}
.job-table td .select-wrap {
  width: 100%;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}
.job-table td .select2-container {
  width: 100% !important;
  max-width: 100%;
  margin: 0;
  text-align: left;
}
.job-table .select2-container--default .select2-selection--single {
  height: 36px;
  border: 1px solid var(--osd-border);
}
.job-table
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 34px !important;
  font-size: 13px;
  padding-left: 8px;
  padding-right: 24px;
}
.job-table
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  height: 34px;
  width: 22px;
}
.job-table td .memo-checkbox {
  width: 20px;
  height: 20px;
  margin: 0;
  vertical-align: middle;
  cursor: pointer;
}
.job-table td .row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.job-table td .row-actions .fa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  margin: 0;
}
.select2-container--open {
  z-index: 20;
}
.select2-dropdown {
  border-color: var(--osd-border);
  font-size: 13px;
}
.entry-form button.bootstrap-touchspin-down,
.entry-form button.bootstrap-touchspin-up {
  border-radius: 0;
}
footer {
  background-color: var(--osd-surface);
  border-top: 1px solid var(--osd-border);
}
footer img {
  width: 200px;
  max-width: 70%;
  height: auto;
  margin-bottom: 20px;
}
.site-info {
  text-align: center;
  padding: 20px;
}
.site-info p {
  font-size: 14px;
  color: var(--osd-muted);
  margin: 0;
}
.site-info p a {
  text-decoration: none;
  color: var(--osd-navy);
  font-weight: 600;
}
.site-info p a:hover {
  color: var(--osd-orange);
}
@media only screen and (max-width: 776px) {
  .logoForm {
    width: 100%;
  }
  .entry-form {
    width: 100%;
    padding: 10px;
  }
  .bgSquare {
    display: none;
  }
  .entry-form table td:last-child {
    width: 30%;
  }
}
@media only screen and (max-width: 576px) {
  .entry-form-sec {
    padding: 10px 0;
  }
  .entry-form button.bootstrap-touchspin-down,
  .entry-form button.bootstrap-touchspin-up {
    display: none;
  }
  .responsive-tbl {
    overflow-x: scroll;
  }
}
.logo-div {
  background-color: transparent;
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
}

.btn-success {
  background-color: #15803d !important;
}

.fa-trash-can {
  color: #dc2626;
  text-align: right;
}
.fa-trash-can:hover {
  cursor: pointer;
}

.active {
  color: #15803d;
  font-size: 18px !important;
}
.products tr {
  border-bottom-width: 1px;
}
.goods-in-product tr {
  border-bottom-width: 1px;
}

.shop-form-nav {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  gap: 6px;
  margin: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.shop-form-nav a {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid var(--osd-navy);
  color: var(--osd-navy);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  background: var(--osd-white);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.shop-form-nav a:hover {
  background: var(--osd-blue-soft);
  color: var(--osd-navy-deep);
  border-color: var(--osd-navy);
}
.shop-form-nav a.is-active {
  background: var(--osd-navy);
  border-color: var(--osd-navy);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--osd-orange);
}
