* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: var(--cinza-escuro);
    background-color: var(--branco);
    line-height: 1.6;
}

h1, h2, h3, h4 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
}

h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
}

h2 {
    font-size: 2.2rem;
    color: var(--cinza-escuro);
    text-align: center;
}

.card {
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: none;
}

.img-thumbnail {
    border: 2px solid #dee2e6;
}

.alert {
    border: none;
    border-radius: 8px;
}

.form-group img {
    width: 400px;
    height: auto;
    border-radius: 20px;
    margin-top: 30px;
    align-self: center;

}

.destaque {
    font-family: 'Pacifico', cursive;
    color: var(--coral);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.responsive-table {
  width: 90%;
  overflow-x: auto;
  margin: auto;
}

.stock-table {
    width: 100%;
    min-width: var(--table-min-width);
    border-collapse: collapse;
}

caption {
    text-align: center!important;
}

.table-caption {
    font-size: var(--small-font-size);
    font-weight: bold;
    padding: var(--spacing);
}

.table-row {
    text-align: left;
    text-overflow: ellipsis;
    transition: background-color var(--transition-fast) ease-in-out;
}

.table-row:nth-of-type(2n) {
    background: var(--clr-dark-shadow-5);
}

.table-row:not(.table-row-header):hover {
    background: var(--clr-dark-shadow-10);
}

.table-row-header {
    background: var(--clr-light-gray);
    color: var(--clr-black);
}

.table-cel,
.table-header {
    padding: var(--spacing);
}

.table-link {
    color: var(--link-dark-color);
    transition: color var(--transition-fast) ease-in-out;
    text-decoration: none;
}

.table-link:hover {
    color: var(--clr-black);
}

.social-links a:hover {
    background-color: #FF6B6B;
    transform: translateY(-3px);
}

.search {
    display: flex;
    justify-content: center;
}

.search-form {
    padding: var(--spacing);
    width: 100%;
    max-width: 1200px;
}

.search-input {
    font-size: var(--small-font-size);
    padding: 1rem 2rem;
    width: 100%;
    max-width: 300rem;
    border-radius: var(--default-border-radius);
    border: 1px solid var(--link-light-color);
}

.search-input:focus {
    box-shadow: 0 0 15px var(--link-light-color);       
}

.message {
    max-width: 700px;
    margin: var(--spacing) auto;
    margin-top: calc(var(--spacing) * 2);
    padding: var(--spacing);
    text-align: center;
    border-radius: var(--default-border-radius);
    font-size: var(--smaller-font-size);
}

.message.success {
    background: rgba(0, 255, 0, 0.3);
    border: 1px solid rgba(0, 255, 0, 90%);
}

.message.error {
    background: rgba(255, 0, 0, 0.3);
    border: 1px solid rgba(255, 0, 0, 90%);
}

.message.warning {
    background: rgba(255, 255, 0, 0.3);
    border: 1px solid rgba(255, 255, 0, 90%);
}

.message.info {
    background: rgba(0, 0, 255, 0.3);
    border: 1px solid rgba(0, 0, 255, 0.3);
}

.form-wrapper {
    max-width: 60rem;
    margin: var(--spacing) auto;
}

.form-content {
    margin: var(--spacing) 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--spacing);
}
.errorlist {
    list-style: none;
    font-size: var(--smaller-font-size);
    color: tomato;
}
.errorlist.nonfield {
    color: inherit;
}

.form-group p {
    margin: 1em 0;
}

.form-group .help-text,
.form-group .help-text ~ ul {
    margin: 0;
    font-size: var(--smallest-font-size);
    list-style: none;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 1rem;
    border-radius: var(--default-border-radius);
    border: 1px solid var(--link-dark-color);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    box-shadow: 0 0 5px var(--link-dark-color);
}

.form-group label {
    font-size: var(--smaller-font-size);
}

.status-card {
    transition: transform 0.2s;
    cursor: pointer;
}
.status-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
.produto-preview {
    max-width: 150px;
    max-height: 150px;
    object-fit: cover;
    border-radius: 8px;
}
.file-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    transition: border-color 0.3s;
}
.file-upload-area:hover {
    border-color: #0d6efd;
}
.form-floating-custom {
    position: relative;
}
.floating-label {
    position: absolute;
    top: 8px;
    left: 12px;
    font-size: 0.875rem;
    color: #6c757d;
    background: white;
    padding: 0 4px;
    z-index: 2;
}

.item-orcamento {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}
.produto-info {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
}
.preview-imagem {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 6px;
}
.arquivo-preview {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
}

.item-orcamento {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}
.produto-info {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    display: none;
}
.preview-imagem {
    max-width: 100px;
    max-height: 100px;
    object-fit: cover;
    border-radius: 6px;
}
.arquivo-preview {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem;
    background: #e9ecef;
    border-radius: 4px;
    font-size: 0.875rem;
}

.cliente-info {
    font-size: 0.9rem;
}
.orcamento-item {
    border-left: 4px solid #dee2e6;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    background: #f8f9fa;
    border-radius: 0 6px 6px 0;
}
.orcamento-item.vermelho { border-left-color: #dc3545; }
.orcamento-item.amarelo { border-left-color: #ffc107; }
.orcamento-item.verde { border-left-color: #198754; }

.status-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
}
.item-detalhes {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: #f8f9fa;
}
.arquivo-link {
    display: inline-block;
    margin: 0.25rem;
    padding: 0.5rem 0.75rem;
    background: #e3f2fd;
    border-radius: 4px;
    color: #1976d2;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s;

}
.arquivo-empresa {
    background: #e8f5e8;
    color: #2e7d32;
}
.arquivo-empresa:hover {
    background: #c8e6c9;
    color: #1b5e20;
}
.timeline {
    position: relative;
    padding-left: 2rem;
}
.timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #dee2e6;
}
.timeline-item {
    position: relative;
    padding-bottom: 0.5rem;
    padding-left: 1rem;
}
.timeline-item::before {
    content: '';
    position: absolute;
    left: -0.5rem;
    top: 0.25rem;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: #6c757d;
}
.timeline-item.active::before {
background: #28a745;
}

.orcamento-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}
.arquivo-link:hover {
    background: #bbdefb;
    color: #1565c0;
    transform: translateY(-1px);
}
.resumo-financeiro {
    background: #f8f9fa;
    border: 2px solid #28a745;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}
.action-button {
    min-width: 150px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s;
}
.action-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
.observacoes-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 1.5rem;
    margin: 1rem 0;
}
.modal-custom {
    border-radius: 15px;
    overflow: hidden;
}

.product-grid-user {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin-top: 40px;
}

.product-card {
  background-color: var(--branco);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  transition: all 0.3s;
  border-top: 4px solid var(--coral);
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.product-image {
    max-width: 120px;
    max-height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.item-orcamento[style*="display: none"] {
    display: none !important;
}

.item-removido {
    opacity: 0.6;
    background-color: #f8f9fa;
    border-left: 4px solid #dc3545 !important;
}

.item-removido::before {
    content: "⛔ REMOVIDO";
    display: block;
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    font-size: 0.7em;
    border-radius: 3px;
    margin-bottom: 5px;
}


@media (min-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }

    .col-md-4-user {
    flex: 0 0 auto;
    width: 50%;
    }
    
    .container_header{
        display: flex;
        flex-flow: row wrap;
    }

    .menu{
        position: inherit;
        right: 20px;
    }

    .menu-list {
    list-style: none;
    display: flex;
    justify-content: left;
    flex-flow: row wrap;
    }
    
    .logo {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    padding: 10px;
    }

    .hero {
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }  
}