.container-empresa-cliente {
    max-width: 900px; /* largura centralizada */
    margin: 20px auto;
    padding: 0 12px;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #111827;
}

/* Cards empilhados */
.card.box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.06);
    margin-bottom: 20px; /* espaço entre cards */
}
.card .card-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
}
.card .card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
}
.card .card-body {
    padding: 16px;
}

/* Ações do formulário */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 12px;
}





/* Grid simples dentro do card */
.row.gap-12 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.col-1 { flex: 0 0 calc(8.333% - 9px);  max-width: calc(8.333% - 9px); }
.col-2 { flex: 0 0 calc(16.666% - 9px); max-width: calc(16.666% - 9px); }
.col-3 { flex: 0 0 calc(25% - 9px);     max-width: calc(25% - 9px); }
.col-4 { flex: 0 0 calc(33.333% - 9px); max-width: calc(33.333% - 9px); }
.col-6 { flex: 0 0 calc(50% - 9px);     max-width: calc(50% - 9px); }
.col-7 { flex: 0 0 calc(58.333% - 9px); max-width: calc(58.333% - 9px); }
.col-8 { flex: 0 0 calc(66.666% - 9px); max-width: calc(66.666% - 9px); }
.col-12{ flex: 0 0 100%;                max-width: 100%; }
@media (max-width: 860px) {
    .col-1,.col-2,.col-3,.col-4,.col-6,.col-7,.col-8 { flex: 0 0 100%; max-width: 100%; }
}

/* Labels + inputs */
.form-label {
    display: block;
    font-size: .85rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}
