/*! tailwindcss v4.1.12 | MIT License | https://tailwindcss.com */
@layer properties;
.\@container {
  container-type: inline-size;
}
.visible {
  visibility: visible;
}
.absolute {
  position: absolute;
}
.static {
  position: static;
}
.container {
  width: 100%;
}
.block {
  display: block;
}
.flex {
  display: flex;
}
.grid {
  display: grid;
}
.hidden {
  display: none;
}
.inline-block {
  display: inline-block;
}
.table {
  display: table;
}
.min-h-screen {
  min-height: 100vh;
}
.w-full {
  width: 100%;
}
.transform {
  transform: var(--tw-rotate-x,) var(--tw-rotate-y,) var(--tw-rotate-z,) var(--tw-skew-x,) var(--tw-skew-y,);
}
.resize {
  resize: both;
}
.grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.flex-col {
  flex-direction: column;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.overflow-x-auto {
  overflow-x: auto;
}
.border {
  border-style: var(--tw-border-style);
  border-width: 1px;
}
.text-center {
  text-align: center;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.transition {
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to, opacity, box-shadow, transform, translate, scale, rotate, filter, backdrop-filter, display, visibility, content-visibility, overlay, pointer-events;
  transition-timing-function: var(--tw-ease, ease);
  transition-duration: var(--tw-duration, 0s);
}
.transition-colors {
  transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, --tw-gradient-from, --tw-gradient-via, --tw-gradient-to;
  transition-timing-function: var(--tw-ease, ease);
  transition-duration: var(--tw-duration, 0s);
}
.transition-transform {
  transition-property: transform, translate, scale, rotate;
  transition-timing-function: var(--tw-ease, ease);
  transition-duration: var(--tw-duration, 0s);
}
.hover\:scale-105 {
  &:hover {
    @media (hover: hover) {
      --tw-scale-x: 105%;
      --tw-scale-y: 105%;
      --tw-scale-z: 105%;
      scale: var(--tw-scale-x) var(--tw-scale-y);
    }
  }
}
@property --tw-rotate-x {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-y {
  syntax: "*";
  inherits: false;
}
@property --tw-rotate-z {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-x {
  syntax: "*";
  inherits: false;
}
@property --tw-skew-y {
  syntax: "*";
  inherits: false;
}
@property --tw-border-style {
  syntax: "*";
  inherits: false;
  initial-value: solid;
}
@property --tw-scale-x {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-y {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@property --tw-scale-z {
  syntax: "*";
  inherits: false;
  initial-value: 1;
}
@layer properties {
  @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
    *, ::before, ::after, ::backdrop {
      --tw-rotate-x: initial;
      --tw-rotate-y: initial;
      --tw-rotate-z: initial;
      --tw-skew-x: initial;
      --tw-skew-y: initial;
      --tw-border-style: solid;
      --tw-scale-x: 1;
      --tw-scale-y: 1;
      --tw-scale-z: 1;
    }
  }
}

/* src/styles/NovoPedido.css */

/* Definição de cores e espaçamento */
:root {
  --primary-color: #0c5d3f;
  --secondary-color: #1abc9c;
  --bg-color: #f6fdf8;
  --card-bg: #fff;
  --text-color: #333;
  --light-text-color: #777;
  --border-color: #ccc;
  --shadow-light: 0 2px 5px rgba(0,0,0,0.1);
  --spacing-small: 10px;
  --spacing-medium: 15px;
  --spacing-large: 20px;
}

/* Base da página, removendo margens padrão */
body, html, #root {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  overflow: hidden; /* Controlado pelo dashboard-main-content */
}

/* Estrutura do Dashboard
  (Para replicar o layout fixo sem criar um novo componente)
*/
.dashboard-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
}

.dashboard-header {
  height: 60px;
  background-color: var(--primary-color);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
  font-size: 1.2rem;
  font-weight: bold;
  flex-shrink: 0;
}

.dashboard-nav {
  height: 50px;
  background-color: #2c3e50;
  color: #fff;
  display: flex;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  z-index: 9;
  flex-shrink: 0;
}

.dashboard-nav a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  transition: background-color 0.3s;
  font-size: 0.95rem;
  border-right: 1px solid #34495e;
}

.dashboard-nav a.active {
  background-color: var(--secondary-color);
  color: #fff;
}

.dashboard-main-content {
  flex-grow: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--spacing-large);
}

/* Layout de duas colunas */
.main-grid-container {
  display: grid;
  grid-template-columns: 2fr 1fr; /* Coluna do formulário é maior */
  gap: var(--spacing-large);
  max-width: 1200px;
  margin: 0 auto;
}

.form-column {
  /* Ocupa o espaço da primeira coluna */
}

.lists-column {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-large);
}

/* Estilos do Formulário */
.form-card, .item-list-section, .op-andamento-section {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  padding: var(--spacing-large);
}

.form-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--text-color);
  margin-top: 0;
  margin-bottom: var(--spacing-large);
  border-bottom: 2px solid var(--border-color);
  padding-bottom: var(--spacing-small);
}

.form-group {
  margin-bottom: var(--spacing-large);
}

