/*
-------------------------------------------------------------------------------------------------
Autor: Paulo Cesar Mendes - paulo@mpcesar.com / mendes.pcesar@gmail.com
-------------------------------------------------------------------------------------------------
*/
@media print
{
#header{display:none;}
#menus{display:none;}
#filtro_lista{display:none;}
#list{display:block;}
#detail{display:block;}
#barra_botoes{display:none;}}

@media screen
{
#header{display:block;}
#menus{display:block;}
#filtro_lista{display:block;}
#list{display:block;}
#detail{display:block;}
#barra_botoes{display:block;}
}

input[type="text"]:disabled , input[readonly] , select[disabled]
, select[readonly], checkbox[disabled]
, checkbox[readonly], textarea[disabled]
, textarea[readonly] 
{ 
 background-color: #dcdcdc; 
 color: #000000; 
 cursor: default; 
} 

body {
	font-family:arial, verdana, sans-serif;
	color: #4f6b72;
	padding: 0px 0px 0px 0px;
	background: #F6F6F9;
	font-size: 10px;
}

/* =============================================================================================
   Mensagens / Alertas - Facelift 2026
   Utiliza Font Awesome em vez de imagens PNG.
   ============================================================================================= */

.info,
.success,
.warning,
.error,
.validation {
    position: relative;
    display: block;
    box-sizing: border-box;

    width: auto;
    max-width: 100%;
    min-width: 0;

    margin: 10px 0;
    padding: 12px 16px 12px 54px;

    border: 1px solid transparent;
    border-radius: 6px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    line-height: 1.45;
    font-weight: 400;

    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;

    box-shadow: 0 2px 5px rgba(15, 23, 42, .08);
}

/* Ícones */
.info::before,
.success::before,
.warning::before,
.error::before,
.validation::before {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);

    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 22px;
    line-height: 1;
}

/* Informação */
.info {
    color: #075985;
    background: #f0f9ff;
    border-color: #bae6fd;
}

.info::before {
    content: "\f058";
    color: #0284c7;
}

/* Sucesso */
.success {
    color: #3f6212;
    background: #f7fee7;
    border-color: #bef264;
}

.success::before {
    content: "\f058";
    color: #65a30d;
}

/* Atenção */
.warning {
    color: #854d0e;
    background: #fffbeb;
    border-color: #fcd34d;
}

.warning::before {
    content: "\f071";
    color: #d97706;
}

/* Erro */
.error {
    color: #991b1b;
    background: #fef2f2;
    border-color: #fca5a5;
}

.error::before {
    content: "\f057";
    color: #dc2626;
}

/* Validação */
.validation {
    color: #9a3412;
    background: #fff7ed;
    border-color: #fdba74;
}

.validation::before {
    content: "\f06a";
    color: #ea580c;
}

/* Destaques */
.info strong,
.success strong,
.warning strong,
.error strong,
.validation strong {
    color: inherit;
    font-weight: 700;
}

/* Links */
.info a,
.success a,
.warning a,
.error a,
.validation a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}

/* Mensagens pequenas de validação */
.msg {
    display: block;
    margin: 4px 0 0;
    padding: 0;

    color: #b91c1c;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
}

/* Avisos antigos */
#msg_aviso,
#msg_ajuda,
h1 {
	color: black;
	font-size: 22px;
}

td.pendente_var_cambial {
	text-align: left;
	background: #FF0000
}

td.total_propostas {
    font-weight: bold;
	background: #FFFFC6
}

td.total_faturado {
    font-weight: bold;
	background: #A8F0FA
}

td.lanc_manual {
 font-weight: bold;
 background: #FBE6F2;
 color: #333
}

#header 
{
	background: #FFFFCC;
	margin:  0px 0px 2px 0px;
	padding: 0px 0px 0px 0px
 }

#header h1
{
	margin:  0px 0px 2px 0px;
	padding: 0px 0px 0px 0px
} 

p {
	margin: 2px 0px 2px 0;
}

p.pend_sinal {
 background: #FBE6F2;
 border: 1px solid #D893A1;
 color: #333;
 margin: 2px 0 2px 0;
 padding: 5px;
}

a {
	color: #c75f3e;
	text-align: left;
}

a.pendente_var_cambial{
	color: #FFFFFF;
	text-align: left;
}

#filtro_lista 
{
 border: 1px solid #D893A1;
 border-color:#bfbfbf;
 margin: 3px 0 3px 0;
 padding: 2px 6px 2px 6px;
 }

