* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.fichatec_modal_box *,
.fichatec_produto_box * {
    box-sizing: border-box;
}

body {
  overflow: hidden;
  display: flex;
  height: 100vh;
  background: #000;
}

/* SIDEBAR */

.sidebar {
  width: 100%;
  height: 100vh;
  background: #000;
  position: fixed;
  left: 0;
  top: 0;
  transition: width 0.8s ease-in-out;
  z-index: 10;
}

.sidebar.shrink {
  width: 12%;
  padding-top: 60px;
  padding-left: 20px;
  min-width: 120px;
      display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.8s ease;
  width: 100%;
}

.menu.show {
  opacity: 1;
  transform: translateX(0);
}

.menu h1 {
  color: white;
  margin-bottom: 30px;
  font-size: 28px;
}

.menu button {
  display: block;
  width: 90%;
  margin-bottom: 15px;
  padding: 14px;
  border: none;
  border-radius: 14px;
  background: #111;
  color: white;
  font-size: 16px;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu button:hover {
  background: #222;
  transform: translateX(8px);
}

/* CONTENT */

.content {
  margin-left: 12%;
  width: 88%;
  height: 100vh;
  background: #f5f5f5;
  position: relative;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.sidebar.shrink + .content {
  opacity: 1;
}

/* SCREENS */

.screen {
  display: none;
  opacity: 0;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.screen.active {
  display: flex;
  opacity: 1;
}

/* CARDS */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  width: 80%;
}

.card {
  background: white;
  padding: 25px;
  border-radius: 18px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-8px);
}

.card h3 {
  margin-bottom: 10px;
}

.card p {
  color: #666;
}

.screen h2 {
  font-size: 42px;
  color: #222;
}

/* INSUMOS */
.insumos-wrapper {
  width: 97%;
  height: 94%;
  background: white;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* HEADER */

.table-header {
  margin-bottom: 28px;
}

.table-header h2 {
  font-size: 30px;
  color: #111;
  font-weight: 700;
}

/* CONTAINER TABELA */

.table-container {
  flex: 1;
  overflow-y: auto;
  border-radius: 18px;
  border: 1px solid #eee;
}

/* SCROLL */

.table-container::-webkit-scrollbar {
  width: 8px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

/* TABELA */

.insumos-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.insumos-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
}

.insumos-table th {
  background: #111;
  color: white;
  padding: 18px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
      cursor: default;
}

.insumos-table td {
  padding: 18px;
  border-bottom: 1px solid #eee;
  font-size: 15px;
  color: #333;
}

/* LINHAS */

.insumos-table tr {
  cursor: pointer;
  transition: all 0.22s ease;
}

.insumos-table tbody tr:hover {
  background: #f7f7f7;
  transform: scale(1.005);
}

/* OVERLAY DRAG */

.upload-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.78);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  backdrop-filter: blur(5px);
  animation: fadeIn 0.2s ease;
}

.upload-overlay.active {
  display: flex;
}

.upload-box {
  border: 3px dashed rgba(255,255,255,0.8);
  border-radius: 28px;
  padding: 90px 130px;
  text-align: center;
  color: white;
}

.upload-box h1 {
  font-size: 40px;
  margin-bottom: 14px;
  font-weight: 700;
}

.upload-box p {
  font-size: 18px;
  opacity: 0.8;
}

/* MODAL */

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  backdrop-filter: blur(5px);
}

.modal-overlay.active {
  display: flex;
}

.insumo-modal {
  width: 640px;
  background: white;
  border-radius: 26px;
  padding: 38px;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.18);
  animation: modalIn 0.25s ease;
}

.close-btn {
  position: absolute;
  right: 24px;
  top: 18px;
  border: none;
  background: none;
  font-size: 34px;
  cursor: pointer;
  color: #555;
  transition: 0.2s;
}

.close-btn:hover {
  color: #111;
}

.insumo-modal h2 {
  font-size: 30px;
  color: #111;
  margin-bottom: 26px;
}

.modal-info {
  margin-bottom: 28px;
}

.modal-info p {
  font-size: 18px;
  margin-bottom: 14px;
  color: #333;
}

.modal-info strong {
  color: #111;
}

.fornecedores h3 {
  font-size: 22px;
  margin-bottom: 15px;
}

.fornecedores ul {
  padding-left: 22px;
}

.fornecedores li {
  margin-bottom: 12px;
  font-size: 17px;
  color: #444;
}

/* ANIMAÇÕES */

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}


