/* =========================================================
   E3R's GESTÃO CLOUD
   USUÁRIOS - CSS
   ========================================================= */

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

:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --sidebar: #0b1220;
    --background: #f8fafc;
    --white: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --green: #16a34a;
    --orange: #ea580c;
    --red: #dc2626;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
}

.app {
    display: flex;
    min-height: 100vh;
}

/* ===== SIDEBAR ===== */

.sidebar {
    width: 260px;
    background: var(--sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    padding: 22px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 8px 20px;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.brand-name strong {
    display: block;
    font-size: 16px;
}

.brand-name span {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #94a3b8;
}

.company-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 18px;
}

.company-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.company-mini strong {
    display: block;
    font-size: 13px;
}

.company-mini span {
    font-size: 11px;
    color: #94a3b8;
}

.menu {
    flex: 1;
    overflow-y: auto;
}

.menu-title {
    font-size: 10px;
    letter-spacing: 1.5px;
    color: #64748b;
    padding: 14px 12px 6px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 13px;
    border: 0;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.menu-item:hover {
    background: rgba(255, 255, 255, .06);
}

.menu-item.active {
    background: var(--primary);
    color: white;
}

.menu-item.coming-soon {
    opacity: .55;
}

.menu-icon {
    width: 18px;
    text-align: center;
}

.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.system-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #86efac;
    padding: 0 8px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
}

.system-online.offline .status-dot {
    background: #f87171;
}

.system-online.offline {
    color: #fca5a5;
}

.logout {
    border: 0;
    background: rgba(255, 255, 255, .06);
    color: white;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
}

.sidebar-overlay {
    display: none;
}

/* ===== MAIN ===== */

.main {
    flex: 1;
    min-width: 0;
}

.header {
    height: 70px;
    background: white;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mobile-menu {
    display: none;
    border: 0;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
}

.header h1 {
    font-size: 18px;
}

.header-left p {
    font-size: 12px;
    color: var(--muted);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.notification {
    border: 0;
    background: var(--background);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
}

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

.user-avatar {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 13px;
}

.user strong {
    display: block;
    font-size: 13px;
}

.user span {
    font-size: 11px;
    color: var(--muted);
}

.content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 30px 60px;
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.eyebrow {
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.page-heading h2 {
    font-size: 24px;
    margin: 4px 0;
}

.page-heading p {
    color: var(--muted);
    font-size: 13px;
    max-width: 520px;
}

.new-button {
    border: 0;
    background: var(--primary);
    color: white;
    border-radius: 8px;
    padding: 12px 18px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.new-button:hover {
    background: var(--primary-dark);
}

/* ===== STATS ===== */

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    display: flex;
    align-items: center;
    gap: 14px;
}

.stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-icon.blue {
    background: #dbeafe;
}

.stat-icon.green {
    background: #dcfce7;
}

.stat-icon.orange {
    background: #ffedd5;
}

.stat-card span {
    display: block;
    font-size: 12px;
    color: var(--muted);
}

.stat-card strong {
    font-size: 22px;
}

/* ===== FILTROS ===== */

.filter-card {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.search-box {
    flex: 1;
    min-width: 220px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 14px;
}

.search-box input {
    border: 0;
    outline: none;
    width: 100%;
    padding: 12px;
    font-size: 13px;
}

.filter-card select {
    min-width: 180px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    padding: 0 12px;
    font-size: 13px;
}

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

.table-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
    overflow: hidden;
}

.table-header {
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.table-header h3 {
    font-size: 15px;
}

.table-header p {
    font-size: 12px;
    color: var(--muted);
}

.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    background: var(--background);
    padding: 12px 15px;
    font-size: 11px;
    color: var(--muted);
    letter-spacing: .5px;
}

td {
    padding: 14px 15px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.user-cell strong {
    display: block;
}

.user-cell span {
    color: var(--muted);
    font-size: 11px;
}

.badge-perfil {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    background: #e0e7ff;
    color: #3730a3;
    text-transform: capitalize;
}

.badge-status {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
}

.badge-status.ativo {
    background: #dcfce7;
    color: #15803d;
}

.badge-status.bloqueado {
    background: #fee2e2;
    color: #b91c1c;
}

.badge-status.convidado {
    background: #fef3c7;
    color: #b45309;
}

.row-actions {
    display: flex;
    gap: 6px;
}

.action-button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 6px;
    padding: 7px 10px;
    cursor: pointer;
    font-size: 13px;
}

.action-button:hover {
    background: var(--background);
}

.action-button.danger {
    color: var(--red);
    border-color: #fecaca;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--muted);
}

.empty-state div {
    font-size: 40px;
    margin-bottom: 12px;
}

.empty-state h3 {
    color: var(--text);
    margin-bottom: 6px;
}

.empty-state button {
    margin-top: 14px;
    border: 0;
    background: var(--primary);
    color: white;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
}

/* ===== MODAL ===== */

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 8, 23, .6);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 999;
}

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

.modal {
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    background: white;
    border-radius: 14px;
    padding: 26px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.modal-header h2 {
    font-size: 18px;
    margin-top: 4px;
}

.close-modal {
    border: 0;
    background: transparent;
    font-size: 26px;
    cursor: pointer;
    line-height: 1;
}

.modal-section {
    margin-bottom: 20px;
}

.modal-section h3 {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--text);
}

.section-hint {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 10px;
}

.notice-text {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
    border-radius: 8px;
    padding: 14px;
    font-size: 12.5px;
    line-height: 1.6;
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 6px;
}

.field input,
.field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 11px;
    font-size: 13px;
    outline: none;
    font-family: inherit;
}

.field input:focus,
.field select:focus {
    border-color: var(--primary);
}

.field input:disabled {
    background: var(--background);
    color: var(--muted);
}

.status-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    background: var(--background);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 14px;
}

