@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* ═══════════════════════════════════
   LUCIDE ICON SYSTEM
═══════════════════════════════════ */
/* Default icon sizing — inherits color from parent */
svg[data-lucide] {
    width: 1em;
    height: 1em;
    stroke-width: 2;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

/* Sidebar nav icons */
.nav-icon svg[data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
    stroke: currentColor;
}

/* Stat card icons */
.stat-icon svg[data-lucide] {
    width: 1.625rem;
    height: 1.625rem;
    stroke-width: 1.75;
}

.bg-blue svg[data-lucide] {
    stroke: #4f46e5;
}

.bg-green svg[data-lucide] {
    stroke: #059669;
}

.bg-orange svg[data-lucide] {
    stroke: #d97706;
}

.bg-red svg[data-lucide] {
    stroke: #dc2626;
}

/* Sidebar logo icon */
.sidebar-logo-icon svg[data-lucide] {
    width: 1.4rem;
    height: 1.4rem;
    stroke: #fff;
    stroke-width: 2;
}

/* Menu toggle */
.menu-toggle svg[data-lucide] {
    width: 1.25rem;
    height: 1.25rem;
    stroke: var(--text-main);
}

/* Header btn icons */
.btn svg[data-lucide] {
    width: 0.95rem;
    height: 0.95rem;
    flex-shrink: 0;
}

/* Table header h3 icons */
.table-header h3 svg[data-lucide],
.chart-card-title svg[data-lucide],
.settings-section-title svg[data-lucide],
.form-container h3 svg[data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
    stroke: var(--secondary);
    flex-shrink: 0;
}

/* Modal icon */
.modal-icon svg[data-lucide] {
    width: 1.75rem;
    height: 1.75rem;
    stroke: var(--danger);
}

.modal-icon.warn svg[data-lucide] {
    stroke: var(--warning);
}

.modal-icon.info svg[data-lucide] {
    stroke: var(--secondary);
}

/* Toast icon */
.toast-icon svg[data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
}

/* Alert icons */
.alert-icon svg[data-lucide] {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

:root {
    --primary: #0f172a;
    --primary-light: #1e293b;
    --primary-hover: #334155;
    --secondary: #4f46e5;
    --secondary-hover: #4338ca;
    --secondary-light: rgba(79, 70, 229, 0.1);
    --success: #10b981;
    --success-light: #d1fae5;
    --success-dark: #059669;
    --warning: #f59e0b;
    --warning-light: #fffbeb;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --danger-dark: #b91c1c;
    --light: #f8fafc;
    --surface: #ffffff;
    --border: #e2e8f0;
    --border-focus: #4f46e5;
    --text-main: #334155;
    --text-muted: #64748b;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 40px -5px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --sidebar-width: 272px;
    --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    --calendar-filter: none;
}

[data-theme="dark"] {
    --primary: #f8fafc;
    --primary-light: #f1f5f9;
    --primary-hover: #e2e8f0;
    --secondary: #6366f1;
    --secondary-hover: #818cf8;
    --secondary-light: rgba(99, 102, 241, 0.15);
    --surface: #0f172a;
    --light: #1e293b;
    --border: #334155;
    --border-focus: #6366f1;
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    --calendar-filter: invert(1);
    background-color: #020617;
}

[data-theme="dark"] body {
    background: #020617;
    color: var(--text-main);
}

[data-theme="dark"] .sidebar {
    background: #020617;
    border-right: 1px solid var(--border);
    box-shadow: none;
}

[data-theme="dark"] .header {
    background: rgba(2, 6, 23, 0.8);
    border-color: var(--border);
}

[data-theme="dark"] .card,
[data-theme="dark"] .table-container,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .form-container,
[data-theme="dark"] .settings-section,
[data-theme="dark"] .recibo-container {
    background: var(--surface);
    border-color: var(--border);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #64748b;
}

[data-theme="dark"] .signature-pad {
    background: #f1f5f9;
}

[data-theme="dark"] .table-header {
    background: #1e293b;
    border-color: var(--border);
}

[data-theme="dark"] th {
    background: #1e293b;
    border-color: var(--border);
}

[data-theme="dark"] td {
    border-color: #1e293b;
}

[data-theme="dark"] tbody tr:hover {
    background: #1e293b;
}

[data-theme="dark"] .modal {
    background: #0f172a;
    border: 1px solid var(--border);
}

[data-theme="dark"] .btn-outline {
    background: #1e293b;
    border-color: var(--border);
    color: white;
}

[data-theme="dark"] .btn-outline:hover {
    background: #334155;
}

[data-theme="dark"] .nav-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .nav-icon {
    background: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .sidebar-logo-icon {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

[data-theme="dark"] .recibo-container {
    background: white !important;
    color: #1e293b !important;
    --primary: #0f172a;
    --text-main: #334155;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --light: #f8fafc;
}

[data-theme="dark"] .recibo-header {
    border-color: #0f172a !important;
}

[data-theme="dark"] .recibo-amount-box,
[data-theme="dark"] .recibo-box {
    background: var(--light) !important;
    border-color: #e2e8f0 !important;
    color: #334155 !important;
}

[data-theme="dark"] .cut-line {
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}

[data-theme="dark"] .resumo-bar {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: var(--border) !important;
}


/* ═══════════════════════════════════
   BASE
═══════════════════════════════════ */
html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #f1f5f9;
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.5;
    font-size: 15px;
}

/* ═══════════════════════════════════
   LAYOUT
═══════════════════════════════════ */
.app {
    display: flex;
    min-height: 100vh;
}

/* ═══════════════════════════════════
   SIDEBAR
═══════════════════════════════════ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--primary);
    color: white;
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 200;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
    transition: transform var(--transition);
}

.sidebar-header {
    padding: 1.75rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.sidebar-logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.4);
    flex-shrink: 0;
}

.sidebar-header h1 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sidebar-header p {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-top: 0.25rem;
}

nav {
    flex: 1;
    padding: 1rem 0.75rem;
}

.nav-section-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    font-weight: 600;
    padding: 0.75rem 0.75rem 0.4rem;
    margin-top: 0.5rem;
}

.nav-section-label:first-child {
    margin-top: 0;
}

.nav-item {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 0.875rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #94a3b8;
    margin-bottom: 2px;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--secondary);
    border-radius: 0 2px 2px 0;
    transform: scaleY(0);
    transition: transform var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
}

.nav-item.active {
    background: rgba(79, 70, 229, 0.18);
    color: white;
    font-weight: 600;
}

.nav-item.active::before {
    transform: scaleY(1);
}

.nav-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
    transition: background var(--transition);
}

.nav-item.active .nav-icon {
    background: rgba(79, 70, 229, 0.4);
}

.sidebar-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.75rem;
    color: #475569;
    text-align: center;
}

/* Overlay mobile */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    z-index: 199;
    opacity: 0;
    transition: opacity var(--transition);
}

.sidebar-overlay.visible {
    display: block;
    opacity: 1;
}

@media (max-width: 1024px) {
    .sidebar-overlay {
        display: block;
        opacity: 0;
        pointer-events: none;
    }

    .sidebar-overlay.visible {
        opacity: 1;
        pointer-events: all;
    }
}

.table-container {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
}

.table-container table {
    min-width: 600px;
}


/* ═══════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════ */
.main {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left var(--transition);
}

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(241, 245, 249, 0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.875rem;
}

.header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: -0.025em;
}

.content {
    padding: 2rem;
    flex: 1;
}

.resumo-bar {
    padding: 1rem 1.5rem;
    background: var(--light);
    border-bottom: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--text-muted);
}

