/******************
start of general tags
*******************/
body {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  margin: 0px;
  padding-top: 3px;
  padding-right: 5px;
  padding-bottom: 3px;
  padding-left: 3px;
}
.footer {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 12px;
  color: #999999;
  margin: 0;
  padding: 0px;
}
P {
  margin: 0px;
}
h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  text-transform: none;
  color: #081963;
  font-weight: bold;
  display: inherit;
  margin: 0px;
}
h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  text-transform: none;
  color: #000066;
  font-weight: bold;
  display: inherit;
  margin: 0px;
  display: inline;
  background: #e8e8e8;
  display: block;
}
h3 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  text-transform: none;
  color: #000066;
  font-weight: bold;
  display: inline;
  margin: 0px;
}
.warning {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #ff0000;
  font-weight: bold;
}
.info {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  color: #009933;
  font-weight: bold;
}
/******************
end of general tags
*******************/

/******************
start of custom tags
*******************/

table.table_general {
  border: #cccccc solid 1px;
  text-indent: 5px;
  padding-left: 2px;
  padding-right: 2px;
}
table.table_general th {
  background-color: #000066;
  color: #ffffff;
  font-size: 14px;
  font-weight: bold;
  white-space: nowrap;
  font-family: Arial, Helvetica, sans-serif;
  margin: 5px;
  border: none;
  text-indent: 5px;
  padding-left: 2px;
  padding-right: 2px;
}
table.table_general td {
  color: #000000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 13px;
  border: none;
  padding-left: 2px;
  padding-right: 2px;
}
.box_form_help {
  padding: 5px;
  color: #000000;
  font-size: 13px;
  text-align: left;
  border-style: solid;
  border-width: 1px;
  border-color: #33cc33;
  background-color: #b6edb6;
  display: block;
  margin-top: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  margin-left: 0px;
  max-width: 400px;
}
.box_help {
  padding: 5px;
  color: #000000;
  font-size: 13px;
  text-align: left;
  border-style: solid;
  border-width: 1px;
  border-color: #33cc33;
  background-color: #b6edb6;
  display: block;
  margin-top: 5px;
  margin-right: 5px;
  margin-bottom: 5px;
  margin-left: 0px;
  max-width: 400px;
  float: right;
}
a.tabs,
a.tabs:active,
a.tabs:visited {
  width: 54px;
  height: 20px;
  display: block;
  background: url(images/but_bkg.gif);
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  vertical-align: middle;
  padding: 1px;
  text-decoration: none;
  padding-top: 2px;
}
a.tabs:hover {
  width: 54px;
  height: 20px;
  display: block;
  background: url(images/but_bkg_active.gif);
  text-align: center;
  color: #ffffff;
  font-size: 13px;
  vertical-align: middle;
  padding: 1px;
  text-decoration: none;
  padding-top: 2px;
}
#skel_title {
  position: absolute;
  width: 100%;
  height: 17px;
  z-index: 1;
  left: 0;
  top: 0;
  background-color: #0d165b;
  font-family: Arial, Helvetica, sans-serif;
  color: #ffffff;
  font-weight: bold;
  text-align: right;
  padding: 3px;
}

#invoice {
  font-family: Verdana, Geneva, sans-serif;
}
#invoice #company {
  font-size: 18px;
  font-weight: bold;
  height: 71px;
  margin-top: 12px;
}

#invoice #header {
  margin-top: 20px;
  margin-bottom: 20px;
}

#invoice #body {
  margin-top: 20px;
  top: 0px;
  margin-bottom: 20px;
}

@media print {
  #tools {
    display: none;
  }
}

/* Form elements with increased font sizes */
input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
input[type="tel"],
input[type="url"],
input[type="search"],
input[type="date"],
input[type="time"],
input[type="datetime-local"],
textarea {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 4px 6px;
  border: 1px solid #cccccc;
}

/* Bootstrap select styling for all selects */
select {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 16px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
  appearance: none;
}

select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

select:disabled {
  background-color: #e9ecef;
  opacity: 1;
}

input[type="submit"],
input[type="button"],
input[type="reset"],
button {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  padding: 6px 12px;
}

/* Labels and form text */
label {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

/* Form legends */
legend {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  font-weight: bold;
}

/* Option elements */
option {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
}

/* Enhanced multi-select styling */
select[multiple].form-select {
  background-image: none;
  padding: 0.375rem 0.75rem;
  height: auto;
  min-height: 200px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
}

select[multiple].form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

select[multiple].form-select option {
  padding: 0.25rem 0.5rem;
  margin: 1px;
  border-radius: 0.25rem;
  font-size: 14px;
}

select[multiple].form-select option:checked {
  background-color: #0d6efd;
  color: white;
}

/* ----- Compact layout: job sheet + mods in iframe (body_mods only) ----- */
body.body_mods {
  font-size: 13px;
  line-height: 1.35;
  padding-top: 2px;
  padding-left: 2px;
  padding-right: 4px;
  padding-bottom: 2px;
}

body.body_mods h1 {
  font-size: 17px;
  margin: 0 0 4px 0;
}

body.body_mods h2 {
  font-size: 14px;
  padding: 4px 6px;
  margin: 8px 0 6px 0;
}

body.body_mods h3 {
  font-size: 13px;
  margin: 4px 0 2px 4px;
}

body.body_mods .box_help {
  margin-top: 4px;
  margin-bottom: 6px;
  font-size: 12px;
}

/* Tighter data tables (NeXT / tNG lists inside mods) */
body.body_mods .KT_tngtable {
  margin-bottom: 0.45rem;
}

body.body_mods .KT_tngtable caption,
body.body_mods .KT_tngtable > tbody > tr > td,
body.body_mods .KT_tngtable > thead > tr > th,
body.body_mods .KT_tngtable > tfoot > tr > td,
body.body_mods .KT_tngtable > tfoot > tr > th {
  padding: 0.35rem 0.45rem;
  font-size: 12px;
}

body.body_mods .KT_tngtable th,
body.body_mods .KT_tngtable td.KT_th {
  padding: 0.4rem 0.45rem;
  font-size: 12px;
}

body.body_mods .KT_tngtable input[type="text"],
body.body_mods .KT_tngtable input[type="number"],
body.body_mods .KT_tngtable select,
body.body_mods .KT_tngtable textarea {
  font-size: 13px;
  padding: 0.2rem 0.45rem;
}

body.body_mods .KT_tng,
body.body_mods .KT_tng textarea {
  font-size: 12px;
}

body.body_mods .KT_tngtable,
body.body_mods .KT_tng .KT_options {
  margin: 2px;
}

body.body_mods .KT_topbuttons,
body.body_mods .KT_bottombuttons {
  min-height: 14px;
  padding: 0;
}

body.body_mods input[type="submit"],
body.body_mods input[type="button"],
body.body_mods button {
  font-size: 13px;
  padding: 4px 10px;
}
