html, body {
    font-family: Calibri,sans-serif;
    font-size: 14px;
    color: #333
}

.container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.element {
  width: 1000px;
  height: 600px;

  background-image: url('/static/img/cofapec-azul4.png'); /* Add a search icon to input */
  /*background-position: 10px 12px; / * Position the search icon */
  background-position: top; /* top ? */
  background-repeat: no-repeat; /* Do not repeat the icon image */
  background-size: 1000px 130px;
  padding-top: 130px
}

/* vm formularios, botoes, etc */
input[type=button], input[type=submit], input[type=reset] {
  /*background-color: #04AA6D;
  border: none;
  color: white;
  padding: 16px 32px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;*/

  background-color: gray;
  border: none;
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 8px; /* arrendondada */
}

input[type=submit]:hover {
    /* background-color: #04AA6D; / * Green * /
       color: white; */

    background-color: darkgray;
    color: white;
}

input[type=submit].disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* horrível
body {
    width: 100%;
    min-height: 100vh;
    padding: 0 10px;
    display: flex;
    background: #626cd6;
    justify-content: center;
    align-items: center;
}*/

#cfop_tabela {
  border-collapse: collapse; /* Collapse borders */
  width: 100%; /* Full-width */
  border: 1px solid #ddd; /* Add a grey border */
  /*font-size: 18px;*/ /* Increase font-size */
  margin: 10px 0px 10px 0px;
}

#cfop_tabela th, #cfop_tabela td {
  text-align: left; /* Left-align text */
  padding: 5px; /* Add padding */
}

#cfop_tabela tr {
  /* Add a bottom border [Oto all table rows */
  border-bottom: 1px solid #ddd;
}

#cfop_tabela tr.header, #cfop_tabela tr:hover {
  /* Add a grey background color to the table header and on hover */
  background-color: #f1f1f1;
}

#cfop_tabela tr {
  display: none;
}
#cfop_tabela tr:nth-child(-n+4){
  display: table-row;
}

#cfop_tabela tr.mais {
    display: table-row;
}


.tabela_pesquisa {
  background-image: url('/static/img/lupa.png'); /* Add a search icon to input */
  /*background-position: 10px 12px; / * Position the search icon */
  background-position: left 10px center;
  background-repeat: no-repeat; /* Do not repeat the icon image */
  background-size: 15px 15px;
  width: 100%; /* Full-width */
  /*font-size: 16px;*/ /* Increase font-size */
  padding: 5px 5px 5px 30px; /* Add some padding */
  border: 1px solid #ddd; /* Add a grey border */
  margin-bottom: 2px; /* Add some space below the input */
}

.tabela_todos {
}

.tabela_expansiva {
  border-collapse: collapse; /* Collapse borders */
  width: 100%; /* Full-width */
  border: 1px solid #ddd; /* Add a grey border */
  /*font-size: 18px;*/ /* Increase font-size */
  margin: 10px 0px 10px 0px;
}

.tabela_expansiva th, .tabela_expansiva td {
  text-align: left; /* Left-align text */
  padding: 5px; /* Add padding */
}

.tabela_expansiva tr {
  /* Add a bottom border [Oto all table rows */
  border-bottom: 1px solid #ddd;
}

.tabela_expansiva tr.header, .tabela_expansiva tr:hover {
  /* Add a grey background color to the table header and on hover */
  background-color: #f1f1f1;
}

.tabela_expansiva tr {
  display: none;
}
.tabela_expansiva tr:nth-child(-n+4){
  display: table-row;
}

.tabela_expansiva tr.mais {
    display: table-row;
}

/* orientacao a direita com flex */
/* nao funciona ainda, nao sei pq */
#caixaUsuario
{ 
    display: flex; 
    flex-direction: row-reverse;
} 

/*#caixaUsuario div 
{ 
    width: 100px;
    height: 50px;
}*/

#caixaUsuario p, #caixaUsuario form {
    display: inline;
}

#titulo {
    text-align: center;
}

.central {
    text-align: center;
}

ul.menu {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #e7e7e7;
    background-color: #f3f3f3;
}

ul.menu li {
    float: left;
}

ul.menu li a {
    display: inline-block; /* block? */
    color: #444; /* 666 */
    text-align: center;
    /*padding: 14px 16px;*/
    padding: 8px 16px 8px 16px;
    text-decoration: none;
}

ul.menu li a:hover:not(.active) {
    background-color: #ddd;
}

ul.menu a.active {
    color: white;
    /*background-color: #04AA6D;*/ /* verde */
    background-color: #008CBA; /* azul */
}

.rightli {
    float: right;
}

/*.dropbtn {
  background-color: #4CAF50;
  color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {background-color: #f1f1f1}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}*/

/*ul.vertical {
    list-style-type: none;
    margin: 0;
    padding: 0;
    width: 200px;
    background-color: #f1f1f1;
}

ul.vertical li a {
    display: block;
    color: #000;
    padding: 8px 0 8px 16px;
    text-decoration: none;
}

ul.vertical li a:hover:not(.active) {
    background-color: #555;
    color:white;
}

ul.vertical a.active {
    background-color: #04AA6D;
    color:white;
}*/