.input-date-filter {
    padding: 0.5rem 0.75rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.85rem;
    background: var(--light);
    color: var(--text-main);
    cursor: pointer;
    transition: all var(--transition);
}

.input-date-filter:focus {
    outline: none;
    border-color: var(--border-focus);
    background: var(--surface);
}

.input-date-filter::-webkit-calendar-picker-indicator {
    cursor: pointer;
    opacity: 0.6;
    filter: var(--calendar-filter);
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.btn {
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    transition: all var(--transition);
    touch-action: manipulation;
    font-family: inherit;
    white-space: nowrap;
    letter-spacing: 0.01em;
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn:active {
    transform: scale(0.97) !important;
}

.btn-primary {
    background: var(--secondary);
    color: white;
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

.btn-primary:hover {
    background: var(--secondary-hover);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
    transform: translateY(-1px);
}

.btn-success {
    background: var(--success);
    color: white;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: var(--success-dark);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    transform: translateY(-1px);
}

.btn-danger {
    background: var(--danger);
    color: white;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.3);
}

.btn-danger:hover {
    background: var(--danger-dark);
    transform: translateY(-1px);
}

.btn-outline {
    background: white;
    border: 1.5px solid var(--border);
    color: var(--text-main);
}

.btn-outline:hover {
    background: var(--light);
    border-color: #cbd5e1;
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
}

.btn-ghost:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-main);
}