table.listas {
     width:100%;
     border-style:groove;
     border-color:black;
     border-width:2px; 
	 margin-top:10px;
}

table.sortable {
     width:100%;
     border-style:groove;
     border-color:black;
     border-width:2px; 
}

#list caption {
	padding: 0 0 2px 0;
	width: 100%;	 
	font-size: 16px;
	font-weight:bold;
	text-align: Left;
}

#list th {
	color: white;
	border-right: 1px solid #C1DAD7;
	border-bottom: 2px solid #C1DAD7;
	border-top: 1px solid #C1DAD7;
	letter-spacing: 2px;
	text-align: center;
	padding: 6px 6px 6px 12px;
	background: #ddd;
    background: #778899
}

#list  tr  {
	background: #fff;
}

#list tr:hover {
    background: #F0E68C ;
}

#list td {
	border-right: 1px solid #C1DAD7;
	border-bottom: 1px solid #C1DAD7;
	padding: 3px 3px 3px 3px;
	color: #000000;
	height:11px;
}

#list a
{
	text-decoration: none; 
}

.right {text-align: right}

.center {text-align: center}

.total {
	background:#ddd;
	text-align:right;
	font-weight:bold; }

.quebra {border-top: 1px solid black}

.azul {background: #CCCCFF;}

.azul:hover {background: #F0E68C ;}
	
.vermelho {background: #FF9999;}

.vermelho:hover {background: #F0E68C ;}
	
.verde {background: #90EE90;}

.verde:hover {background: #F0E68C ;}

#sub_menu
{
 float: left;
 background: #FAFAD2;
 border: 1px solid #D893A1;
 color: #333;
 margin: 20px 0px 0px 0;
 padding: 2px 6px 2px 6px; 
}

#sub_menu a {
	margin-left: 15px;
	margin-right: 15px;
	color: #191970;
	text-align: left;
	font-size:120%;
}


#detail
{
  margin: 0px 0px 0px 0;
  float: left;
}

#detail caption {
	padding: 0 0 5px 0;
	width: 100%;	 
	font-size: 16px;
	font-weight:bold;
	text-align: Left;
}

#detail  tr  {
	background: #fff;
}

#detail td {
	padding: 3px 3px 3px 3px;
	color: #000000;
	height:11px;
}

fieldset {
  padding: 5px;
  margin-top:10px;
  float:left;
  }
  
legend {
  padding: 0.2em 0.5em;
  border:2px solid #2F4F4F;
  color:#2F4F4F;
  font-size:120%;
  font-weight:bold;
  text-align:left;
  background: #FFFFE0;
  }

label {    
  float:left;
  width:120px;
  margin-right:5px;
  margin-top:5px;
  text-align:right;
  font-weight:bold;
  font-size:12px;
 }    
   
.destaque {    
 border: 1px solid;
 color: #B22222;    
 text-align: left;    
 margin-right: 0px;    
 margin-top: 5px;    
 padding-left: 3px; 
 font-size: 10px;
 font-family:arial, verdana, sans-serif;
 background: #D3D3D3;
}

.destaque_num {    
 border: 1px solid;
 color: #B22222;    
 text-align: right;    
 margin-right: 0px;    
 margin-top: 5px;    
 padding-left: 3px; 
 font-size: 10px;
 font-family:arial, verdana, sans-serif;
 background: #D3D3D3;
 width:90px;
}

.fieldcell {    
 border: 1px solid #708090;
 color: #000000;    
 text-align: left;    
 margin-right: 0px;    
 margin-top: 5px;    
 padding-right: 3px; 
 padding-left: 3px; 
 font-size: 10px;
 font-family:arial, verdana, sans-serif;
}
    
.fieldcell:focus {
    border: 1px solid #f00;
    background: #F0E68C
}

.fieldcell_num {    
 border: 1px solid  #708090;
 color: #000000;    
 text-align: right;    
 margin-right: 0px;    
 margin-top: 5px;    
 padding-left: 3px; 
 padding-right: 3px; 
 font-size: 10px;
 font-family:arial, verdana, sans-serif;
 width:90px;
}

.fieldcell_num:focus {
    border: 1px solid #f00;
    background: #F0E68C
}

.fieldcell_date {    
 border: 1px solid  #708090;
 color: #000000;    
 text-align: center;
 margin-right: 0px;    
 margin-top: 5px;    
 padding-left: 3px; 
 font-size: 10px;
 font-family:arial, verdana, sans-serif;
 width:60px;
}

.fieldcell_date:focus {
    border: 1px solid #f00;
    background: #F0E68C
}

#div_col_container
{
	width:100%;
}

#div_col_container .form_2col
{
	float:left; 
	width:50%
}

/*
-------------------------------------------------------------------------------------------------
FACELIFT 2026 - classes novas
Estas regras ficam no final para sobrepor o CSS antigo quando o MY_form_helper
ou o MY_Table adicionarem classes novas aos elementos.
-------------------------------------------------------------------------------------------------
*/

:root {
    --sbus-bg: #f4f6f9;
    --sbus-panel: #ffffff;
    --sbus-border: #cfd7e3;
    --sbus-border-soft: #e5e9f0;
    --sbus-text: #1f2937;
    --sbus-primary: #1f4f82;
    --sbus-primary-dark: #163a61;
    --sbus-hover: #eaf4ff;
    --sbus-total: #eef2f7;
    --sbus-link-list: #a33a2f;
    --sbus-link-list-hover: #c2410c;
}

/* Botões
   Compatibilidade do sbus.css com telas legadas:
   aplica o padrão novo também em botões sem classe sbus-btn. */
button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.sbus-btn,
button.sbus-btn,
input.sbus-btn,
input[type="button"].sbus-btn,
input[type="submit"].sbus-btn,
input[type="reset"].sbus-btn,
a.sbus-btn {
    display: inline-block;
    color: #ffffff !important;
    min-height: 22px !important;
    padding: 3px 10px !important;
    border: 1px solid var(--sbus-primary-dark) !important;
    border-radius: 4px !important;
    background: linear-gradient(#2f6ea5, var(--sbus-primary)) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .20) !important;
    text-shadow: none !important;
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: bold !important;
    line-height: normal !important;
    text-decoration: none !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
button:focus,
input[type="submit"]:focus,
input[type="button"]:focus,
input[type="reset"]:focus,
.sbus-btn:hover,
button.sbus-btn:hover,
input.sbus-btn:hover,
a.sbus-btn:hover,
.sbus-btn:focus,
button.sbus-btn:focus,
input.sbus-btn:focus,
a.sbus-btn:focus {
    color: #ffffff !important;
    background: linear-gradient(#3b82bd, #1d5f96) !important;
    border-color: #123a5f !important;
    text-decoration: none !important;
}

.sbus-btn-primary,
button.sbus-btn-primary,
input.sbus-btn-primary,
input[type="submit"].sbus-btn-primary,
input[type="button"].sbus-btn-primary,
a.sbus-btn-primary {
    border-color: var(--sbus-primary-dark) !important;
    background: linear-gradient(#2f6ea5, var(--sbus-primary)) !important;
}

.sbus-btn-secondary,
button.sbus-btn-secondary,
input.sbus-btn-secondary,
input[type="submit"].sbus-btn-secondary,
input[type="button"].sbus-btn-secondary,
input[type="reset"].sbus-btn-secondary,
a.sbus-btn-secondary {
    border-color: #475569 !important;
    background: linear-gradient(#64748b, #475569) !important;
}

.sbus-btn-success,
button.sbus-btn-success,
input.sbus-btn-success,
input[type="submit"].sbus-btn-success,
input[type="button"].sbus-btn-success,
a.sbus-btn-success {
    border-color: #14532d !important;
    background: linear-gradient(#16a34a, #15803d) !important;
}

.sbus-btn-danger,
button.sbus-btn-danger,
input.sbus-btn-danger,
input[type="submit"].sbus-btn-danger,
input[type="button"].sbus-btn-danger,
a.sbus-btn-danger {
    border-color: #7f1d1d !important;
    background: linear-gradient(#dc2626, #991b1b) !important;
}

.sbus-btn-sm,
button.sbus-btn-sm,
input.sbus-btn-sm,
input[type="submit"].sbus-btn-sm,
input[type="button"].sbus-btn-sm,
input[type="reset"].sbus-btn-sm,
a.sbus-btn-sm {
    min-height: 20px !important;
    padding: 2px 8px !important;
    font-size: 10px !important;
}

button:disabled,
input[type="submit"]:disabled,
input[type="button"]:disabled,
input[type="reset"]:disabled,
button.sbus-btn:disabled,
input.sbus-btn:disabled,
input[type="submit"].sbus-btn:disabled,
input[type="button"].sbus-btn:disabled,
input[type="reset"].sbus-btn:disabled,
button.sbus-btn-primary:disabled,
input.sbus-btn-primary:disabled,
input[type="submit"].sbus-btn-primary:disabled,
button.sbus-btn-secondary:disabled,
input.sbus-btn-secondary:disabled,
input[type="reset"].sbus-btn-secondary:disabled {
    color: #64748b !important;
    border-color: #cbd5e1 !important;
    background: #e5e7eb !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

/* Campos do MY_form_helper */
.sbus-form-control,
input.sbus-form-control,
textarea.sbus-form-control,
.sbus-form-textarea,
textarea.sbus-form-textarea,
.sbus-field,
input.sbus-field,
select.sbus-field,
textarea.sbus-field {
    border: 1px solid #aeb8c6 !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    color: #111827 !important;
    padding: 1px 3px !important;
    margin-top: 5px !important;
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    box-sizing: content-box !important;
    line-height: normal !important;
}

.sbus-form-textarea,
textarea.sbus-form-textarea {
    padding: 2px 4px !important;
    line-height: 1.25 !important;
}

.sbus-form-select,
select.sbus-form-select {
    border: 1px solid #aeb8c6 !important;
    border-radius: 3px !important;
    background: #ffffff !important;
    color: #111827 !important;
    padding: 0 3px !important;
    margin-top: 5px !important;
    font-size: 11px !important;
    font-family: Arial, Helvetica, sans-serif !important;
    box-sizing: content-box !important;
    line-height: normal !important;
}

.sbus-form-control:focus,
input.sbus-form-control:focus,
textarea.sbus-form-control:focus,
.sbus-form-textarea:focus,
textarea.sbus-form-textarea:focus,
.sbus-form-select:focus,
select.sbus-form-select:focus,
.sbus-field:focus,
input.sbus-field:focus,
select.sbus-field:focus,
textarea.sbus-field:focus {
    outline: none !important;
    border-color: #2563eb !important;
    background: #fffbe6 !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, .10) !important;
}

.sbus-form-control[readonly],
.sbus-form-textarea[readonly],
.sbus-form-select[readonly],
.sbus-form-control:disabled,
.sbus-form-textarea:disabled,
.sbus-form-select:disabled,
input.sbus-form-control:disabled,
textarea.sbus-form-textarea:disabled,
select.sbus-form-select:disabled,
.sbus-field-readonly,
input.sbus-field-readonly,
select.sbus-field-readonly,
textarea.sbus-field-readonly {
    background: #eef3f8 !important;
    border-color: #b8c7d6 !important;
    color: #2d4057 !important;
    opacity: 1 !important;
    cursor: default !important;
}

.sbus-form-check-input,
input[type="checkbox"].sbus-form-check-input,
input[type="radio"].sbus-form-check-input {
    margin: 5px 4px 0 0 !important;
    vertical-align: middle !important;
    cursor: pointer !important;
}

.sbus-form-check-input:disabled,
input[type="checkbox"].sbus-form-check-input:disabled,
input[type="radio"].sbus-form-check-input:disabled {
    cursor: not-allowed !important;
    opacity: .65 !important;
}

.sbus-label,
label.sbus-label {
    color: #1f2937 !important;
    font-weight: bold !important;
}

.sbus-fieldset,
fieldset.sbus-fieldset,
.sbus-panel {
    border: 1px solid #cbd5e1 !important;
    border-radius: 5px !important;
    background: #ffffff !important;
    padding: 5px !important;
    margin-top: 10px !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06) !important;
}

.sbus-fieldset legend,
fieldset.sbus-fieldset legend,
.sbus-legend {
    color: #164e63 !important;
    border: 1px solid #8fb3c8 !important;
    border-radius: 3px !important;
    background: linear-gradient(#f8fafc, #eaf2fb) !important;
    padding: 3px 8px !important;
    font-size: 12px !important;
    font-weight: bold !important;
    line-height: 14px !important;
    box-shadow: 0 1px 1px rgba(15, 23, 42, .08) !important;
}

/* Tabelas do MY_Table
   Importante: não forçar width:100% na regra base.
   Quando a view definir width="1400px" ou style="width:...", esse tamanho precisa prevalecer
   para que a DIV externa com overflow:auto gere a rolagem horizontal esperada. */
table.sbus-table,
#list table.sbus-table,
#detail table.sbus-table {
    border: 1px solid var(--sbus-border) !important;
    border-radius: 6px !important;
    border-spacing: 0 !important;
    border-collapse: separate !important;
    background: var(--sbus-panel) !important;
    margin-top: 8px !important;
    overflow: visible !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .08) !important;
}


.sbus-table-caption,
table.sbus-table caption.sbus-table-caption {
    padding: 4px 6px 6px 2px !important;
    color: #111827 !important;
    font-size: 15px !important;
    font-weight: bold !important;
    text-align: left !important;
}

.sbus-table-thead,
.sbus-table-head,
table.sbus-table thead.sbus-table-thead,
table.sbus-table thead.sbus-table-head {
    background: transparent !important;
}

.sbus-table-tbody,
.sbus-table-body,
table.sbus-table tbody.sbus-table-tbody,
table.sbus-table tbody.sbus-table-body {
    background: #ffffff !important;
}

.sbus-table-row,
table.sbus-table tr.sbus-table-row {
    background: #ffffff !important;
}

.sbus-table-row-alt,
table.sbus-table tr.sbus-table-row-alt,
table.sbus-table tbody tr.sbus-table-row-alt,
table.sbus-table tbody tr:nth-child(even) {
    background: #f8fafc !important;
}

table.sbus-table tbody tr.sbus-table-row:hover,
table.sbus-table tbody tr.sbus-table-row-alt:hover,
.sbus-table-row:hover,
.sbus-table-row-alt:hover {
    background: var(--sbus-hover) !important;
}

.sbus-table-th,
table.sbus-table th,
table.sbus-table th.sbus-table-th,
#list table.sbus-table th,
#list table.sbus-table th.sbus-table-th,
#detail table.sbus-table th,
#detail table.sbus-table th.sbus-table-th {
    color: #ffffff !important;
    border-right: 1px solid #49657f !important;
    border-bottom: 1px solid #22384f !important;
    border-top: 0 !important;
    letter-spacing: .3px !important;
    text-align: center !important;
    padding: 5px 5px !important;
    background: linear-gradient(#415b76, #30465f) !important;
    white-space: nowrap !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
}

.sbus-table-td,
table.sbus-table td,
table.sbus-table td.sbus-table-td,
#list table.sbus-table td,
#list table.sbus-table td.sbus-table-td,
#detail table.sbus-table td,
#detail table.sbus-table td.sbus-table-td {
    border-right: 1px solid var(--sbus-border-soft) !important;
    border-bottom: 1px solid var(--sbus-border-soft) !important;
    padding: 3px 4px !important;
    color: #111827 !important;
    height: 14px !important;
    line-height: 1.25 !important;
    vertical-align: middle !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 11px !important;
}

table.sbus-table th:last-child,
table.sbus-table th.sbus-table-th:last-child,
table.sbus-table td:last-child,
table.sbus-table td.sbus-table-td:last-child {
    border-right: 0 !important;
}

table.sbus-table tbody tr:hover td,
table.sbus-table tbody tr:hover td.sbus-table-td {
    border-bottom-color: #c9dff5 !important;
}

table.sbus-table .total,
table.sbus-table tfoot td,
table.sbus-table td.sbus-table-total,
.sbus-table-total {
    background: var(--sbus-total) !important;
    color: #111827 !important;
    text-align: right !important;
    font-weight: bold !important;
    border-top: 1px solid #b8c2cf !important;
}

table.sbus-table .azul { background: #dbeafe !important; }
table.sbus-table .vermelho { background: #fecaca !important; }
table.sbus-table .verde { background: #dcfce7 !important; }

table.sbus-table .azul:hover,
table.sbus-table .vermelho:hover,
table.sbus-table .verde:hover {
    background: var(--sbus-hover) !important;
}

table.sbus-table.sbus-table-modal th.sbus-table-th,
.sbus-table-modal .sbus-table-th {
    background: linear-gradient(#8193a3, #667d91) !important;
}

table.sbus-table.sbus-table-modal th.sbus-table-th,
table.sbus-table.sbus-table-modal td.sbus-table-td,
.sbus-table-modal .sbus-table-th,
.sbus-table-modal .sbus-table-td {
    font-size: 10px !important;
}

/* Links de ação */
.sbus-link-action {
    color: var(--sbus-link-list) !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    cursor: pointer !important;
}

.sbus-link-action:hover {
    color: var(--sbus-link-list-hover) !important;
    text-decoration: underline !important;
}

/* Arredondamento completo das tabelas */
table.sbus-table {
    border-radius: 6px;
    overflow: hidden;
}

table.sbus-table thead tr:first-child th:first-child {
    border-top-left-radius: 6px;
}

table.sbus-table thead tr:first-child th:last-child {
    border-top-right-radius: 6px;
}

table.sbus-table tfoot tr:last-child td:first-child,
table.sbus-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 6px;
}

table.sbus-table tfoot tr:last-child td:last-child,
table.sbus-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 6px;
}