/*ul.horizontal {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #333;
}

ul.horizontal li {
    float: left;
}

ul.horizontal li a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
}

ul.horizontal li a:hover:not(.active) {
    background-color: #000;
}

ul.horizontal li a.active {
    background-color:#04AA6D;
}*/

div.arredondado {
  border-radius: 15px; /* 25px */
  border: 2px solid #e7e7e7; /*#73AD21;*/
  padding: 20px;
  min-width: 200px;
  min-height: 150px;
}

div.nowrap {
    overflow-x: auto;
}

/* tabela criada pelo pd.DataFrame.to_html() */
table.dataframe tr:nth-child(even) {
    /*background-color: #f2f2f2; */
    background-color: #edf3fe; /* itunes */
    background-color: #dce2ed
}

table.dataframe {
    border: 1px solid #666666;

    /* faz ficar na vertical se tiver overflow-wrap */
    /*table-layout: fixed;
    width: 100%;*/

    table-layout: auto; /* fixed */
    width: 100%;
}

table.dataframe tbody tr td {
    font-family: "lucida grande", verdana, sans-serif;
    font-size: 7pt;
    padding: 2px 6px;
    border-left: 1px solid #D9D9D9;
    width: 200px;
    inline-size: 100px;
    overflow-wrap: break-all; /*break-word;*/
    hyphens: manual;
    white-space: normal; /* Allow text wrapping */

    /* reticencias */
    /*overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;*/
}


	
/*table.dataframe tbody tr.selected td {
    background-color: #3d80df;
    color: #ffffff;
    font-weight: bold;
    border-left: 1px solid #346DBE;
    border-bottom: 1px solid #7DAAEA;
}*/

/* ver isso 
@media print {
        table {
          page-break-inside: avoid;
        }
        thead {
          display: table-header-group;
        }
      }
*/

/* https://dev.to/dcodeyt/creating-beautiful-html-tables-with-css-428l */ 
.styled-table {
    border-collapse: collapse;
    margin: 5px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.styled-table thead tr {
    background-color: #009879;
    color: #ffffff;
    text-align: left;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid #009879;
}

.styled-table tbody tr.active-row {
    font-weight: bold;
    color: #009879;
}


/*fim*/

/* button 42 do https://getcssscan.com/css-buttons-examples */
.botao {
  background-color: initial;
  background-image: linear-gradient(-180deg, #FF7E31, #E62C03);
  border-radius: 6px;
  box-shadow: rgba(0, 0, 0, 0.1) 0 2px 4px;
  color: #FFFFFF;
  cursor: pointer;
  display: inline-block;
  font-family: Inter,-apple-system,system-ui,Roboto,"Helvetica Neue",Arial,sans-serif;
  height: 40px;
  line-height: 40px;
  outline: 0;
  overflow: hidden;
  padding: 0 20px;
  pointer-events: auto;
  position: relative;
  text-align: center;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  vertical-align: top;
  white-space: nowrap;
  width: 100%;
  z-index: 9;
  border: 0;
  transition: box-shadow .2s;
}

.botao:hover {
  box-shadow: rgba(253, 76, 0, 0.5) 0 3px 8px;
}














/* tree view */
/* https://iamkate.com/code/tree-views/ */
.tree {
  --spacing: 1.5rem;
  --radius: 10px;
}

.tree li {
  display: block;
  position: relative;
  padding-left: calc(2 * var(--spacing) - var(--radius) - 2px);
}

.tree ul {
  margin-left: calc(var(--radius) - var(--spacing));
  padding-left: 0;
}

.tree ul li {
  border-left: 2px solid #ddd;
}

.tree ul li:last-child {
  border-color: transparent;
}

.tree ul li::before {
  content: '';
  display: block;
  position: absolute;
  top: calc(var(--spacing) / -2);
  left: -2px;
  width: calc(var(--spacing) + 2px);
  height: calc(var(--spacing) + 1px);
  border: solid #ddd;
  border-width: 0 0 2px 2px;
}

.tree summary {
  display: block;
  cursor: pointer;
}

.tree summary::marker,
.tree summary::-webkit-details-marker {
  display: none;
}

.tree summary:focus {
  outline: none;
}

.tree summary:focus-visible {
  outline: 1px dotted #000;
}

.tree li::after,
.tree summary::before {
  content: '';
  display: block;
  position: absolute;
  top: calc(var(--spacing) / 2 - var(--radius));
  left: calc(var(--spacing) - var(--radius) - 1px);
  width: calc(2 * var(--radius));
  height: calc(2 * var(--radius));
  border-radius: 50%;
  background: #ddd;
}

.tree summary::before {
  z-index: 1;
  background: #696 url('/static/img/expand-collapse.svg') 0 0;
}

.tree details[open] > summary::before {
    background-position: calc(-2 * var(--radius)) 0;
}