.input-erro {
    border: 2px solid red !important;
}
.senha-container, .inputContainer{
    position: relative;
    display: inline-block;
  }

  .toggle-senha {
    position: absolute;
    right: 10px;
    top: 60%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 0 5px 0;
  }

  .senha-container input .inputContainer input{
    padding-right: 40px;   
    box-sizing: border-box;
    width: 100%;           
}

  .toggle-senha svg {
    width: 24px;
    height: 24px;
  }

  .tituloLogin{
    color: white;
    white-space: nowrap;
      text-align: center;
  }

  .formularioLogin{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap:10px;
        height: -webkit-fill-available;
    justify-content: center;
  }

  .divFormulario{
    height: 100%;
  }

  .tableInsumos{
    overflow-y: auto;
    overflow-x: hidden;
  }
  .tableInsumos::-webkit-scrollbar {
  width: 6px;
}

.tableInsumos::-webkit-scrollbar-track {
  background: transparent;
}

.tableInsumos::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

.tableInsumos::-webkit-scrollbar-thumb:hover {
  background: #666;
}

.caminho {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  position: relative;
  z-index: 9999;
  padding-left: 10px;
  padding-top: 5px
}

.caminho-item {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #666;
  cursor: pointer;
  transition: 0.2s;
}

.caminho-item:hover {
  color: #000;
  text-decoration: underline;
}

.caminho-separador {
  color: #999;
}






#ficha{
    padding: 30px;
    overflow: hidden;
    perspective: 2200px;
    perspective-origin: left center;
}

.fichatec_stack {
    position: relative;
    width: 100%;
    height: 100%;
}

.fichatec_panel {
    position: absolute;
    width: 100%;
    top: 0;
    left: 0;
    background: white;
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    transition: all 0.65s cubic-bezier(0.23, 1, 0.32, 1);
    transform-origin: left center;
    backface-visibility: hidden;
}

.fichatec_panel_active {
    transform: translateX(0) rotateY(0deg);
    opacity: 1;
    z-index: 3;
}

/* PAINEL ANTIGO VAI PARA TRÁS À ESQUERDA */
.fichatec_panel_recuado {
    transform: translateX(-120px) rotateY(28deg) scale(0.9);
    opacity: 0.55;
    z-index: 1;
    filter: blur(1px);
}

/* NOVO PAINEL VEM DA DIREITA */
#fichatec_panel_variacoes {
    transform: translateX(110%);
    opacity: 0;
    z-index: 4;
}

#fichatec_panel_variacoes.fichatec_panel_active {
    transform: translateX(0);
    opacity: 1;
}

.fichatec_title {
    margin-bottom: 20px;
}

.fichatec_table {
    width: 100%;
    border-collapse: collapse;
}

.fichatec_table th {
    text-align: left;
    padding: 15px;
    background: #f5f7fa;
    font-weight: 600;
}

.fichatec_table td {
    padding: 15px;
    border-bottom: 1px solid #ececec;
}

.fichatec_table tbody tr {
    cursor: pointer;
    transition: 0.25s;
}

.fichatec_table tbody tr:hover {
    background: #f8fbff;
    transform: translateX(8px);
}

.fichatec_header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.fichatec_back_btn {
    border: none;
    background: #f1f4f8;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 18px;
}

.fichatec_topbar{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

.fichatec_add_btn{
    width:46px;
    height:46px;
    border:none;
    border-radius:50%;
    background:#2f80ed;
    color:white;
    font-size:28px;
    cursor:pointer;
    transition:.25s;
}

.fichatec_add_btn:hover{
    transform:scale(1.08);
}

.fichatec_modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.35);
    display:none;
    justify-content:center;
    align-items:center;
    z-index:999;
}

.fichatec_modal_active{
    display:flex;
}

.fichatec_modal_box{
    background:white;
    padding:30px;
    border-radius:6px;
    min-width:420px;
    box-shadow:0 20px 60px rgba(0,0,0,.18);
        max-width: 1300px;
}

.fichatec_modal_box input{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
}

.fichatec_modal_actions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    margin-top:20px;
}

.fichatec_modal_actions button{
    border:none;
    padding:12px 20px;
    border-radius:12px;
    cursor:pointer;
}

.fichatec_modal_box textarea{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
    min-height:90px;
    resize:none;
    font-family:inherit;
}

.fichatec_produto_ref{
    background:#f5f7fa;
    padding:14px;
    border-radius:12px;
    margin:14px 0;
    font-size:15px;
        width: 750px;
}

.fichatec_modal_box select{
    width:100%;
    padding:14px;
    border:1px solid #ddd;
    border-radius:12px;
    background:white;
}

