.prioridade-container {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.btn-prioridade {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: inline-block;
    position: relative; /* 👈 ESSENCIAL */
}

/* cores */
.btn-prioridade.urgente { background-color: rgb(209, 39, 39); }
.btn-prioridade.alta { background-color: rgb(235, 204, 32); }
.btn-prioridade.normal { background-color: rgb(56, 56, 138); }

.btn-prioridade::before {
    content: "";
    position: absolute;
    bottom: 120%;
    left: 50%;
    transform: translateX(-50%);
    
    border: 5px solid transparent;
    border-top-color: #333;

    opacity: 0;
    transition: 0.2s;
}

.btn-prioridade:hover::before {
    opacity: 1;
}

.btn-prioridade::after {
    content: attr(data-label); /* 👈 aqui vem o texto */
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    
    background: #333;
    color: #fff;
    font-size: 10px;
    padding: 4px 6px;
    border-radius: 4px;

    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s;
}

.btn-prioridade:hover::after {
    opacity: 1;
}

.flash-verde {
  animation: flashVerde 0.3s ease;
}

.flash-vermelho {
  animation: flashVermelho 0.3s ease;
}

.uppercase-force {
    text-transform: uppercase;
}

@keyframes flashVerde {
  0% { background-color: transparent; }
  50% { background-color: rgba(34, 197, 94, 0.25); } /* verde */
  100% { background-color: transparent; }
}

@keyframes flashVermelho {
  0% { background-color: transparent; }
  50% { background-color: rgba(239, 68, 68, 0.25); } /* vermelho */
  100% { background-color: transparent; }
}

.alerta {
    display: grid;
    grid-template-columns: 140px 1fr auto;
    align-items: center;
    gap: 8px;

    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 10px;

    font-size: 13px;
    font-weight: 500;

    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* esquerda */
.alerta-left {
    font-weight: bold;
}

/* mensagem */
.alerta-msg {
    padding: 0 6px;
}

/* valor */
.alerta-valor {
    font-weight: bold;
    white-space: nowrap;
}

/* Amanh� */
.alerta-amanha {
    background: #fff8e1;
    border-left: 5px solid #facc15;
    color: #92400e;
}

/* Hoje */
.alerta-hoje {
    background: #ffe4e6;
    border-left: 5px solid #ef4444;
    color: #7f1d1d;
}

/* Vencido */
.alerta-vencido {
    background: #fee2e2;
    border-left: 5px solid #dc2626;
    color: #7f1d1d;
}

/* ===== T�TULOS DE SE��O ===== */
.box-titulo {
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.box-titulo strong {
    font-size: 12px;
    color: #374151;
    letter-spacing: 1px;
}

/* ===== BOT�O CONCLU�DAS ===== */
.box-titulo-toggle {
    background: #f3f4f6;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.grid-clientes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}

.card-cliente {
    background: white;
    padding: 16px;
    border-radius: 12px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    position: relative;
    transition: 0.2s;
}

.card-cliente:hover {
    box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

.btn-excluir {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: none;
    color: red;
    font-size: 16px;
    cursor: pointer;
}

.input-cliente {
    width: 100%;
    border: 1px solid #ddd;
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.input-cliente.nome {
    font-weight: bold;
}

.titulo-card {
    background: #505967; /* vermelho bonito */
    color: white;
    padding: 6px;
    border-radius: 6px;
    font-weight: bold;
}

/* =========================
   LAYOUT OS - CAMADA PREMIUM
========================= */

.os-container {
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* CARDS PRINCIPAIS */
.os-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 18px;

    border: 1px solid #ececec;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);

    transition: all 0.2s ease;
}

.os-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

/* CABE�ALHO DO CARD */
.os-header {
    display: flex;
    align-items: center;
    gap: 8px;

    font-size: 13px;
    font-weight: 600;
    color: #374151;

    margin-bottom: 14px;
}

/* INPUT PADR�O */
.os-input {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: 13px;

    transition: all 0.2s;
}

.os-input:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.1);
}

/* BOT�ES */
.os-btn {
    background: #1f2937;
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 13px;

    transition: 0.2s;
}

.os-btn:hover {
    background: #111827;
}

/* GRID SERVI�OS */
.os-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.os-servico-box {
    background: #f9fafb;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
}

/* TOTAL */
.os-total {
    background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
    border: 1px solid #d1fae5;
    border-radius: 14px;
    padding: 20px;
}

.os-total-valor {
    font-size: 28px;
    font-weight: bold;
    color: #059669;
}

/* ESPA�AMENTO INTELIGENTE */
.os-grid {
    display: grid;
    gap: 14px;
}

/* RESPONSIVO */
@media (min-width: 768px) {
    .os-grid-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
    }
}

.os-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 20px;
    align-items: start;
}

.os-col-left {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.os-col-right {
    position: sticky;
    top: 20px;
}

/* CARDS */
.os-card {
    background: #fff;
    border-radius: 14px;
    padding: 18px;
    border: 1px solid #eee;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* TITULO */
.os-title {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

/* INPUT */
.os-input {
    width: 100%;
    padding: 8px 10px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

/* GRID INTERNO */
.os-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

/* SERVI�OS */
.os-servicos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px,1fr));
    gap: 10px;
}

.os-servico-box {
    background: #f9fafb;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid #eee;
}

/* TOTAL */
.os-total {
    background: linear-gradient(135deg,#ecfdf5,#f0fdf4);
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 20px;
}

.os-total-valor {
    font-size: 30px;
    font-weight: bold;
    color: #059669;
}

#resumo {
    font-size: 13px;
}

#resumo .linha {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
}

#resumo .linha strong {
    color: #111;
}

#resumo .total-final {
    margin-top: 10px;
    font-size: 16px;
    font-weight: bold;
    color: #059669;
}

.os-card > div:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

#modalEditarAviso > div {
    animation: zoomIn 0.2s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.input-emp{
    width:100%;
    height:40px;
    padding:8px;
    border-radius:6px;
    background:#f9fafb;
    border:1px solid #e5e7eb;
}

.btn-calc {
    background: #f3f4f6;
    height: 56px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-calc:hover {
    background: #e5e7eb;
}

.btn-op {
    background: #dbeafe;
    color: #1d4ed8;
    height: 56px;
    border-radius: 12px;
    font-weight: bold;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.btn-op:hover {
    background: #bfdbfe;
}

@media (max-width: 768px) {
  #conteudo {
    overflow-x: hidden;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
}