/* SCI CGI - tema visual central
   Carregado por JCwvwCgi/Cab_HP_html().
   Mantem compatibilidade com paginas legadas e padroniza PC/tablet/celular.
*/
:root {
  --sci-bg: #f3f6fa;
  --sci-surface: #ffffff;
  --sci-surface-2: #f8fafc;
  --sci-primary: #1f5f99;
  --sci-primary-dark: #15466f;
  --sci-primary-soft: #eaf2f9;
  --sci-accent: #0f766e;
  --sci-success: #15803d;
  --sci-danger: #b42318;
  --sci-warning: #b54708;
  --sci-text: #182230;
  --sci-muted: #667085;
  --sci-border: #d6dee8;
  --sci-border-strong: #b8c5d3;
  --sci-shadow: 0 8px 24px rgba(16, 24, 40, .08);
  --sci-radius: 12px;
  --sci-radius-sm: 8px;
  --sci-control-h: 38px;
  --sci-font: Inter, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
}

html { -webkit-text-size-adjust: 100%; }

body.sci-cgi-page,
body.sci-cgi-page *,
body.sci-cgi-page *::before,
body.sci-cgi-page *::after { box-sizing: border-box; }

body.sci-cgi-page {
  margin: 0;
  min-height: 100vh;
  padding: 14px;
  background:
    linear-gradient(180deg, #edf3f8 0, var(--sci-bg) 170px, var(--sci-bg) 100%);
  color: var(--sci-text);
  font-family: var(--sci-font);
  font-size: 14px;
  line-height: 1.45;
}

body.sci-cgi-page > center,
body.sci-cgi-page center {
  width: 100%;
}

body.sci-cgi-page a {
  color: var(--sci-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
body.sci-cgi-page a:hover { color: var(--sci-primary-dark); }

body.sci-cgi-page font { font-family: inherit; }

body.sci-cgi-page input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
body.sci-cgi-page select,
body.sci-cgi-page textarea {
  min-height: var(--sci-control-h);
  max-width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--sci-border-strong);
  border-radius: var(--sci-radius-sm);
  background: #fff;
  color: var(--sci-text);
  font: 500 14px/1.35 var(--sci-font);
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body.sci-cgi-page textarea { min-height: 88px; resize: vertical; }
body.sci-cgi-page input:focus,
body.sci-cgi-page select:focus,
body.sci-cgi-page textarea:focus {
  border-color: var(--sci-primary);
  box-shadow: 0 0 0 3px rgba(31, 95, 153, .14);
}
body.sci-cgi-page input[readonly],
body.sci-cgi-page textarea[readonly] {
  background: #f1f5f9;
  color: #475467;
}
body.sci-cgi-page input[type="radio"],
body.sci-cgi-page input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 0 7px 0 0;
  vertical-align: -3px;
  accent-color: var(--sci-primary);
}

body.sci-cgi-page button,
body.sci-cgi-page input[type="button"],
body.sci-cgi-page input[type="submit"],
body.sci-cgi-page .button {
  min-height: 36px;
  padding: 7px 13px;
  border: 1px solid transparent;
  border-radius: var(--sci-radius-sm);
  background: var(--sci-primary);
  color: #fff;
  font: 700 13px/1.2 var(--sci-font);
  cursor: pointer;
  touch-action: manipulation;
  transition: background .15s ease, border-color .15s ease, transform .05s ease, box-shadow .15s ease;
  -webkit-appearance: none;
  appearance: none;
}
body.sci-cgi-page button:hover,
body.sci-cgi-page input[type="button"]:hover,
body.sci-cgi-page input[type="submit"]:hover,
body.sci-cgi-page .button:hover,
body.sci-cgi-page button:focus-visible,
body.sci-cgi-page input[type="button"]:focus-visible,
body.sci-cgi-page input[type="submit"]:focus-visible,
body.sci-cgi-page .button:focus-visible {
  background: var(--sci-primary-dark);
  box-shadow: 0 0 0 3px rgba(31, 95, 153, .16);
  outline: none;
}
body.sci-cgi-page button:active,
body.sci-cgi-page input[type="button"]:active,
body.sci-cgi-page input[type="submit"]:active,
body.sci-cgi-page .button:active { transform: translateY(1px); }
body.sci-cgi-page button:disabled,
body.sci-cgi-page input:disabled,
body.sci-cgi-page .button:disabled {
  background: #d5dce5;
  border-color: #d5dce5;
  color: #667085;
  cursor: not-allowed;
  opacity: .9;
  box-shadow: none;
}

.sci-card,
.sci-form-card,
.sci-search-card {
  width: min(100%, 980px);
  margin: 14px auto;
  padding: 18px;
  border: 1px solid var(--sci-border);
  border-radius: var(--sci-radius);
  background: var(--sci-surface);
  box-shadow: var(--sci-shadow);
  text-align: left;
}
.sci-search-card { width: min(100%, 720px); }

.sci-form-table {
  width: 100%;
  max-width: 980px;
  margin: 14px auto;
  padding: 8px;
  border: 1px solid var(--sci-border);
  border-radius: var(--sci-radius);
  border-collapse: separate;
  border-spacing: 8px;
  background: var(--sci-surface);
  box-shadow: var(--sci-shadow);
}
.sci-form-table > caption,
.sci-data-table > caption,
.sci-workspace table > caption {
  margin-bottom: 8px;
  padding: 11px 14px;
  border-radius: var(--sci-radius-sm);
  background: var(--sci-primary-soft) !important;
  color: var(--sci-primary-dark) !important;
  font: 700 15px/1.25 var(--sci-font) !important;
  text-align: left;
}
.sci-form-table th {
  padding: 6px 4px;
  color: #344054;
  font: 700 13px/1.35 var(--sci-font);
  text-align: right;
  vertical-align: middle;
}
.sci-form-table td { padding: 5px 4px; vertical-align: middle; }

.sci-inline-info {
  padding: 8px 10px !important;
  border: 1px solid #cbdbea;
  border-radius: var(--sci-radius-sm);
  background: #edf6fb !important;
  color: #294b63;
}

.sci-data-table {
  width: min(100%, 1280px);
  margin: 14px auto;
  border: 1px solid var(--sci-border);
  border-radius: var(--sci-radius);
  border-collapse: separate;
  border-spacing: 0;
  background: var(--sci-surface);
  box-shadow: var(--sci-shadow);
  overflow: hidden;
  font-family: var(--sci-font);
}
.sci-data-table thead th,
.sci-data-table > tbody > tr.sci-table-head > th {
  padding: 9px 10px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.20);
  background: var(--sci-primary) !important;
  color: #fff !important;
  font: 700 12.5px/1.25 var(--sci-font) !important;
  text-align: left;
  vertical-align: middle;
}
.sci-data-table td {
  padding: 8px 10px;
  border-bottom: 1px solid #e7edf3;
  color: var(--sci-text);
  font-family: var(--sci-font);
  vertical-align: middle;
}
.sci-data-table tbody tr:nth-child(even) td { background: #f8fafc; }
.sci-data-table tbody tr:hover td { background: #eef5fb; }
.sci-data-table tbody tr:last-child td { border-bottom: 0; }

.sci-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sci-actions,
.sci-actions-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.sci-message,
#msgLoading,
#idDuplica {
  width: min(100%, 980px);
  margin: 8px auto;
  border-radius: var(--sci-radius-sm);
  font-family: var(--sci-font);
}
#msgLoading:not(:empty),
#idDuplica:not(:empty) {
  padding: 9px 12px;
  border: 1px solid #bcd4e7;
  background: #eef6fc !important;
  color: #214968;
}

.loading {
  z-index: 9999;
  border-radius: var(--sci-radius-sm);
  font-family: var(--sci-font);
}

.sci-footer,
body.sci-cgi-page > footer {
  width: 100%;
  margin: 18px auto 4px;
  color: var(--sci-muted);
  font-size: 11px;
  text-align: center;
}
.sci-footer p,
body.sci-cgi-page > footer p { margin: 0; }

.sci-error-page .sci-error-card {
  width: min(100%, 620px);
  margin: 12vh auto 0;
  padding: 24px;
  border: 1px solid #f1c2bd;
  border-radius: var(--sci-radius);
  background: #fff;
  box-shadow: var(--sci-shadow);
  color: var(--sci-danger);
  text-align: center;
  font-weight: 700;
}


.sci-search-title {
  width: min(100%, 720px);
  margin: 18px auto 4px;
  border: 0;
  border-collapse: collapse;
}
.sci-search-title caption {
  padding: 12px 14px;
  color: var(--sci-primary-dark);
  font: 800 18px/1.2 var(--sci-font);
  text-align: left;
}
.sci-search-label {
  display: block;
  margin: 0 0 6px;
  color: #344054;
  font-weight: 700;
}
.sci-search-card input[type="text"] {
  width: min(100%, 520px);
  margin-right: 8px;
}
.sci-password-card {
  width: min(100%, 520px);
  margin-top: 7vh;
  text-align: center;
}
.sci-password-card table { margin: 0 auto; }

.sci-workspace-scroll {
  width: 100%;
  margin: 14px auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.sci-workspace {
  width: min(100%, 1280px);
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 10px;
}
.sci-workspace > tbody > tr > th {
  padding: 10px;
  border: 1px solid var(--sci-border);
  border-radius: var(--sci-radius);
  background: var(--sci-surface);
  box-shadow: var(--sci-shadow);
}
.sci-side-panel {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.sci-side-panel .button { width: 100%; }

@media (max-width: 900px) {
  .sci-workspace, .sci-workspace > tbody, .sci-workspace > tbody > tr { display: block; width: 100%; }
  .sci-workspace > tbody > tr > th { display: block; width: 100% !important; margin-bottom: 10px; }
}

@media (max-width: 760px) {

  .sci-search-card input[type="text"] { width: 100%; margin: 0 0 8px; }
  .sci-search-card input[type="submit"] { width: 100%; }
  body.sci-cgi-page { padding: 8px; font-size: 14px; }
  .sci-card, .sci-form-card, .sci-search-card { margin: 8px auto; padding: 13px; }
  .sci-form-table { display: block; width: 100%; margin: 8px auto; padding: 8px; overflow: hidden; }
  .sci-form-table tbody, .sci-form-table tr { display: block; width: 100%; }
  .sci-form-table th, .sci-form-table td {
    display: block;
    width: 100% !important;
    padding: 4px 2px;
    text-align: left !important;
  }
  .sci-form-table th { padding-top: 9px; }
  body.sci-cgi-page input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
  body.sci-cgi-page select,
  body.sci-cgi-page textarea { width: 100%; min-height: 42px; }
  body.sci-cgi-page button,
  body.sci-cgi-page input[type="button"],
  body.sci-cgi-page input[type="submit"],
  body.sci-cgi-page .button { min-height: 42px; }
  .sci-data-table { font-size: 12.5px; }
  .sci-data-table th, .sci-data-table td { padding: 7px 8px; }
}

@media print {
  html, body.sci-cgi-page { background: #fff !important; }
  body.sci-cgi-page { padding: 0; }
  .sci-card, .sci-form-card, .sci-form-table, .sci-data-table { box-shadow: none; }
}

/* -------------------------------------------------------------------------
   Cgi_SciVistoriaPecas - barra de acoes e estados selecionados
   ------------------------------------------------------------------------- */
body.sci-pecas-page .sci-actions-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 1px 6px;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

body.sci-pecas-page .sci-actions-row > button,
body.sci-pecas-page .sci-actions-row > input[type="button"] {
  width: auto !important;
  min-width: max-content;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

body.sci-pecas-page .sci-actions-row > .camera-button {
  width: 38px !important;
  min-width: 38px;
  padding-left: 10px;
  padding-right: 10px;
  justify-content: center;
}

/* O botao desabilitado nos paineis laterais representa a selecao atual. */
body.sci-pecas-page #tbPecas button.button:disabled,
body.sci-pecas-page #tbItens button.button:disabled {
  position: relative;
  padding-right: 34px;
  border-color: #0f6f87;
  background: linear-gradient(135deg, #1f5f99 0%, #1775a5 48%, #0f766e 100%);
  color: #fff;
  font-weight: 800;
  opacity: 1;
  cursor: default;
  box-shadow:
    0 0 0 2px rgba(31, 95, 153, .16),
    0 5px 12px rgba(15, 85, 110, .22),
    inset 0 1px 0 rgba(255, 255, 255, .18);
  transform: translateY(-1px);
}

body.sci-pecas-page #tbPecas button.button:disabled::after,
body.sci-pecas-page #tbItens button.button:disabled::after {
  content: "\2713";
  position: absolute;
  right: 10px;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .20);
  color: #fff;
  font: 900 12px/18px var(--sci-font);
  text-align: center;
  transform: translateY(-50%);
}

body.sci-pecas-page #tbPecas button.button:disabled:hover,
body.sci-pecas-page #tbItens button.button:disabled:hover,
body.sci-pecas-page #tbPecas button.button:disabled:focus,
body.sci-pecas-page #tbItens button.button:disabled:focus {
  background: linear-gradient(135deg, #1f5f99 0%, #1775a5 48%, #0f766e 100%);
  border-color: #0f6f87;
  box-shadow:
    0 0 0 2px rgba(31, 95, 153, .16),
    0 5px 12px rgba(15, 85, 110, .22),
    inset 0 1px 0 rgba(255, 255, 255, .18);
}

@media (max-width: 760px) {
  body.sci-pecas-page .sci-actions-row {
    gap: 7px;
  }

  body.sci-pecas-page .sci-actions-row > button,
  body.sci-pecas-page .sci-actions-row > input[type="button"] {
    width: auto !important;
    min-width: max-content;
  }
}

/* SCI LOGIN - estilos compartilhados dos portais PHP */
    body.sci-login-page {
      min-height: 100vh;
      display: grid;
      place-items: center;
      padding: clamp(16px, 4vw, 42px);
      background:
        radial-gradient(circle at top left, rgba(31, 95, 153, .16), transparent 34rem),
        linear-gradient(145deg, #eef4f9 0%, #f7f9fc 48%, #edf2f7 100%);
    }

    .login-shell {
      width: min(100%, 940px);
      display: grid;
      grid-template-columns: minmax(300px, .92fr) minmax(330px, 1.08fr);
      overflow: hidden;
      border: 1px solid var(--sci-border, #d6dee8);
      border-radius: 20px;
      background: #fff;
      box-shadow: 0 24px 70px rgba(16, 24, 40, .14);
    }

    .login-brand {
      position: relative;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 32px;
      padding: clamp(26px, 4vw, 44px);
      overflow: hidden;
      background:
        linear-gradient(155deg, #15466f 0%, #1f5f99 58%, #0f766e 135%);
      color: #fff;
    }

    .login-brand::after {
      content: "";
      position: absolute;
      right: -84px;
      bottom: -94px;
      width: 250px;
      height: 250px;
      border-radius: 50%;
      background: rgba(255, 255, 255, .08);
    }

    .brand-logo {
      position: relative;
      z-index: 1;
      display: inline-flex;
      width: min(100%, 300px);
      padding: 14px;
      border-radius: 14px;
      background: rgba(255,255,255,.96);
      box-shadow: 0 10px 28px rgba(0,0,0,.15);
    }

    .brand-logo img {
      display: block;
      width: 100%;
      height: auto;
    }

    .brand-copy {
      position: relative;
      z-index: 1;
    }

    .brand-kicker {
      display: inline-block;
      margin-bottom: 10px;
      padding: 5px 9px;
      border: 1px solid rgba(255,255,255,.30);
      border-radius: 999px;
      background: rgba(255,255,255,.10);
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .brand-copy h1 {
      margin: 0 0 10px;
      color: #fff;
      font-size: clamp(25px, 3vw, 36px);
      line-height: 1.08;
    }

    .brand-copy p {
      margin: 0;
      color: rgba(255,255,255,.82);
      font-size: 14px;
      line-height: 1.6;
    }

    .company-meta {
      position: relative;
      z-index: 1;
      display: grid;
      gap: 5px;
      color: rgba(255,255,255,.76);
      font-size: 12px;
      line-height: 1.45;
    }

    .login-panel {
      padding: clamp(28px, 5vw, 54px);
      align-self: center;
    }

    .login-heading {
      margin-bottom: 28px;
    }

    .login-heading .eyebrow {
      margin: 0 0 7px;
      color: var(--sci-primary, #1f5f99);
      font-size: 12px;
      font-weight: 800;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .login-heading h2 {
      margin: 0 0 8px;
      color: var(--sci-text, #182230);
      font-size: clamp(24px, 3vw, 31px);
      line-height: 1.15;
    }

    .login-heading p {
      margin: 0;
      color: var(--sci-muted, #667085);
      font-size: 14px;
    }

    .login-form {
      display: grid;
      gap: 18px;
    }

    .field-group {
      display: grid;
      gap: 7px;
    }

    .field-group label {
      color: #344054;
      font-size: 13px;
      font-weight: 750;
    }

    body.sci-login-page .login-form input[type="text"],
    body.sci-login-page .login-form input[type="password"] {
      width: 100%;
      min-height: 46px;
      padding: 10px 12px;
      font-size: 15px;
    }

    .password-wrap {
      position: relative;
    }

    .password-wrap input {
      padding-right: 72px !important;
    }

    .password-toggle {
      position: absolute;
      top: 50%;
      right: 6px;
      min-height: 34px !important;
      padding: 5px 9px !important;
      transform: translateY(-50%);
      border: 0 !important;
      background: transparent !important;
      color: var(--sci-primary, #1f5f99) !important;
      box-shadow: none !important;
      font-size: 12px !important;
    }

    .password-toggle:hover,
    .password-toggle:focus-visible {
      background: var(--sci-primary-soft, #eaf2f9) !important;
    }

    .captcha-card {
      padding: 12px;
      overflow-x: auto;
      border: 1px solid var(--sci-border, #d6dee8);
      border-radius: 10px;
      background: #f8fafc;
      -webkit-overflow-scrolling: touch;
    }

    .captcha-card .g-recaptcha {
      width: 304px;
      max-width: 100%;
      margin: 0 auto;
    }

    .captcha-status {
      min-height: 18px;
      margin: 8px 0 0;
      font-size: 11.5px;
      line-height: 1.4;
      text-align: center;
    }

    .captcha-status[data-state="ok"] {
      font-weight: 700;
    }

    .captcha-status[data-state="error"] {
      font-weight: 700;
    }
    body.sci-login-page .login-submit {
      width: 100%;
      min-height: 48px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      margin-top: 2px;
      padding: 10px 16px;
      border: 1px solid var(--sci-login-button, #1f5f99) !important;
      border-radius: 10px;
      background: var(--sci-login-button, #1f5f99) !important;
      background-image: none !important;
      color: #fff !important;
      box-shadow: 0 8px 18px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.16);
      font-size: 14px;
      font-weight: 800;
      line-height: 1.2;
      cursor: pointer;
      transition: background .16s ease, box-shadow .16s ease, transform .16s ease;
    }

    body.sci-login-page .login-submit:hover:not(:disabled),
    body.sci-login-page .login-submit:focus:not(:disabled) {
      background: var(--sci-login-button-hover, #133B5F) !important;
      background-image: none !important;
      border-color: var(--sci-login-button-hover, #133B5F) !important;
      box-shadow: 0 10px 22px rgba(0,0,0,.22);
      color: #fff !important;
      transform: translateY(-1px);
    }

    body.sci-login-page .login-submit:focus-visible:not(:disabled) {
      outline: 3px solid var(--sci-login-button-hover, #133B5F) !important;
      outline-offset: 3px;
    }

    body.sci-login-page .login-submit:active:not(:disabled) {
      background: var(--sci-login-button-active, #10304D) !important;
      background-image: none !important;
      border-color: var(--sci-login-button-active, #10304D) !important;
      transform: translateY(0);
      box-shadow: 0 4px 10px rgba(0,0,0,.16), inset 0 1px 2px rgba(0,0,0,.08);
    }

    body.sci-login-page .login-submit:disabled {
      background: var(--sci-login-button-disabled, #8FAFCC) !important;
      background-image: none !important;
      border-color: var(--sci-login-button-disabled, #8FAFCC) !important;
      color: #242424 !important;
      opacity: 1;
      box-shadow: none;
      cursor: not-allowed;
      transform: none;
    }

    body.sci-login-page .login-submit .submit-arrow {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 24px;
      min-width: 24px;
      height: 24px;
      border-radius: 50%;
      background: rgba(255,255,255,.18);
      border: 1px solid rgba(255,255,255,.32);
      color: #fff;
      font-size: 17px;
      font-weight: 900;
      line-height: 1;
      transition: transform .16s ease, background .16s ease;
    }

    body.sci-login-page .login-submit:hover .submit-arrow,
    body.sci-login-page .login-submit:focus-visible .submit-arrow {
      background: rgba(255,255,255,.24);
      transform: translateX(2px);
    }

.login-note {
      margin: 2px 0 0;
      color: var(--sci-muted, #667085);
      font-size: 11.5px;
      line-height: 1.5;
      text-align: center;
    }

    @media (max-width: 760px) {
      body.sci-login-page {
        display: block;
        padding: 14px;
      }

      .login-shell {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin: 0 auto;
        border-radius: 16px;
      }

      .login-brand {
        gap: 22px;
        padding: 24px;
      }

      .brand-logo {
        width: min(240px, 82%);
      }

      .brand-copy h1 {
        font-size: 27px;
      }

      .company-meta {
        display: none;
      }

      .login-panel {
        padding: 28px 22px 30px;
      }
    }

    @media (max-width: 360px) {
      .captcha-card {
        padding: 8px;
      }

      .captcha-scale {
        width: 274px;
        height: 70px;
        transform: scale(.90);
        transform-origin: top left;
      }
    }
  

    /* Ajustes exclusivos do portal de locacao para preservar o layout atual. */
    body.sci-login-locacao .login-heading { margin-bottom: 26px; }
    body.sci-login-locacao .login-heading p { line-height: 1.5; }
    body.sci-login-locacao .field-help {
      margin: -2px 0 0;
      color: var(--sci-muted, #667085);
      font-size: 11.5px;
    }


/* =====================================================================
   VISTORIAS / PECAS - visual legado (aproxima VSTold.png)
   Mantem responsividade, mas restaura destaque/cor e compactacao antiga.
   ===================================================================== */
body.sci-vistoria-page,
body.sci-pecas-page {
  padding: 2px 2px 10px !important;
  background: #ddd !important;
  color: #000 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

body.sci-vistoria-page a,
body.sci-pecas-page a {
  color: blue;
}

body.sci-vistoria-page > center,
body.sci-vistoria-page center,
body.sci-pecas-page > center,
body.sci-pecas-page center {
  width: auto !important;
}

body.sci-vistoria-page input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
body.sci-vistoria-page select,
body.sci-vistoria-page textarea,
body.sci-pecas-page input:not([type="hidden"]):not([type="radio"]):not([type="checkbox"]),
body.sci-pecas-page select,
body.sci-pecas-page textarea {
  min-height: 0 !important;
  padding: 1px 3px !important;
  border: 1px solid #8d8d8d !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #000 !important;
  box-shadow: none !important;
  font: 8pt Verdana, Arial, sans-serif !important;
}

body.sci-vistoria-page textarea,
body.sci-pecas-page textarea {
  min-height: 48px !important;
}

body.sci-vistoria-page input:focus,
body.sci-vistoria-page select:focus,
body.sci-vistoria-page textarea:focus,
body.sci-pecas-page input:focus,
body.sci-pecas-page select:focus,
body.sci-pecas-page textarea:focus {
  border-color: #2980b9 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body.sci-vistoria-page .sci-form-table,
body.sci-vistoria-page .sci-data-table,
body.sci-vistoria-page .sci-card,
body.sci-vistoria-page .sci-form-card,
body.sci-vistoria-page .sci-search-card,
body.sci-pecas-page .sci-form-table,
body.sci-pecas-page .sci-data-table,
body.sci-pecas-page .sci-card,
body.sci-pecas-page .sci-form-card,
body.sci-pecas-page .sci-search-card {
  width: auto !important;
  max-width: 1024px !important;
  margin: 4px 0 !important;
  padding: 0 !important;
  border: 1px solid #7f7f7f !important;
  border-radius: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  background: #efefef !important;
  box-shadow: none !important;
  text-align: left !important;
}

body.sci-vistoria-page .sci-form-table > caption,
body.sci-vistoria-page .sci-data-table > caption,
body.sci-vistoria-page .sci-workspace table > caption,
body.sci-pecas-page .sci-form-table > caption,
body.sci-pecas-page .sci-data-table > caption,
body.sci-pecas-page .sci-workspace table > caption {
  margin: 0 !important;
  padding: 2px 6px !important;
  border-radius: 0 !important;
  background: rgba(255, 0, 255, .10) !important;
  color: blue !important;
  font: bold 10pt Arial, Helvetica, sans-serif !important;
  text-align: center !important;
}

body.sci-vistoria-page .sci-form-table th,
body.sci-pecas-page .sci-form-table th {
  padding: 2px 4px !important;
  color: #000 !important;
  font: 8pt "Courier New", monospace !important;
  text-align: right !important;
  vertical-align: top !important;
}

body.sci-vistoria-page .sci-form-table td,
body.sci-pecas-page .sci-form-table td {
  padding: 2px 4px !important;
  vertical-align: top !important;
}

body.sci-vistoria-page .sci-inline-info,
body.sci-pecas-page .sci-inline-info {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #000 !important;
}

body.sci-vistoria-page .sci-data-table,
body.sci-pecas-page .sci-data-table {
  background: #fff !important;
}

body.sci-vistoria-page .sci-data-table thead th,
body.sci-vistoria-page .sci-data-table > tbody > tr.sci-table-head > th,
body.sci-pecas-page .sci-data-table thead th,
body.sci-pecas-page .sci-data-table > tbody > tr.sci-table-head > th {
  padding: 4px 6px !important;
  border-right: 1px solid #fff !important;
  background: #003399 !important;
  color: #fff !important;
  font: bold 8pt Arial, Helvetica, sans-serif !important;
  text-align: left !important;
}

body.sci-vistoria-page .sci-data-table td,
body.sci-pecas-page .sci-data-table td {
  padding: 3px 6px !important;
  border-bottom: 0 !important;
  color: #000 !important;
  font: 8pt Arial, Helvetica, sans-serif !important;
}

body.sci-vistoria-page .sci-data-table tbody tr:nth-child(even) td,
body.sci-pecas-page .sci-data-table tbody tr:nth-child(even) td {
  background: #b9d7d9 !important;
}

body.sci-vistoria-page .sci-data-table tbody tr:hover td,
body.sci-pecas-page .sci-data-table tbody tr:hover td {
  background: #d8eef1 !important;
}

body.sci-vistoria-page .sci-workspace-scroll,
body.sci-pecas-page .sci-workspace-scroll {
  width: 100% !important;
  margin: 4px 0 !important;
  overflow-x: auto !important;
  display: flex !important;
  justify-content: flex-start !important;
}

body.sci-vistoria-page .sci-workspace,
body.sci-pecas-page .sci-workspace {
  width: 1024px !important;
  max-width: 1024px !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  border-spacing: 0 !important;
}

body.sci-vistoria-page .sci-workspace > tbody > tr > th,
body.sci-pecas-page .sci-workspace > tbody > tr > th {
  padding: 4px !important;
  border: 1px solid #7f7f7f !important;
  border-radius: 0 !important;
  background: #efefef !important;
  box-shadow: none !important;
  vertical-align: top !important;
}

body.sci-vistoria-page .sci-side-panel,
body.sci-pecas-page .sci-side-panel {
  border-collapse: separate !important;
  border-spacing: 0 4px !important;
}

body.sci-vistoria-page .sci-message,
body.sci-vistoria-page #msgLoading,
body.sci-vistoria-page #idDuplica,
body.sci-pecas-page .sci-message,
body.sci-pecas-page #msgLoading,
body.sci-pecas-page #idDuplica {
  width: auto !important;
  margin: 4px 0 !important;
  border-radius: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}

body.sci-vistoria-page #msgLoading:not(:empty),
body.sci-vistoria-page #idDuplica:not(:empty),
body.sci-pecas-page #msgLoading:not(:empty),
body.sci-pecas-page #idDuplica:not(:empty) {
  padding: 4px 6px !important;
  border: 1px solid #7f7f7f !important;
  background: lightblue !important;
  color: #000 !important;
}

body.sci-vistoria-page .sci-footer,
body.sci-vistoria-page > footer,
body.sci-pecas-page .sci-footer,
body.sci-pecas-page > footer {
  margin: 10px 0 0 !important;
  color: #000 !important;
  font-size: 7pt !important;
  text-align: center !important;
}

@media (max-width: 1040px) {
  body.sci-vistoria-page .sci-workspace,
  body.sci-pecas-page .sci-workspace {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 760px) {
  body.sci-vistoria-page,
  body.sci-pecas-page {
    padding: 6px !important;
  }

  body.sci-vistoria-page .sci-form-table,
  body.sci-vistoria-page .sci-data-table,
  body.sci-vistoria-page .sci-card,
  body.sci-vistoria-page .sci-form-card,
  body.sci-vistoria-page .sci-search-card,
  body.sci-pecas-page .sci-form-table,
  body.sci-pecas-page .sci-data-table,
  body.sci-pecas-page .sci-card,
  body.sci-pecas-page .sci-form-card,
  body.sci-pecas-page .sci-search-card {
    max-width: 100% !important;
  }

  body.sci-vistoria-page .sci-workspace,
  body.sci-pecas-page .sci-workspace,
  body.sci-vistoria-page .sci-workspace > tbody,
  body.sci-vistoria-page .sci-workspace > tbody > tr,
  body.sci-pecas-page .sci-workspace > tbody,
  body.sci-pecas-page .sci-workspace > tbody > tr {
    display: block !important;
    width: 100% !important;
  }

  body.sci-vistoria-page .sci-workspace > tbody > tr > th,
  body.sci-pecas-page .sci-workspace > tbody > tr > th {
    display: block !important;
    width: 100% !important;
    margin-bottom: 8px !important;
  }
}