.fichatec_produto_box{
    width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.fichatec_secao{
    margin-bottom: 25px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 12px;
}

.fichatec_secao h4{
    margin-bottom: 15px;
}

.fichatec_tamanhos{
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fichatec_item_row{
    display: flex;
    gap: 20px;
    align-items: end;
    margin-bottom: 10px;
}

.fichatec_valor_box{
        min-width: 140px;
    display: flex;
    flex-direction: column;
}

.fichatec_valor_box span{
    font-weight: bold;
    font-size: 18px;
}

.aviamento_row{
    display: flex;
    gap: 15px;
    margin-bottom: 12px;
    align-items: end;
}

.campo {
    gap: 2px;
    display: flex;
    flex-direction: column;
        margin-top: 10px;
}


.fichatec_tamanhos {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.fichatec_tamanhos label {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 60px;
    cursor: pointer;
    font-size: 14px;
}

.fichatec_tamanhos input[type="checkbox"] {
    margin: 0;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.removerAviamento{
    height: -webkit-fill-available;
    width: 90px;
    background: transparent;
    border: 1px solid #b7b7b7;
    color: #b7b7b7;
    border-radius: 10px;
}

.removerAviamento:hover{
color: red;
 cursor: pointer;
 border: 1px solid red;
}

.buttonAdicionarAviamento{
  display: flex;
    width: stretch;
    justify-content: center;
}

.buttonAdicionarAviamento button{
    height: 40px;
    width: 40px;
    background: transparent;
    border: 1px solid #b7b7b7;
    color: #b7b7b7;
    border-radius: 50%;
}

.buttonAdicionarAviamento button:hover{
  color: rgb(5, 159, 0);
 cursor: pointer;
 border: 1px solid rgb(5, 159, 0);
}

.fichatec_total_box{
    display: flex;
    flex-direction: column;
}
.fichatec_total_box span{
    font-weight: bold;
}

.fichatec_resumo_custos {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 25px;
}

.custo_card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.custo_card label {
    display: block;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
}

.custo_card span {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

.custo_total {
    background: #111827;
}

.custo_total label,
.custo_total span {
    color: white;
}

.secaoSuperior{
  display: flex;
  flex-direction: row;
}

.campoEsquerdo{
  width: stretch;
}

.campoImagem {
    display: flex;
    flex-direction: column;
}

.previewImagem {
    width: 180px;
    height: 145px;
    border: 2px dashed #d7d2cc;
    border-radius: 10px;
    background: #f3f1ee;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    margin: 0px 10px;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;

    transition: 0.25s ease;
}

.previewImagem:hover {
    background: #ece9e4;
    border-color: #c8c1b8;
}

.campoImagem label{
  margin-left: 10px;
}

#preview_placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6e655d;
    text-align: center;
    gap: 10px;
    font-size: 15px;
}

.iconeCamera {
    font-size: 28px;
    color: white;
    width: 42px;
    height: 42px;
    border-radius: 8px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#preview_produto_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}





.fichatec_modal_box.fichatec_produto_box {
    scrollbar-width: thin;
    scrollbar-color: #b8b1a8 transparent;
}

/* Track */
::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); 
    -webkit-border-radius: 10px;
    border-radius: 10px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    -webkit-border-radius: 10px;
    border-radius: 10px;
    background: rgba(255,0,0,0.8); 
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); 
}


.camposVariacao{
  display: flex;
  flex-direction: column;
  gap: 10px
}


.fichatec_variacao_box{
    max-width: 900px;
    max-height: 85vh;
    overflow-y: auto;
}

.variacao_resumo_base{
    display:flex;
    gap:15px;
    margin:20px 0;
}

.variacao_info_card{
    flex:1;
    padding:14px;
    border-radius:12px;
    background:#f8f8f8;
    display:flex;
    flex-direction:column;
}

.variacao_info_card span{
    font-size:12px;
    color:#666;
}

.variacao_info_card strong{
    font-size:20px;
}

.variacao_info_card.destaque{
    background:#111;
    color:white;
}

.variacao_aviamentos{
    margin-top:20px;
}

.custo_item{
    display:flex;
    justify-content:space-between;
    padding:10px 0;
    border-bottom:1px solid #eee;
}

.custo_item.total{
    font-size:20px;
    font-weight:bold;
}


.variacao_add_row{
    display:flex;
    gap:10px;
    margin-bottom:15px;
}

.variacao_add_row select{
    flex:1;
}

.aviamento_row{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px;
    border:1px solid #eee;
    border-radius:10px;
    margin-bottom:8px;
}

.aviamento_row button{
    background:#111;
    color:white;
    border:none;
    border-radius:8px;
    padding:6px 10px;
    cursor:pointer;
}

.aviamento_row{
    display:grid;
    grid-template-columns: 2fr 100px 120px;
    gap:12px;
    align-items:center;
    padding:12px;
    border:1px solid #eee;
    border-radius:10px;
    margin-bottom:10px;
}

.aviamento_nome{
    display:flex;
    flex-direction:column;
}

.aviamento_nome small{
    color:#666;
    font-size:12px;
}

.aviamento_qtd{
    text-align:center;
}

.fichatec_title_box {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fichatec_edit_btn {
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    transition: 0.2s;
    border-radius: 6px;
}

.fichatec_edit_btn:hover {
    background: rgba(255,255,255,0.08);
    transform: scale(1.1);
}

.variacao_add_row button{
      padding: 0px 20px
}

.btn_producao {
    background: #1f8b4c;
    color: white;
    border: none;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    transition: 0.2s;
}

.btn_producao:hover {
    background: #17693a;
}

.drag_handle {
    cursor: grab;
    text-align: center;
    width: 50px;
}

.dragging {
    opacity: 0.5;
}

#fila_producao_body tr {
    transition: 0.15s;
}



/* =========================================
   OVERLAY
========================================= */

.producao_popup_overlay {

    position: fixed;

    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 999999;
}


/* =========================================
   BOX
========================================= */

.producao_popup_box {

    width: 850px;

    max-width: 95vw;

    max-height: 85vh;

    overflow: hidden;

    background: #ffffff;

    border-radius: 18px;

    box-shadow:
        0 10px 35px rgba(0,0,0,0.18);

    display: flex;

    flex-direction: column;
}


/* =========================================
   HEADER
========================================= */

.producao_popup_header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding: 22px 24px;

    border-bottom: 1px solid #ececec;
}

.producao_popup_title {

    margin: 0;

    font-size: 22px;

    font-weight: 700;

    color: #222;
}

.producao_popup_close {

    border: none;

    background: transparent;

    width: 40px;

    height: 40px;

    border-radius: 10px;

    cursor: pointer;

    font-size: 28px;

    transition: 0.2s;
}

.producao_popup_close:hover {

    background: #f2f2f2;
}


/* =========================================
   DESCRIÇÃO
========================================= */

.producao_popup_desc {

    padding:
        18px
        24px
        10px
        24px;

    font-size: 14px;

    color: #666;

    line-height: 1.5;
}


/* =========================================
   TABELA WRAPPER
========================================= */

.producao_popup_table_wrapper {

    overflow: auto;

    padding: 10px 24px 20px 24px;

    flex: 1;
}


/* =========================================
   TABELA
========================================= */

.producao_popup_table {

    width: 100%;

    border-collapse: collapse;
}

.producao_popup_table thead tr {

    background: #f7f7f7;
}

.producao_popup_table th {

    padding: 14px;

    text-align: left;

    font-size: 14px;

    font-weight: 700;

    color: #333;

    border-bottom: 1px solid #e5e5e5;
}

.producao_popup_table td {

    padding: 14px;

    border-bottom: 1px solid #efefef;

    font-size: 14px;

    color: #444;
}

.producao_popup_table tbody tr:hover {

    background: #fafafa;
}


/* =========================================
   COLUNA FALTANDO
========================================= */

.producao_popup_faltando {

    color: #d32f2f;

    font-weight: 700;
}


/* =========================================
   FOOTER
========================================= */

.producao_popup_footer {

    display: flex;

    justify-content: flex-end;

    padding: 20px 24px;

    border-top: 1px solid #ececec;
}


/* =========================================
   BOTÃO
========================================= */

.producao_popup_btn {

    border: none;

    background: #111827;

    color: white;

    padding:
        12px
        22px;

    border-radius: 12px;

    cursor: pointer;

    font-size: 14px;

    font-weight: 600;

    transition: 0.2s;
}

.producao_popup_btn:hover {

    background: #1f2937;
}


.btn_logout {
    width: 42px;
    height: 42px;
    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;

    transition: background 0.2s ease;
}

.btn_logout:hover {
    background: rgba(255, 255, 255, 0.12);
}

.configs{
  display: flex;
    align-content: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.8s ease;
}

.configs.show{
  opacity: 1;
}

.btn_admin {
    width: 42px;
    height: 42px;

    border: none;
    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 10px;
    cursor: pointer;

    transition: background 0.2s ease;
}

.btn_admin:hover {
    background: rgba(255,255,255,0.12);
}

.admin_top_menu{
    width:100%;
    display:flex;
    gap:12px;
    padding:15px;
    background:#ffffff;
    border-bottom:1px solid #dcdcdc;
    flex-wrap:wrap;
}

.admin_top_btn{
    border:none;
    padding:12px 18px;
    border-radius:10px;
    cursor:pointer;
    background:#f1f1f1;
    font-size:14px;
    font-weight:600;
    transition:0.2s;
}

.admin_top_btn:hover{
    background:#e2e2e2;
}

.admin_top_btn.active{
    background:#1f2937;
    color:white;
}

.admin_tab_container{
    width:100%;
    padding:20px;
}

.admin_tab_content{
    display:none;
    animation:fadeAdmin .2s ease;
}

.admin_tab_content.active{
    display:block;
}

@keyframes fadeAdmin{
    from{
        opacity:0;
        transform:translateY(5px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

.admin_users_header{
    margin-bottom:20px;
}

.admin_users_header h2{
    font-size:24px;
    font-weight:700;
    color:#1f2937;
}

.admin_users_table_wrapper{
    width:100%;
    overflow:auto;
    background:white;
    border-radius:14px;
    border:1px solid #e5e7eb;
}

.admin_users_table{
    width:100%;
    border-collapse:collapse;
    min-width:700px;
}

.admin_users_table thead{
    background:#f9fafb;
}

.admin_users_table th{
    text-align:left;
    padding:16px;
    font-size:13px;
    font-weight:700;
    color:#6b7280;
    border-bottom:1px solid #e5e7eb;
}

.admin_users_table td{
    padding:16px;
    border-bottom:1px solid #f1f1f1;
    font-size:14px;
    color:#111827;
}

.admin_users_table tr:hover{
    background:#fafafa;
}

.admin_perm_badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:6px 12px;
    border-radius:999px;
    background:#e5e7eb;
    font-size:12px;
    font-weight:700;
    color:#111827;
}

.admin_users_header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:20px;
}

.admin_add_user_btn{
    border:none;
    background:#111827;
    color:white;
    padding:12px 18px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

.admin_action_btn{
    border:none;
    padding:8px 12px;
    border-radius:8px;
    cursor:pointer;
    font-size:13px;
    font-weight:700;
}

.admin_edit_btn{
    background:#dbeafe;
    color:#1d4ed8;
}

.admin_locked_btn{
    background:#f3f4f6;
    color:#9ca3af;
    cursor:not-allowed;
}

.admin_user_popup_overlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.4);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:9999;
}

.admin_user_popup{
    width:500px;
    max-width:95%;
    background:white;
    border-radius:18px;
    padding:25px;
}

.admin_user_popup_header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:20px;
}