label {
  display: block;
  font-weight: bold;
  margin-bottom: var(--spacing-small);
}

input[type="text"], input[type="file"], select {
  width: 100%;
  padding: var(--spacing-small);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  box-sizing: border-box;
}

/* Estilo para Radio Buttons */
.radio-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-medium);
}

.radio-group label {
  display: inline;
  font-weight: normal;
  margin-bottom: 0;
}

/* Estilo para o campo de foto */
.image-upload-box {
  border: 2px dashed var(--border-color);
  border-radius: 8px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--light-text-color);
}

/* Estilo para a grade de tamanhos */
.size-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-small);
  text-align: center;
}

.size-item label {
  display: block;
  font-weight: bold;
  margin-bottom: 5px;
}

.size-item input {
  width: 100%;
  text-align: center;
  -moz-appearance: textfield;
}

.size-item input::-webkit-outer-spin-button,
.size-item input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Botão de adicionar item */
.btn-add-item {
  background-color: var(--primary-color);
  color: #fff;
  border: none;
  padding: var(--spacing-small) var(--spacing-medium);
  font-size: 1rem;
  cursor: pointer;
  border-radius: 4px;
  width: 100%;
  margin-top: var(--spacing-large);
  transition: background-color 0.3s;
}

.btn-add-item:hover {
  background-color: #097d58;
}

/* Responsividade para telas menores */
@media (max-width: 768px) {
  .main-grid-container {
    grid-template-columns: 1fr; /* Muda para uma única coluna */
  }
}

/* Cores */
:root {
    --green-lightest: #E8F5E9; /* Fundo */
    --green-light: #A5D6A7;   /* Borda */
    --green-medium: #66BB6A;  /* Botões principais, links */
    --green-dark: #336633;    /* Textos, ícones */
    --white: #FFFFFF;
    --gray: #888;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--green-lightest);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 1rem;
}