.btn-sm {
    padding: 0.45rem 0.875rem;
    font-size: 0.8rem;
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-icon {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: var(--radius-sm);
}

/* Ripple Effect */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: ripple-animation 0.6s linear;
    background-color: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

@keyframes ripple-animation {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

.menu-toggle {
    display: none;
    background: none;
    border: 1.5px solid var(--border);
    color: var(--text-main);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    font-family: inherit;
}

.menu-toggle:hover {
    background: white;
    border-color: #cbd5e1;
}

/* ═══════════════════════════════════
   STAT CARDS
═══════════════════════════════════ */
.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.card {
    background: var(--surface);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-stat {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.stat-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: transform var(--transition);
}

.card:hover .stat-icon {
    transform: scale(1.1) rotate(-3deg);
}

.bg-blue {
    background: #ede9fe;
}

.bg-green {
    background: #d1fae5;
}

.bg-orange {
    background: #fef3c7;
}

.bg-red {
    background: #fee2e2;
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
    margin-bottom: 0.2rem;
    letter-spacing: -0.04em;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ═══════════════════════════════════
   TABLES
═══════════════════════════════════ */
.table-container {
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
}

.table-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: #fafbfc;
}

.table-header h3 {
    font-size: 1.05rem;
    color: var(--primary);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.table-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 280px;
}

.search-box::before {
    content: "";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0.9rem;
    height: 0.9rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.85;
    z-index: 1;
    pointer-events: none;
}

.search-box input {
    width: 100%;
    padding: 0.55rem 0.875rem 0.55rem 2.5rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-family: inherit;
    background: var(--surface);
    transition: all var(--transition);
    color: var(--text-main);
}

.search-box input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

th {
    text-align: left;
    padding: 0.875rem 1.5rem;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    font-weight: 700;
    background: white;
    border-bottom: 1.5px solid var(--border);
    white-space: nowrap;
}

td {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid rgba(226, 232, 240, 0.7);
    color: var(--text-main);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: background var(--transition);
}

tbody tr:hover {
    background: var(--light);
}

.empty-state {
    text-align: center;
    padding: 3.5rem 2rem;
    color: var(--text-muted);
}

.empty-state-icon {
    font-size: 3rem;
    display: block;
    margin-bottom: 1rem;
    opacity: 0.4;
}

.empty-state-text {
    font-size: 0.9rem;
    line-height: 1.6;
}

.empty-state-text strong {
    display: block;
    font-size: 1rem;
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

/* ═══════════════════════════════════
   BADGES
═══════════════════════════════════ */
.badge {
    padding: 0.275rem 0.675rem;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.035em;
    display: inline-block;
}

.badge-green {
    background: var(--success-light);
    color: #065f46;
}

.badge-yellow {
    background: #fef9c3;
    color: #854d0e;
}

.badge-red {
    background: var(--danger-light);
    color: #991b1b;
}

.badge-gray {
    background: #f1f5f9;
    color: #475569;
}

.badge-blue {
    background: #ede9fe;
    color: #4338ca;
}

.obra-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.3rem 0.7rem;
    background: #ede9fe;
    color: #4338ca;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ═══════════════════════════════════
   CHARTS SECTION
═══════════════════════════════════ */
.charts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
}

.chart-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: var(--shadow-sm);
}

.chart-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.chart-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 180px;
    color: var(--text-muted);
    gap: 0.5rem;
    font-size: 0.85rem;
}

/* ═══════════════════════════════════
   FORMS
═══════════════════════════════════ */
.form-container {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    max-width: 680px;
}

.form-container h3 {
    font-size: 1.3rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--primary-light);
    letter-spacing: 0.01em;
}

.form-group label .required {
    color: var(--danger);
    margin-left: 2px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.7rem 0.875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-family: inherit;
    color: var(--text-main);
    background: var(--light);
    transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: var(--surface);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--secondary-light);
}