.admin_popup_close{
    border:none;
    background:none;
    font-size:20px;
    cursor:pointer;
}

.admin_user_form_group{
    display:flex;
    flex-direction:column;
    margin-bottom:18px;
}

.admin_user_form_group label{
    margin-bottom:8px;
    font-size:14px;
    font-weight:700;
}

.admin_user_form_group input,
.admin_user_form_group select{
    height:45px;
    border:1px solid #d1d5db;
    border-radius:10px;
    padding:0 14px;
    font-size:14px;
}

.admin_user_popup_actions{
    display:flex;
    gap:12px;
    margin-top:25px;
}

.admin_salvar_btn{
    flex:1;
    height:45px;
    border:none;
    border-radius:10px;
    background:#111827;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.admin_excluir_btn{
    width:120px;
    border:none;
    border-radius:10px;
    background:#dc2626;
    color:white;
    font-weight:700;
    cursor:pointer;
}

.aba_valor_container{
    padding:20px;
}

.aba_valor_card{
    background:#fff;
    border-radius:12px;
    padding:20px;
    box-shadow:0 2px 10px rgba(0,0,0,0.08);
    max-width:450px;
}

.aba_valor_titulo{
    font-size:18px;
    font-weight:600;
    margin-bottom:15px;
    color:#222;
}