.login-box {
    background-color: var(--white);
    padding: 2.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.login-header {
    margin-bottom: 2rem;
}

.logo {
    max-width: 200px;
    height: auto;
    margin: auto;
}

.login-form {
    margin-bottom: 1.25rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1rem;
}

.form-label {
    font-weight: bold;
    color: var(--green-dark);
    margin-bottom: 0.25rem;
    display: block;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
}

.input-with-icon .input-icon {
    position: absolute;
    left: 1rem;
    color: var(--green-dark);
}

.input-with-icon input {
    width: 100%;
    padding: 0.75rem 0.75rem 0.75rem 2.5rem;
    border: 1px solid var(--green-light);
    border-radius: 8px;
    font-size: 1rem;
    color: var(--green-dark);
}

.input-with-icon input::-moz-placeholder {
    color: #aaa;
}

.input-with-icon input::placeholder {
    color: #aaa;
}

.password-icon-toggle {
    position: absolute;
    right: 1rem;
    color: var(--gray);
    cursor: pointer;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    color: var(--green-dark);
}

.remember-me input[type="checkbox"] {
    margin-right: 0.5rem;
}

.form-options a {
    color: var(--green-medium);
    text-decoration: underline;
    cursor: pointer;
}

.btn {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: none;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-primary {
    background-color: var(--green-medium);
    color: var(--white);
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: #5cb85c;
}

.biometric-login {
    margin: 1.25rem 0;
    display: flex;
    justify-content: center;
}

.btn-biometric {
    background-color: var(--green-medium);
    color: var(--white);
    border-radius: 50%;
    width: 6.25rem;
    height: 6.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
}

.btn-biometric span {
    font-size: 0.75rem;
    margin-top: 0.25rem;
}

.fingerprint-icon {
    font-size: 2.5rem;
}

.version-info {
    margin-top: 1.25rem;
    color: var(--gray);
    font-size: 0.75rem;
}

.message-box {
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 8px;
    color: var(--white);
    font-size: 0.875rem;
}

.message-box.error {
    background-color: #ef4444; /* red-500 */
}

.message-box.success {
    background-color: #22c55e; /* green-500 */
}

.message-box.info {
    background-color: #3b82f6; /* blue-500 */
}

.kanban-wrapper {
  display: flex;
overflow-x: auto;
padding: 20px;
gap: 20px;
background-color: #f0f2f5;
min-height: 100vh;
}

.kanban-column {
flex: 0 0 300px;
background-color: #e2e4e6;
border-radius: 8px;
padding: 15px;
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
}

.kanban-title {
font-size: 1.2rem;
font-weight: bold;
margin-bottom: 10px;
text-align: center;
color: #333;
}

.kanban-list {
flex-grow: 1;
display: flex;
flex-direction: column;
gap: 10px;
overflow-y: auto;
padding-right: 5px;
}

.kanban-card {
background-color: #fff;
border-radius: 6px;
padding: 15px;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
cursor: pointer;
transition: transform 0.2s;
}

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

.kanban-card h3 {
font-size: 1rem;
margin-bottom: 5px;
color: #555;
}

.status-tag {
display: inline-block;
background-color: #007bff;
color: #fff;
padding: 4px 8px;
border-radius: 12px;
font-size: 0.75rem;
font-weight: 500;
margin-top: 5px;
}

/* Estilos para o Modal de Detalhes do Pedido */
.pedido-details {
padding: 20px;
text-align: center;
}

.pedido-details h2 {
font-size: 1.5rem;
margin-bottom: 10px;
color: #333;
}

.pedido-details p {
margin: 5px 0;
color: #666;
}

.pedido-foto-container {
max-width: 100%;
margin: 20px auto;
border-radius: 8px;
overflow: hidden;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pedido-foto {
width: 100%;
height: auto;
display: block;
}

.romaneio-list {
margin-top: 20px;
text-align: left;
}

.romaneio-item {
border-bottom: 1px solid #ccc;
padding: 10px 0;
}

.romaneio-item p {
margin: 0;
line-height: 1.4;
}

.romaneio-total {
margin-top: 10px;
text-align: right;
font-size: 1rem;
font-weight: bold;
}

/* Estilos de Grade (Tabela) */
.romaneio-grade {
display: flex;
flex-direction: column;
border: 1px solid #ddd;
border-radius: 4px;
margin-top: 10px;
overflow-x: auto; /* Adiciona rolagem horizontal se a grade for muito larga */
}

.grade-header,
.grade-row {
display: flex;
flex-shrink: 0;
text-align: center;
}

.grade-header {
font-weight: bold;
background-color: #f8f9fa;
padding: 8px 0;
border-bottom: 1px solid #ddd;
}

.grade-row {
padding: 8px 0;
}

.grade-cell {
flex: 1;
padding: 5px;
min-width: 40px; /* Garante que as células não fiquem muito pequenas */
text-align: center;
}

.history-section {
margin-top: 20px;
border-top: 1px dashed #ccc;
padding-top: 15px;
}

.kanban-action-btn {
background-color: #007bff;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
margin-top: 20px;
transition: background-color 0.3s;
}

.kanban-action-btn:hover {
background-color: #0056b3;
}


.kanban-card.retalho {
border: 2px solid #dc3545; /* Borda vermelha para destaque */
background-color: #ffe0e0; /* Fundo vermelho claro */
}

/* --- Ajuste para telas de PC --- */
@media (min-width: 1024px) {
.kanban-wrapper {
width: 90%;
margin: 0 auto;
  }
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    position: relative;
    max-width: 90%;
    max-height: 90%;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.pedido-foto {
    max-width: 100%;
    height: auto;
    margin-top: 15px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.marcar-impresso-btn {
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 15px;
}

.faccao-report-card {
  background: #ecf0f1;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 15px;
  border-left: 5px solid #1abc9c;
}

.faccao-report-card h4 {
  margin-top: 0;
  color: #16a085;
}

.status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: bold;
  margin-left: 10px;
}

.status-pendente {
  background-color: #f39c12;
  color: white;
}

.status-corte {
  background-color: #3498db;
  color: white;
}

.status-costura {
  background-color: #9b59b6;
  color: white;
}

.status-finalizado {
  background-color: #2ecc71;
  color: white;
}

.status-faccao {
  background-color: #e67e22;
  color: white;
}

.filtro-periodo {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 15px;
  align-items: flex-end;
}

.filtro-periodo .form-item {
  display: flex;
  flex-direction: column;
  min-width: 120px;
}

.filtro-periodo button {
  margin-top: 0;
  height: -moz-fit-content;
  height: fit-content;
}

@media (max-width: 600px) {
  .filtro-periodo {
    flex-direction: column;
    align-items: stretch;
  }

  .filtro-periodo .form-item {
    min-width: unset;
    width: 100%;
  }
}

.estoque-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-end;
}

.estoque-form .form-item {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 120px;
}

.estoque-form button {
  flex-grow: 0;
  margin-top: 0;
  padding: 0.75rem;
}

.estoque-alerta {
  background-color: #fdd;
}

.tabela-romaneio {
  width: 100%;
  border-collapse: collapse;
  margin: 10px 0;
}

.tabela-romaneio th,
.tabela-romaneio td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.tabela-romaneio th {
  background-color: #f2f2f2;
}

@media (max-width: 600px) {
  .estoque-form {
    flex-direction: column;
    align-items: stretch;
  }

  .estoque-form .form-item {
    min-width: unset;
    width: 100%;
  }

  .tabela-romaneio {
    font-size: 0.8em;
  }
}

ul#listaHistorico {
  list-style: none;
  padding: 0;
}

ul#listaHistorico li {
  background: #ecf0f1;
  padding: 10px;
  margin-bottom: 5px;
  border-radius: 4px;
}

.order-list-item {
  background: #f9f9f9;
  padding: 15px;
  margin-bottom: 10px;
  border-radius: 8px;
  border-left: 5px solid #3498db;
}

.order-list-item h4 {
  margin: 0 0 5px 0;
  font-size: 1.1em;
  color: #2c3e50;
}

.order-list-item p {
  margin: 0 0 5px 0;
  font-size: 0.9em;
  color: #666;
}

.order-list-item details {
  margin-top: 10px;
}