.status-option strong {
    display: block;
    font-size: 13px;
}

.status-option span {
    font-size: 12px;
    color: var(--muted);
}

.switch {
    position: relative;
    display: inline-block;
    width: 42px;
    height: 24px;
    flex-shrink: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch span {
    position: absolute;
    inset: 0;
    background: #cbd5e1;
    border-radius: 24px;
    cursor: pointer;
    transition: .2s;
}

.switch span::before {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    transition: .2s;
}

.switch input:checked+span {
    background: var(--green);
}

.switch input:checked+span::before {
    transform: translateX(18px);
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 10px;
}

.cancel-button,
.save-button {
    border: 0;
    border-radius: 8px;
    padding: 12px 20px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
}

.cancel-button {
    background: var(--background);
    color: var(--text);
}

.save-button {
    background: var(--primary);
    color: white;
}

.save-button:hover {
    background: var(--primary-dark);
}

/* ===== TOAST ===== */

.toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: var(--text);
    color: white;
    padding: 12px 18px;
    border-radius: 8px;
    font-size: 13px;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: .2s;
    z-index: 1200;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.toast.success {
    background: #15803d;
}

.toast.error {
    background: #b91c1c;
}

.toast.info {
    background: #1d4ed8;
}

/* ===== RESPONSIVO ===== */

@media (max-width: 900px) {
    .stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .modal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .sidebar {
        position: fixed;
        left: -280px;
        z-index: 100;
        transition: left .2s;
    }

    .sidebar.open {
        left: 0;
    }

    .sidebar-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, .4);
        z-index: 90;
    }

    .sidebar-overlay.show {
        display: block;
    }

    .mobile-menu {
        display: block;
    }

    .content {
        padding: 20px 16px 50px;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .filter-card {
        flex-direction: column;
    }

    .page-heading {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ===== EXTRAS ORDENS DE SERVIÇO ===== */

.modal-wide {
    max-width: 760px;
}

.field textarea,
.field select {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 11px;
    font-size: 13px;
    font-family: inherit;
    outline: none;
    background: white;
}

.field textarea {
    resize: vertical;
}

.field textarea:focus,
.field select:focus {
    border-color: var(--primary);
}

.item-picker {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
}

.item-picker select {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px;
    font-size: 13px;
    background: white;
}

.item-picker input[type="number"] {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px;
    font-size: 13px;
}

.add-item-button {
    border: 0;
    background: var(--primary);
    color: white;
    border-radius: 7px;
    padding: 0 16px;
    font-size: 13px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.add-item-button:hover {
    background: var(--primary-dark);
}

.items-list {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.items-empty {
    padding: 16px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    font-size: 13px;
}

.item-row:first-child {
    border-top: 0;
}

.item-row-name {
    flex: 1;
}

.item-row-name strong {
    display: block;
    font-size: 13px;
}

.item-row-name span {
    font-size: 11px;
    color: var(--muted);
}

.item-row-value {
    font-weight: bold;
    margin: 0 14px;
}

.item-remove {
    border: 0;
    background: transparent;
    color: var(--red);
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}

.totals-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 16px;
}

.totals-bar span {
    font-size: 13px;
    color: var(--muted);
}

.totals-bar strong {
    font-size: 18px;
    color: var(--primary);
}

/* Badges de status da ordem */

.badge-os {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    white-space: nowrap;
}

.badge-os.orcamento { background: #e0e7ff; color: #3730a3; }
.badge-os.agendada { background: #dbeafe; color: #1d4ed8; }
.badge-os.aberta { background: #fef3c7; color: #b45309; }
.badge-os.em_execucao { background: #ffedd5; color: #c2410c; }
.badge-os.pausada { background: #f1f5f9; color: #475569; }
.badge-os.aguardando_cliente { background: #fce7f3; color: #a21caf; }
.badge-os.concluida { background: #dcfce7; color: #15803d; }
.badge-os.faturada { background: #d1fae5; color: #047857; }
.badge-os.cancelada { background: #fee2e2; color: #b91c1c; }

.priority-tag {
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 6px;
}

.priority-tag.urgente { background: #fee2e2; color: #b91c1c; }
.priority-tag.alta { background: #ffedd5; color: #c2410c; }

/* Modal de detalhe */

.detail-body {
    max-height: 55vh;
    overflow-y: auto;
    margin-bottom: 16px;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    margin-bottom: 18px;
    font-size: 13px;
}

.detail-grid div strong {
    display: block;
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 3px;
}

.status-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.status-flow button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 20px;
    padding: 8px 14px;
    font-size: 12px;
    cursor: pointer;
    font-weight: bold;
}

.status-flow button:hover {
    background: var(--background);
}

.status-flow button.primary {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.status-flow button.danger {
    color: var(--red);
    border-color: #fecaca;
}

.detail-section-title {
    font-size: 13px;
    font-weight: bold;
    margin: 16px 0 8px;
}

.accept-box {
    background: var(--background);
    border-radius: 10px;
    padding: 14px;
    display: flex;
    gap: 10px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.accept-box input {
    flex: 1;
    min-width: 160px;
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px;
    font-size: 13px;
}

.accept-box button {
    border: 0;
    background: var(--green);
    color: white;
    border-radius: 7px;
    padding: 10px 16px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.accepted-note {
    background: #dcfce7;
    color: #15803d;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    font-weight: bold;
}

.timeline {
    border-left: 2px solid var(--border);
    padding-left: 14px;
}

.timeline-item {
    margin-bottom: 12px;
    font-size: 12.5px;
}

.timeline-item strong {
    display: block;
}

.timeline-item span {
    color: var(--muted);
    font-size: 11px;
}

/* Item manual */

.manual-item-toggle {
    margin-bottom: 10px;
}

.manual-item-toggle button {
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    padding: 0;
}

.manual-item-toggle button:hover {
    text-decoration: underline;
}

.item-picker input[type="text"] {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 10px;
    font-size: 13px;
}

.item-picker input[type="text"]:first-child {
    flex: 1;
}

/* WhatsApp */

.whatsapp-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.whatsapp-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #25d366;
    background: #f0fdf4;
    color: #15803d;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: bold;
    text-decoration: none;
    cursor: pointer;
}

.whatsapp-button:hover {
    background: #dcfce7;
}

.whatsapp-hint {
    font-size: 12px;
    color: var(--muted);
    padding: 9px 0;
}

/* Fotos / anexos */

.upload-box {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.upload-label {
    border: 1px dashed var(--primary);
    color: var(--primary);
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: bold;
    cursor: pointer;
}

.upload-label:hover {
    background: #eff6ff;
}

.upload-box select {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 9px;
    font-size: 12.5px;
}

.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.photo-card {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 10px;
    font-size: 11px;
}

.photo-tag {
    display: inline-block;
    background: var(--background);
    border-radius: 4px;
    padding: 2px 6px;
    font-weight: bold;
    margin-bottom: 6px;
    font-size: 10px;
}

.photo-name {
    color: var(--muted);
    margin-bottom: 6px;
    word-break: break-word;
}

.photo-link {
    color: var(--primary);
    font-weight: bold;
    text-decoration: none;
    font-size: 11px;
}

.photo-link:hover {
    text-decoration: underline;
}

/* Pagamento */

.payment-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    background: var(--background);
    border-radius: 10px;
    padding: 14px;
    margin-bottom: 12px;
}

.payment-summary div {
    text-align: center;
}

.payment-summary span {
    display: block;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 3px;
}

.payment-summary strong {
    font-size: 14px;
}

.payment-summary strong.paid { color: var(--green); }
.payment-summary strong.pending { color: var(--orange); }

.payment-box {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.payment-box input,
.payment-box select {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 9px;
    font-size: 12.5px;
}

.payment-box input { flex: 1; min-width: 120px; }

.payment-box button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 7px;
    padding: 9px 12px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    white-space: nowrap;
}

.payment-box button.primary {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.payment-history {
    margin-bottom: 16px;
}

.payment-history-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-top: 1px solid var(--border);
    font-size: 12.5px;
}

.payment-history-item:first-child { border-top: 0; }

.parcela-block {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.parcela-label {
    font-size: 11px;
    font-weight: bold;
    color: var(--muted);
    text-transform: uppercase;
    margin-bottom: 8px;
}

/* Cupom */

.coupon-box {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.coupon-box button {
    border: 1px solid var(--border);
    background: white;
    border-radius: 8px;
    padding: 9px 14px;
    font-size: 12.5px;
    font-weight: bold;
    cursor: pointer;
}

.coupon-box button:hover {
    background: var(--background);
}

/* NFS-e */

.nfse-box {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.nfse-box select,
.nfse-box input {
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 9px;
    font-size: 12.5px;
}

.nfse-box input { flex: 1; min-width: 160px; }

.nfse-box button {
    border: 0;
    background: var(--primary);
    color: white;
    border-radius: 7px;
    padding: 9px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.nfse-hint {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 16px;
}

/* Barra de rolagem do menu lateral (padrão consistente com o Dashboard) */
.menu {
    scrollbar-color: rgba(148, 163, 184, .28) transparent;
    scrollbar-width: thin;
}

.menu::-webkit-scrollbar {
    width: 5px;
}

.menu::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgba(148, 163, 184, .28);
}