.aba_valor_conteudo{
    display:flex;
    gap:10px;
    align-items:center;
}

.aba_valor_input{
    flex:1;
    height:42px;
    border:1px solid #dcdcdc;
    border-radius:8px;
    padding:0 12px;
    font-size:15px;
    outline:none;
}

.aba_valor_input:focus{
    border-color:#4f46e5;
}

.aba_valor_botao{
    height:42px;
    padding:0 18px;
    border:none;
    border-radius:8px;
    background:#4f46e5;
    color:#fff;
    font-weight:600;
    cursor:pointer;
    transition:0.2s;
}

.aba_valor_botao:hover{
    opacity:0.9;
}

.aba_valor_input_wrapper{
    position:relative;
    flex:1;
}

.aba_valor_input{
    width:100%;
    padding-right:35px;
}

.aba_valor_percentual{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    color:#666;
    font-size:15px;
    font-weight:600;
    pointer-events:none;
}

.variacao_margem_box{
    margin-top:20px;
    display:flex;
    flex-direction:column;
    gap:10px;
}

.variacao_margem_top{
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.variacao_margem_check{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    cursor:pointer;
}

.variacao_margem_input_wrap{
    position:relative;
    width:180px;
}

.variacao_margem_input_wrap span{
    position:absolute;
    right:12px;
    top:50%;
    transform:translateY(-50%);
    font-weight:600;
    color:#666;
    pointer-events:none;
}

.variacao_margem_input{
    width:100%;
    padding-right:30px;
}

.variacao_margem_input:disabled{
    background:#e5e5e5;
    cursor:not-allowed;
    opacity:0.8;
}

.popupConfirmarExcluirOverlay{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.45);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:999999;
}