.form-group input::placeholder {
    color: #94a3b8;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* Mini form inside table card */
.inline-form {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
    background: var(--light);
    display: none;
}

.inline-form.visible {
    display: block;
}

[data-theme="dark"] .inline-form {
    background: var(--light);
}

/* ═══════════════════════════════════
   SIGNATURE PAD
═══════════════════════════════════ */
.signature-pad {
    border: 2px dashed var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    cursor: crosshair;
    width: 100%;
    height: 180px;
    display: block;
    touch-action: none;
    transition: border-color var(--transition);
}

.signature-pad:hover {
    border-color: var(--secondary);
}

.signature-pad.signed {
    border-color: var(--success);
    border-style: solid;
}

.signature-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.signature-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

/* ═══════════════════════════════════
   RECEIPT (RECIBO)
═══════════════════════════════════ */
.recibo-container {
    background: white;
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.recibo-header {
    text-align: center;
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--primary);
}

.recibo-header h2 {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.4rem;
}

.recibo-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.recibo-number {
    display: inline-block;
    background: var(--light);
    border: 1px solid var(--border);
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
    font-weight: 500;
}

.recibo-content {
    line-height: 1.8;
    font-size: 0.85rem;
}

.recibo-amount-box {
    text-align: center;
    margin: 1rem 0;
    padding: 1rem;
    background: var(--light);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
}

.recibo-amount-box .amount {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.04em;
}

.recibo-box {
    background: var(--light);
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.recibo-box p {
    margin: 0.4rem 0;
    font-size: 0.9rem;
    display: flex;
    gap: 0.5rem;
}

.recibo-box p strong {
    min-width: 130px;
    color: var(--primary);
}

.recibo-clause {
    background: var(--warning-light);
    border-left: 4px solid var(--warning);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    line-height: 1.7;
    color: #78350f;
}

.recibo-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.sig-block {
    text-align: center;
}

.sig-image-wrapper {
    height: 70px;
    border-bottom: 2px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.sig-image-wrapper img {
    max-height: 100%;
}

.signature-line {
    font-size: 0.8rem;
    color: #000;
    line-height: 1.4;
    font-weight: 500;
}

.recibo-footer {
    margin-top: 2.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.8;
}

/* ═══════════════════════════════════
   ALERT INLINE
═══════════════════════════════════ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.5;
}

.alert-warning {
    background: var(--warning-light);
    border: 1px solid #fde68a;
    color: #92400e;
}

.alert-danger {
    background: var(--danger-light);
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════
   SECTION DISPLAY
═══════════════════════════════════ */
.section {
    display: none;
}

.section.active {
    display: block;
    animation: fadeUp 0.3s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ═══════════════════════════════════
   TOAST
═══════════════════════════════════ */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    min-width: 260px;
    max-width: 380px;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xl);
    z-index: 5000;
    font-weight: 500;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    pointer-events: none;
    opacity: 0;
    transform: translateY(100%) scale(0.9);
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.toast-success {
    background: #0f172a;
    color: white;
}

.toast-error {
    background: var(--danger);
    color: white;
}

.toast-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════
   MODAL
═══════════════════════════════════ */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.modal {
    background: var(--surface);
    padding: 2rem;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    transform: scale(0.92) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .modal {
    transform: scale(1) translateY(0);
}

.modal-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.25rem;
    background: var(--danger-light);
}

.modal-icon.warn {
    background: var(--warning-light);
}

.modal h3 {
    font-size: 1.15rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 0.625rem;
}

.modal p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ═══════════════════════════════════
   CONFIGURAÇÕES / SETTINGS
═══════════════════════════════════ */
.settings-section {
    background: var(--surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 1rem;
    width: 100%;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    max-width: 1100px;
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
    }

    .settings-section {
        padding: 1.25rem;
    }

    .settings-section .table-container {
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }
}

@media (max-width: 580px) {
    .settings-section {
        padding: 1rem;
    }

    .settings-section-title {
        font-size: 0.95rem;
    }

    .settings-section-desc {
        font-size: 0.8rem;
    }

    .settings-section .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .settings-section .btn:last-child {
        margin-bottom: 0;
    }
}

.settings-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.settings-section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.danger-zone {
    border-color: var(--danger-light);
    background: #fff5f5;
}

.danger-zone .settings-section-title {
    color: var(--danger);
}

/* ═══════════════════════════════════
   OBRA FORM INLINE
═══════════════════════════════════ */
#obra-form {
    border-bottom: 1px solid var(--border);
    background: var(--light);
}

/* ═══════════════════════════════════
   ACTIONS
═══════════════════════════════════ */
.actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════
    MOBILE RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }

    .charts-grid {
        grid-template-columns: 1fr;
    }

    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.active {
        transform: translateX(0);
        box-shadow: var(--shadow-xl);
    }

    .main {
        margin-left: 0;
    }

    .menu-toggle {
        display: flex;
    }

    .header {
        padding: 0.875rem 1.25rem;
    }

    .content {
        padding: 1.25rem;
    }
}