.input, select.input, textarea.input {
    width: 100%;
    display: block;
    padding: 0.675rem 0.95rem;
    font-size: 0.95rem;
    color: #111827;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.input::placeholder { color: #9ca3af; }
.input:focus {
    border-color: #8602fd; /* primary */
    box-shadow: 0 0 0 0.20rem rgba(134, 2, 253, 0.15);
}

/* Botões (reutiliza sua paleta) */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 600;
    line-height: 1.4;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    padding: 0.45rem 0.85rem;
    font-size: 0.9rem;
    border-radius: 0.35rem;
    transition: all .15s ease;
}
.btn-sm { padding: 0.35rem 0.7rem; font-size: .85rem; border-radius: .3rem; }
.btn-primary  { background:#8602fd; border-color:#8602fd; }
.btn-primary:hover  { background:#6b00ca; border-color:#6b00ca; }
.btn-secondary{ background:#ff5639; border-color:#ff5639; }
.btn-secondary:hover{ background:#e0482f; border-color:#e0482f; }

/* Alerts (do bloco anterior) */
.alert {
    position: relative;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    font-size: 0.95rem;
}
.alert-success { color:#065f46; background:#d1fae5; border-color:#10b981; }
.alert-danger  { color:#991b1b; background:#fee2e2; border-color:#ef4444; }

/* Ações do formulário */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}

/* Switch (toggle) */
.switch {
    position: relative; display: inline-block; width: 46px; height: 26px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute; cursor: pointer; inset: 0; background:#e5e7eb; transition:.2s; border-radius: 999px;
}
.slider:before {
    position: absolute; content: ""; height: 20px; width: 20px; left: 3px; top: 3px;
    background: #fff; transition:.2s; border-radius: 50%; box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.switch input:checked + .slider { background:#8602fd; } /* primary */
.switch input:checked + .slider:before { transform: translateX(20px); }

/* Input com botão (mostrar senha) */
.input-with-action {
    display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center;
}

/* Upload + preview */
.file-field { display: flex; align-items: center; gap: 12px; }
.input-file { display: inline-block; padding: .5rem; border: 1px dashed #e5e7eb; border-radius: 10px; background:#fff; }
.file-field .thumb {
    width: 96px; height: 96px; background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 10px; overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.file-field .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }


/* ===== Card da empresa ===== */
.empresa-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 16px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}

/* Logo */
.empresa-card .empresa-logo {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 8px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.empresa-card .empresa-logo img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

/* Informações */
.empresa-card .empresa-info {
    flex: 1;
    font-size: 0.9rem;
    color: #374151;
}
.empresa-card .empresa-info span {
    font-weight: 600;
    color: #111827;
}
.empresa-card .empresa-info p {
    margin: 4px 0;
    line-height: 1.4;
}

/* Ações */
.empresa-card .empresa-actions {
    flex: 0 0 120px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.empresa-card .empresa-actions .btn {
    width: 100%;
    text-align: center;
}


/* Base do alert */
.alert {
    position: relative;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border: 1px solid transparent;
    border-radius: 0.45rem;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* ===== Cores ===== */

/* Sucesso (verde) */
.alert-success {
    color: #065f46;
    background-color: #d1fae5;
    border-color: #10b981;
}

/* Erro / Perigo (vermelho) */
.alert-danger {
    color: #991b1b;
    background-color: #fee2e2;
    border-color: #ef4444;
}

/* Aviso (amarelo) */
.alert-warning {
    color: #92400e;
    background-color: #fef3c7;
    border-color: #f59e0b;
}

/* Informação (azul claro) */
.alert-info {
    color: #0c4a6e;
    background-color: #e0f2fe;
    border-color: #3b82f6;
}

/* Primário (roxo do seu tema #8602fd) */
.alert-primary {
    color: #4c0096;
    background-color: #f3e8ff;
    border-color: #8602fd;
}

/* ====== Fechar (opcional) ====== */
.alert .btn-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
}

/* ====== Layout geral (fundo branco) ====== */
form[action*="cliente.cadastrar"] {
    max-width: 860px;
    margin: 24px auto;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #111827;
}

/* ====== Grid simples estilo Bootstrap ====== */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.col-3 { flex: 0 0 calc(25% - 9px);  max-width: calc(25% - 9px); }
.col-6 { flex: 0 0 calc(50% - 9px);  max-width: calc(50% - 9px); }
.col-9 { flex: 0 0 calc(75% - 9px);  max-width: calc(75% - 9px); }

/* Responsivo */
@media (max-width: 768px) {
  .col-3, .col-6, .col-9 { flex: 0 0 100%; max-width: 100%; }
}

/* ====== Inputs ====== */
.input {
    width: 100%;
    display: block;
    padding: 0.675rem 0.95rem;
    font-size: 0.95rem;
    color: #111827;
    background-color: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .2s ease;
}

.input::placeholder { color: #9ca3af; }

.input:focus {
    border-color: #8602fd; /* primary */
    box-shadow: 0 0 0 0.20rem rgba(134, 2, 253, 0.15);
}

/* Validação (se quiser usar) */
.input.is-invalid { border-color: #ff5639; box-shadow: 0 0 0 0.20rem rgba(255, 86, 57, 0.15); }
.input.is-valid   { border-color: #34d399; box-shadow: 0 0 0 0.20rem rgba(52, 211, 153, 0.15); }

/* ====== Botão submit (btn-primary) ====== */
.button-submit {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.55rem 1.0rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: #fff;
    background-color: #8602fd;           /* primary */
    border: 1px solid #8602fd;
    border-radius: 10px;
    cursor: pointer;
    transition: background-color .15s ease, box-shadow .15s ease, transform .05s ease;
}

.button-submit:hover {
    background-color: #6b00ca;
    border-color: #6b00ca;
    box-shadow: 0 6px 14px rgba(134, 2, 253, 0.25);
}

.button-submit:active {
    transform: translateY(1px);
    background-color: #5a00a8;
    border-color: #5a00a8;
}

.button-submit .seta { transition: transform .15s ease; }
.button-submit:hover .seta { transform: translateX(2px); }

/* ====== Medidor de senha ======
   Usa 4 barrinhas: preenche 1-2 com #ff5639 (secondary),
   3-4 com #8602fd (primary) */
.password {
    letter-spacing: 0.02em;
}

/* Contêiner das barras (reaproveitando sua .row) */
.row .password-checker {
    flex: 1 1 calc(25% - 9px);
    height: 8px;
    background: #e5e7eb;        /* base cinza */
    border-radius: 6px;
    transition: background-color .2s ease, opacity .2s ease;
}

/* estados preenchidos (JS adiciona as classes) */
.password-fill-secondary { background: #ff5639; } /* secondary */
.password-fill-primary   { background: #8602fd; } /* primary */

/* Dica sob o medidor */
.row p {
    margin-top: 6px !important;
    margin-bottom: 0;
    font-size: 13px;
    color: #374151;
}

/* ====== Acessórios ====== */
::selection { background: rgba(134, 2, 253, 0.15); }


/* Container responsivo */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #ffffff; /* garante fundo branco mesmo no scroll */
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
}

/* Tabela base */
.table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 0.95rem;
    color: #1f2937; /* slate-800 */
}

/* Cabeçalho */
.table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-weight: 600;
    background: #f9fafb; /* cinza claro */
    border-bottom: 2px solid #e5e7eb;
    white-space: nowrap;
}

/* Células */
.table th,
.table td {
    padding: 0.75rem 1rem;
    border: 1px solid #e5e7eb;
    vertical-align: middle;
    text-align: left;
}

/* Linhas listradas */
.table-striped tbody tr:nth-of-type(odd) {
    background-color: #fcfcfc; /* quase branco */
}

/* Hover */
.table-hover tbody tr {
    transition: background-color .15s ease;
}
.table-hover tbody tr:hover {
    background-color: #f3f4f6; /* cinza claro */
}

/* Estado ativo (opcional) */
.table tbody tr.is-active {
    background: #e0f2fe; /* azul clarinho */
}

/* Estilos de célula numérica (opcional) */
.table td.text-right,
.table th.text-right {
    text-align: right;
}
.table td.text-center,
.table th.text-center {
    text-align: center;
}

/* Base do botão */
.btn {
    display: inline-block;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    cursor: pointer;
    user-select: none;
    background-color: transparent;
    border: 1px solid transparent;
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    border-radius: 0.35rem;
    transition: all 0.15s ease-in-out;
}

/* ===== Primary (Roxo #8602fd) ===== */
.btn-primary {
    background-color: #8602fd;
    border-color: #8602fd;
    color: #fff;
}
.btn-primary:hover {
    background-color: #6b00ca;
    border-color: #6b00ca;
}
.btn-primary:active,
.btn-primary:focus {
    background-color: #5a00a8;
    border-color: #5a00a8;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(134, 2, 253, 0.35);
}

/* ===== Secondary (Laranja #ff5639) ===== */
.btn-secondary {
    background-color: #ff5639;
    border-color: #ff5639;
    color: #fff;
}
.btn-secondary:hover {
    background-color: #e0482f;
    border-color: #e0482f;
}
.btn-secondary:active,
.btn-secondary:focus {
    background-color: #c93e29;
    border-color: #c93e29;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(255, 86, 57, 0.35);
}

/* ===== Danger (Vermelho padrão) ===== */
.btn-danger {
    background-color: #dc2626; /* vermelho */
    border-color: #dc2626;
    color: #fff;
}
.btn-danger:hover {
    background-color: #b91c1c; /* vermelho mais escuro */
    border-color: #b91c1c;
}
.btn-danger:active,
.btn-danger:focus {
    background-color: #991b1b;
    border-color: #991b1b;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(220, 38, 38, 0.35);
}

/* ===== Tamanho pequeno ===== */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
    border-radius: 0.2rem;
}