.popupConfirmarExcluirOverlay.active{
    display:flex;
}

.popupConfirmarExcluirBox{
    width:420px;
    background:white;
    border:2px solid black;
    border-radius:10px;
    overflow:hidden;
    box-shadow:0 10px 30px rgba(0,0,0,0.35);
    animation:popupFade .18s ease;
}

.popupConfirmarExcluirHeader{
    background:black;
    color:white;
    text-align:center;
    padding:14px;
    font-size:20px;
    font-weight:700;
}

.popupConfirmarExcluirContent{
    padding:24px;
    color:#222;
    font-size:15px;
    line-height:1.5;
    text-align:center;
}

.popupConfirmarExcluirActions{
    display:flex;
    justify-content:flex-end;
    gap:12px;
    padding:18px;
    border-top:1px solid #dcdcdc;
}

.popupConfirmarExcluirActions button{
    border:none;
    padding:10px 18px;
    border-radius:6px;
    cursor:pointer;
    font-weight:600;
}

.popupBtnCancelar{
    background:#dcdcdc;
}

.popupBtnExcluir{
    background:#c62828;
    color:white;
}

.popupBtnExcluir:hover{
    background:#b71c1c;
}

@keyframes popupFade{
    from{
        transform:scale(0.92);
        opacity:0;
    }
    to{
        transform:scale(1);
        opacity:1;
    }
}





















#orcamentos{
    padding:20px;
    overflow:auto;
    height:100%;
    box-sizing:border-box;
    align-items: flex-start;
}

.orcamentos-wrapper{
    display:flex;
    flex-direction:column;
    gap:18px;
    justify-content: flex-start;
    align-items: center;
}

.orcamentos-topo{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    flex-wrap:wrap;
}

.orcamentos-filtros-status{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.orcamento-status-btn{
    border:none;
    padding:8px 16px;
    border-radius:999px;
    background:#eceae7;
    cursor:pointer;
    font-size:14px;
    transition:0.2s;
}

.orcamento-status-btn.active{
    background:#111;
    color:white;
}

#filtroOrcamentos{
    padding:10px 14px;
    border-radius:12px;
    border:1px solid #cfcfcf;
    min-width:260px;
    outline:none;
}

.orcamentos-lista{
    display:flex;
    flex-direction:column;
    gap:14px;
    width: stretch;
}

.orcamento-card{
    background:white;
    border:1px solid #d8d8d8;
    border-radius:12px;
    padding:18px 22px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    transition:0.2s;
    cursor:pointer;
}

.orcamento-card:hover{
    transform:translateY(-2px);
    box-shadow:0 4px 14px rgba(0,0,0,0.08);
}

.orcamento-info{
    display:flex;
    flex-direction:column;
    gap:6px;
        width: stretch;
}

.orcamento-top{
    display:flex;
    gap:10px;
    align-items:center;
    color:#7a7a7a;
    font-size:13px;
}

.orcamento-id{
    font-weight:700;
    color:#666;
}

.orcamento-empresa{
    font-size:24px;
    font-weight:700;
    color:#111;
}

.orcamento-detalhes{
    color:#6b6b6b;
    font-size:15px;
}

.orcamento-lateral{
    display:flex;
    flex-direction:column;
    align-items:flex-end;
    gap:10px;
}

.orcamento-valor{
    font-size:28px;
    font-weight:800;
    color:#0d6a3c;
    white-space: nowrap;
}

.orcamento-status{
    padding:6px 14px;
    border-radius:999px;
    font-size:13px;
    font-weight:700;
}

.orcamento-status.aprovado{
    background:#dff5e7;
    color:#137a45;
}

.orcamento-status.analise{
    background:#fff0dc;
    color:#d26b00;
}

.orcamento-status.reprovado{
    background:#ffe3e3;
    color:#b42323;
}

.orcamento-status.rascunho{
    background:#ececec;
    color:#555;
}

.orcamentos-header{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:10px;
}

.btn-novo-orcamento{
    border:none;
    background:#111;
    color:white;
    padding:12px 18px;
    border-radius:12px;
    font-size:15px;
    font-weight:700;
    cursor:pointer;
    transition:0.2s;
}

.btn-novo-orcamento:hover{
    transform:translateY(-2px);
    background:#000;
}

.orcamentos-topo{
    margin-top:18px;
}

.orcamento-form{
    display:flex;
    flex-direction:column;
    gap:12px;
    margin-top:12px;
    width:stretch;
}

.orcamento-input{
    border:1px solid #d4d4d4;
    border-radius:10px;
    padding:12px;
    font-size:14px;
    outline:none;
    width:stretch;
}