@media (max-width: 768px) {
    .header {
        padding: 0.75rem 1rem;
    }

    .header h2 {
        font-size: 1.1rem;
    }

    .header-right {
        gap: 0.5rem !important;
    }

    .header-right .btn span {
        display: none;
    }

    .header-right .btn {
        padding: 0.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .recibo-container {
        padding: 1rem;
    }

    .recibo-signatures {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .table-header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .table-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .search-box {
        max-width: 100%;
    }

    .form-container {
        padding: 1rem;
    }

    .btn-lg {
        width: 100%;
    }

    .card {
        padding: 1rem;
    }

    .stat-icon {
        width: 40px;
        height: 40px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .sidebar-logo-icon {
        width: 32px;
        height: 32px;
    }

    .sidebar-header h1 {
        font-size: 1.1rem;
    }

    .nav-item {
        padding: 0.6rem 0.75rem;
        font-size: 0.85rem;
    }

    .nav-icon {
        width: 28px;
        height: 28px;
    }

    .table-container {
        margin: 0 -1.25rem;
        border-radius: 0;
    }

    .table-container table {
        min-width: 500px;
    }

    td,
    th {
        padding: 0.6rem 0.75rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 580px) {
    .grid-4 {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .header h2 {
        font-size: 1rem;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }

    .card-stat {
        gap: 0.75rem;
    }

    .auth-card {
        padding: 1.5rem 1rem;
    }

    .modal {
        padding: 1.5rem;
        margin: 1rem;
    }
}

@media (max-width: 400px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════
   ACESSIBILIDADE DARK MODE
═══════════════════════════════════ */
[data-theme="dark"] .table-container {
    background: var(--card-bg);
    border-color: var(--border) !important;
}

[data-theme="dark"] .settings-section-desc {
    color: var(--text-muted);
}

[data-theme="dark"] .badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

[data-theme="dark"] .badge-orange {
    background: rgba(249, 115, 22, 0.2);
    color: #fdba74;
}

[data-theme="dark"] tr td {
    border-bottom: 1px solid var(--border);
}

[data-theme="dark"] .table-container table {
    background: transparent;
}

/* ═══════════════════════════════════
   AUTH SCREEN
═══════════════════════════════════ */
#auth-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
}

/* Animated background shapes */
.auth-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.auth-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.18;
    animation: authFloat 8s ease-in-out infinite;
}

.auth-shape-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #4f46e5, #7c3aed);
    top: -10%;
    left: -10%;
    animation-delay: 0s;
}

.auth-shape-2 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #10b981, #0891b2);
    bottom: -5%;
    right: -5%;
    animation-delay: -3s;
}

.auth-shape-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, #f59e0b, #ef4444);
    top: 50%;
    left: 55%;
    animation-delay: -6s;
}

@keyframes authFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -20px) scale(1.05);
    }

    66% {
        transform: translate(-20px, 15px) scale(0.96);
    }
}

/* Card */
.auth-card {
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 1;
}

/* Brand */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-brand-icon {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.45);
    flex-shrink: 0;
}

.auth-brand-icon svg[data-lucide] {
    width: 1.5rem;
    height: 1.5rem;
    stroke: white;
}

.auth-brand-name {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #fff 40%, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.auth-brand-sub {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: 3px;
    gap: 3px;
    margin-bottom: 1.75rem;
}

.auth-tab {
    flex: 1;
    padding: 0.55rem 0.875rem;
    border: none;
    border-radius: calc(var(--radius-md) - 2px);
    background: transparent;
    color: #64748b;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.auth-tab svg[data-lucide] {
    width: 0.9rem;
    height: 0.9rem;
}

.auth-tab.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.auth-tab:hover:not(.active) {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.04);
}

/* Panes */
.auth-pane {
    display: none;
}

.auth-pane.active {
    display: block;
    animation: fadeUp 0.25s ease-out;
}

/* Inputs inside auth card */
.auth-card .form-group label {
    color: #94a3b8;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.input-icon-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-wrap svg[data-lucide] {
    position: absolute;
    left: 0.875rem;
    width: 1rem;
    height: 1rem;
    stroke: #475569;
    pointer-events: none;
    flex-shrink: 0;
}