.orcamento-textarea{
    border:1px solid #d4d4d4;
    border-radius:10px;
    padding:12px;
    font-size:14px;
    outline:none;
    resize:vertical;
    min-height:90px;
}

.btn-salvar-orcamento{
    border:none;
    background:#111;
    color:white;
    padding:12px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
    transition:0.2s;
}

.btn-salvar-orcamento:hover{
    background:black;
}
.orcamento-botoes{
    display:flex;
    gap:10px;
}

.btn-cancelar-orcamento{
    border:none;
    background:#d9d9d9;
    color:#111;
    padding:12px;
    border-radius:10px;
    cursor:pointer;
    font-weight:700;
}

.btn-add-produto{
    border:none;
    background:#111;
    color:white;
    padding:0 18px;
    border-radius:10px;
    cursor:pointer;
}

.orcamento-produtos{
    display:flex;
    flex-direction:column;
    gap:12px;
}

.orcamento-produtos-topo{
    display:flex;
    gap:10px;
}

.lista-produtos-orcamento{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.produto-orcamento-item{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:12px;
    border:1px solid #d9d9d9;
    border-radius:10px;
}

.produto-orcamento-acoes{
    display:flex;
    align-items:center;
    gap:10px;
}

.produto-qtd-input{
    width:70px;
    padding:8px;
    border-radius:8px;
    border:1px solid #ccc;
}

.btn-remover-produto{
    border:none;
    background:#ffebeb;
    color:#b40000;
    width:34px;
    height:34px;
    border-radius:8px;
    cursor:pointer;
}

.orcamento-total{
    font-size:20px;
    font-weight:700;
    margin-top:10px;
}




.status-wrapper{
    position:relative;
    display:inline-block;
}

.status-menu{
    position:absolute;
    top:110%;
    left:50%;
    transform:translateX(-50%);
    display:none;
    flex-direction:row;
    background:white;
    border:1px solid #ddd;
    border-radius:10px;
    box-shadow:0 4px 12px rgba(0,0,0,.15);
    overflow:hidden;
    z-index:999;
    white-space:nowrap;
    padding: 5px;
    gap: 5px;
}


.status-menu div{
    padding:10px 14px;
    cursor:pointer;
    font-size:12px;
    font-weight:700;
    transition:.2s;
}


.status-menu div:hover{
    background:#f5f5f5;
}

.status-menu div:nth-child(1){
    background-color:#b42323;
    color:white;
    border-radius: 999px;

}

.status-menu div:nth-child(2){
    background: #ececec;
    color: #555;
    border-radius: 999px;
}

.status-menu div:nth-child(3){
    background: #dff5e7;
    color: #137a45;
    border-radius: 999px;
}


body.status-menu-aberto .orcamento-card:hover{
    transform:none;
    box-shadow:inherit;
}

body:not(.status-menu-aberto) .orcamento-card:hover{
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}



.fichatec_item_row_extras{
    display: flex;
    flex-direction:row;
    gap: 5px
}



.fichatec_item_row_outer{
        gap: 10px;
    display: flex;
    flex-direction: column;
}


.interFichaTec{
    width: stretch;
    width: -webkit-fill-available;
}

.orcamento-vazio{
    text-align:center;
    padding:40px;
    color:#888;
}

.estelas-sidebar-mobile-btn, .button-mobile-sidebar{
    display: none;
}

@media (max-width: 768px){

    .button-mobile-sidebar{
        display: flex;
        justify-content: flex-end;
        align-items: center;
        align-content: center;
                padding-right: 1px;
    }
    .estelas-sidebar-mobile-btn {
        display: flex;
        align-items: center;
        justify-content: center;


        width: 48px;
        height: 48px;

        border: none;
        border-radius: 8px;
        background: #000;
        color: #fff;

        font-size: 28px;
        cursor: pointer;

        z-index: 99999;

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }


.estelas-sidebar-mobile-btn.estelas-sidebar-mobile-btn-visible {
    opacity: 1;
    pointer-events: auto;
}

    #sidebar{
        width: 250px !important;
        height: 100vh;

        position: fixed;
        top: 0;
        left: -202px;

        padding-top: 80px;
        padding-left: 20px;

        transition: left .3s ease;
        z-index: 9998;
    }

        .estelas-sidebar-mobile-btn.estelas-sidebar-mobile-btn-open {
        left: 275px;
    }

    #sidebar.estelas-sidebar-mobile-open{
        left: 0;
    }

    #sidebar.shrink{
        width: 250px !important;
        min-width: unset;
        padding-top: 20px;
        padding-left: 20px;
    }

    #menu,
    #configs{
        opacity: 0 ;
        display: flex !important;
        flex-direction: column;
        gap: 10px;
    }
    .menu.show, .configs.show{
    opacity: 1 !important;
    transform: translateX(0);
}
.caminho{
    display: none
}



.insumos-table {
    background: transparent;
  }

  .insumos-table thead {
    display: none;
  }

  .insumos-table,
  .insumos-table tbody,
  .insumos-table tr,
  .insumos-table td {
    display: block;
    width: 100%;
  }

  .insumos-table tbody {
    padding: 0;
  }

  /* Cada linha da tabela vira um card */
  .insumos-table tbody tr {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    margin-bottom: 16px;
    padding: 8px 16px;
    box-sizing: border-box;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    transform: none !important;
  }

  .insumos-table tbody tr:hover {
    background: #fff;
    transform: none !important;
  }

  .insumos-table td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;

    padding: 11px 0;
    border-bottom: 1px solid #eeeeee;

    text-align: right;
    font-size: 14px;
    color: #222;
    word-break: break-word;
  }

  .insumos-table td:last-child {
    border-bottom: none;
  }

  /* Nome dos campos: ID, Unidade, Categoria etc */
  .insumos-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: #777;
    text-align: left;
    flex-shrink: 0;
  }

  /* Nome do insumo vira o título principal do card */
  .insumos-table td.insumo-nome {
    display: block;
    padding: 13px 0 15px;
    margin-bottom: 4px;

    font-size: 17px;
    line-height: 1.25;
    font-weight: 700;
    color: #111;
    text-align: left;

    border-bottom: 1px solid #dddddd;
  }

  .insumos-table td.insumo-nome::before {
    display: none;
  }

  /* ID fica mais discreto */
  .insumos-table td:first-child {
    font-size: 13px;
    color: #555;
  }

  /* Mensagens de tabela vazia/erro */
  .insumos-table td.empty-table {
    display: block;
    text-align: center;
    padding: 24px 10px;
    border: none;
  }

  .insumos-table td.empty-table::before {
    display: none;
  }
    .fichatec_panel {
        width: 100%;
        min-width: 0;
    }

    .fichatec_topbar {
        gap: 12px;
        align-items: center;
    }

    .fichatec_title {
        font-size: 23px;
    }

    .fichatec_table {
        width: 100%;
        background: transparent;
        border-collapse: separate;
        border-spacing: 0;
        overflow: scroll;
        height: 65vh;
    }

    /* Esconde os títulos da tabela no mobile */
    .fichatec_table thead {
        display: none;
    }

    .fichatec_table,
    .fichatec_table tbody,
    .fichatec_table tr,
    .fichatec_table td {
        display: block;
        width: 100%;
    }

    /* Cada produto/variação vira um card */
    .fichatec_table tbody tr {
        background: #fff;
        border: 1px solid #e5e5e5;
        border-radius: 16px;
        margin-bottom: 16px;
        padding: 8px 15px;
        box-sizing: border-box;
        box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
    }

    .fichatec_table tbody tr:hover {
        transform: none !important;
    }

    .fichatec_table td {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;

        padding: 10px 0;
        border-bottom: 1px solid #eeeeee;

        font-size: 14px;
        text-align: right;
        word-break: break-word;
    }

    .fichatec_table td:last-child {
        border-bottom: none;
    }

    /* Rótulos: Código, Categoria, Preço etc */
    .fichatec_table td::before {
        content: attr(data-label);
        color: #777;
        font-size: 13px;
        font-weight: 700;
        text-align: left;
        flex-shrink: 0;
    }

    /* Produto ou nome da variação fica como título do card */
    .fichatec_table td.fichatec_nome_produto {
        display: block;
        padding: 13px 0 14px;
        margin-bottom: 4px;

        border-bottom: 1px solid #dddddd;

        color: #111;
        font-size: 17px;
        font-weight: 700;
        line-height: 1.25;
        text-align: left;
    }

    .fichatec_table td.fichatec_nome_produto::before {
        display: none;
    }

    /* Botão de produção ocupa melhor o espaço */
    .fichatec_table td.fichatec_acoes {
        display: block;
        padding-top: 14px;
    }

    .fichatec_table td.fichatec_acoes::before {
        display: none;
    }

    .fichatec_table td.fichatec_acoes .btn_producao {
        width: 100%;
        justify-content: center;
        padding: 11px 14px;
    }

    /* Ajuste do cabeçalho de variações */
    .fichatec_header {
        min-width: 0;
    }

    .fichatec_title_box {
        min-width: 0;
    }

    #fichatec_variacoes_title {
        max-width: 190px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .fichatec_resumo_custos{
        grid-template-columns: repeat(2, 1fr) !important;
    }

.fichatec_modal{
        z-index: 999999;
}
.aviamento_row{
        grid-template-columns: 2fr 46px 89px !important;
}

    
}