.input-icon-wrap input {
    width: 100%;
    padding: 0.75rem 0.875rem 0.75rem 2.75rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    color: white;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all var(--transition);
}

.input-icon-wrap input::placeholder {
    color: #475569;
}

.input-icon-wrap input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(79, 70, 229, 0.7);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.18);
}

.btn-auth {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.75rem;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    font-size: 0.75rem;
    color: #334155;
    margin-top: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}

/* ═══════════════════════════════════
   GLOBAL LOADING SPINNER
═══════════════════════════════════ */
.loading-spinner {
    width: 44px;
    height: 44px;
    border: 3px solid rgba(79, 70, 229, 0.15);
    border-top-color: var(--secondary);
    border-radius: 50%;
    animation: spinnerRotate 0.8s linear infinite;
}

@keyframes spinnerRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Spin class for Lucide icons used as loading indicators */
@keyframes iconSpin {
    to {
        transform: rotate(360deg);
    }
}

.spin {
    animation: iconSpin 0.9s linear infinite;
    display: inline-block;
}

/* ═══════════════════════════════════
   SIDEBAR FOOTER — USER INFO & LOGOUT
═══════════════════════════════════ */
.sidebar-footer {
    padding: 0.875rem 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #475569;
}

.user-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
    min-width: 0;
}

.user-info svg[data-lucide] {
    stroke: #475569;
}

.btn-logout {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    color: #475569;
    cursor: pointer;
    padding: 0.35rem 0.45rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    flex-shrink: 0;
}

.btn-logout svg[data-lucide] {
    width: 0.95rem;
    height: 0.95rem;
    stroke: #475569;
    transition: stroke var(--transition);
}

.btn-logout:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--danger);
}

.btn-logout:hover svg[data-lucide] {
    stroke: var(--danger);
}

/* ═══════════════════════════════════
   AUTH SCREEN RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 480px) {
    .auth-card {
        padding: 1.75rem 1.5rem;
    }

    .auth-brand-name {
        font-size: 1.3rem;
    }
}

/* ═══════════════════════════════════
   RECIBO (LAYOUT DUAS VIAS)
═══════════════════════════════════ */
.recibo-container {
    max-width: 850px;
    margin: 0 auto;
    background: transparent;
    padding: 0;
}

.vias-wrapper {
    display: flex;
    flex-direction: column;
    background: white;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.recibo-copy {
    padding: 1.5cm 1.5cm;
    position: relative;
    background: white;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Linha de corte visual no navegador */
.cut-line {
    border-top: 2px dotted #000;
    position: relative;
    height: 1px;
    margin: 0;
}

.cut-line span {
    position: absolute;
    top: -12px;
    right: 30px;
    background: white;
    padding: 0 8px;
    font-size: 0.8rem;
    color: #000;
}

/* ═══════════════════════════════════
   PRINT STYLES (RIGOROSO PARA 1 PÁGINA)
═══════════════════════════════════ */
@media print {
    @page {
        size: A4;
        margin: 0;
    }

    .no-print,
    .sidebar,
    .header,
    .toast,
    .modal-overlay,
    #auth-screen,
    #global-loading,
    .btn,
    .nav-section-label {
        display: none !important;
    }

    body,
    .main,
    .content {
        margin: 0 !important;
        padding: 0 !important;
        background: white !important;
        overflow: hidden !important;
    }

    .recibo-container {
        max-width: 100% !important;
        border: none !important;
    }

    .vias-wrapper {
        box-shadow: none !important;
    }

    .recibo-copy {
        height: 14.8cm !important;
        /* Altura exata para caber as duas no A4 */
        padding: 0.8cm 1.5cm !important;
        border-bottom: 2px dotted #000 !important;
        /* Pontilhado da tesoura na impressão */
        page-break-inside: avoid;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
    }

    .recibo-copy:last-child {
        border-bottom: none !important;
    }

    /* Compactação para garantir que a assinatura suba */
    .recibo-header h2 {
        font-size: 14pt !important;
        margin-bottom: 0 !important;
    }

    .recibo-amount-box {
        margin: 5px 0 !important;
        padding: 5px !important;
    }

    .recibo-amount-box .amount {
        font-size: 15pt !important;
    }

    .recibo-clause-box {
        font-size: 7pt !important;
        margin: 5px 0 !important;
        line-height: 1.1 !important;
    }

    .sig-image-wrapper {
        height: 35px !important;
    }

    .signature-line {
        font-size: 7pt !important;
    }
}