- Badges: Estilo translúcido uniforme (bg-opacity-25 + text-color) via CSS global - Afetados: RecurringTransactions, Accounts, Categories, TransactionsByWeek - Widgets: UpcomingWidget, OverdueWidget, CalendarWidget, OverpaymentsAnalysis - Botões: Estilo outline padronizado (btn-outline-*) em RecurringTransactions - Simplificação: Remover classes redundantes dos JSX
2889 lines
54 KiB
CSS
2889 lines
54 KiB
CSS
body {
|
|
margin: 0;
|
|
font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Oxygen',
|
|
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
|
|
font-size: 11pt; /* Tamanho base mínimo 11pt */
|
|
line-height: 1.5;
|
|
background: radial-gradient(circle at 20% 20%, #1e293b, #0f172a 45%),
|
|
radial-gradient(circle at 80% 0%, #1e40af55, #0f172a 55%),
|
|
#0f172a;
|
|
color: #f1f5f9;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
/* iOS Safe Area Support */
|
|
padding-top: env(safe-area-inset-top);
|
|
padding-bottom: env(safe-area-inset-bottom);
|
|
padding-left: env(safe-area-inset-left);
|
|
padding-right: env(safe-area-inset-right);
|
|
/* Previne bounce scroll no iOS */
|
|
overscroll-behavior-y: none;
|
|
-webkit-overflow-scrolling: touch;
|
|
}
|
|
|
|
/* Tamanhos mínimos para elementos de texto - mínimo 11pt */
|
|
p, span, td, th, label, .form-label, .dropdown-item, .btn, li, small, .small, .text-muted,
|
|
input, select, textarea, .form-control, .form-select, option, .input-group-text,
|
|
.modal-title, .modal-body, .modal-header, .modal-footer,
|
|
.toast, .toast-body, .toast-header,
|
|
.popover-body, .popover-header, .tooltip-inner,
|
|
.alert, .card-body, .card-text, .card-title,
|
|
.list-group-item, .accordion-body, .accordion-button {
|
|
font-size: 11pt !important;
|
|
}
|
|
|
|
h1 { font-size: 2rem; }
|
|
h2 { font-size: 1.75rem; }
|
|
h3 { font-size: 1.5rem; }
|
|
h4 { font-size: 1.25rem; }
|
|
h5 { font-size: 1.1rem; }
|
|
h6 { font-size: 1rem; }
|
|
|
|
a {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.min-vh-100 {
|
|
min-height: 100vh;
|
|
}
|
|
|
|
.card {
|
|
background: #1e293b;
|
|
border: 1px solid #334155;
|
|
border-radius: 1rem;
|
|
box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.card .form-label,
|
|
.card h2,
|
|
.card p {
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.form-control {
|
|
background: #0f172a;
|
|
border: 1px solid #334155;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.form-control:focus {
|
|
background: #0f172a;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.35);
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.form-control::placeholder {
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.btn-primary {
|
|
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
|
|
border: none;
|
|
color: #f8fafc;
|
|
font-weight: 600;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.btn-primary:hover,
|
|
.btn-primary:focus {
|
|
background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
|
|
transform: translateY(-1px);
|
|
}
|
|
|
|
.btn-primary:active {
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.alert-danger {
|
|
background: rgba(239, 68, 68, 0.12);
|
|
border-color: rgba(239, 68, 68, 0.35);
|
|
color: #fecdd3;
|
|
}
|
|
|
|
.text-muted {
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
.spinner-border {
|
|
color: #f8fafc;
|
|
}
|
|
|
|
/* Dashboard Dark Theme */
|
|
.dashboard-dark {
|
|
background: radial-gradient(circle at 20% 20%, #1e293b, #0f172a 45%),
|
|
radial-gradient(circle at 80% 0%, #1e40af55, #0f172a 55%),
|
|
#0f172a;
|
|
min-height: 100vh;
|
|
}
|
|
|
|
/* Tables Dark Theme */
|
|
.table {
|
|
color: #e2e8f0;
|
|
--bs-table-bg: transparent !important;
|
|
--bs-table-color: #e2e8f0 !important;
|
|
--bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
|
|
--bs-table-hover-bg: rgba(59, 130, 246, 0.08) !important;
|
|
--bs-table-active-bg: rgba(255, 255, 255, 0.08) !important;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.table > :not(caption) > * > * {
|
|
background-color: transparent !important;
|
|
color: #e2e8f0;
|
|
box-shadow: none !important;
|
|
}
|
|
|
|
.table > tbody > tr {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.table > tbody > tr > td {
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.table td {
|
|
color: #cbd5e1;
|
|
border-color: #334155;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.table th {
|
|
color: #94a3b8;
|
|
border-color: #334155;
|
|
background-color: transparent !important;
|
|
}
|
|
|
|
.table-hover > tbody > tr:hover {
|
|
background-color: rgba(59, 130, 246, 0.08) !important;
|
|
}
|
|
|
|
.table-hover > tbody > tr:hover > * {
|
|
background-color: rgba(59, 130, 246, 0.08) !important;
|
|
--bs-table-hover-bg: rgba(59, 130, 246, 0.08) !important;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.table-striped > tbody > tr:nth-of-type(odd) > * {
|
|
background-color: rgba(255, 255, 255, 0.02) !important;
|
|
--bs-table-striped-bg: rgba(255, 255, 255, 0.02) !important;
|
|
}
|
|
|
|
.table-borderless td {
|
|
border: none;
|
|
}
|
|
|
|
/* Override Bootstrap bg-light for dark theme */
|
|
.bg-light {
|
|
background: #0f172a !important;
|
|
}
|
|
|
|
/* Cards additional styling */
|
|
.card h5,
|
|
.card h2 {
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.card-title {
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.card-text {
|
|
color: #94a3b8;
|
|
}
|
|
|
|
/* Navbar dark styling */
|
|
.navbar-brand {
|
|
color: #f8fafc !important;
|
|
}
|
|
|
|
/* Badge improvements */
|
|
.badge {
|
|
font-weight: 500;
|
|
}
|
|
|
|
/* Icons in cards */
|
|
.text-primary {
|
|
color: #3b82f6 !important;
|
|
}
|
|
|
|
.text-success {
|
|
color: #10b981 !important;
|
|
}
|
|
|
|
.text-info {
|
|
color: #06b6d4 !important;
|
|
}
|
|
|
|
/* ========================================
|
|
APP LAYOUT - Modern Sidebar Design
|
|
======================================== */
|
|
|
|
.app-layout {
|
|
display: flex;
|
|
min-height: 100vh;
|
|
background: #0f172a;
|
|
}
|
|
|
|
/* Sidebar */
|
|
.app-sidebar {
|
|
width: 220px;
|
|
background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
|
|
border-right: 1px solid #334155;
|
|
position: fixed;
|
|
height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
z-index: 1000;
|
|
transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.app-sidebar.collapsed {
|
|
width: 60px;
|
|
}
|
|
|
|
/* Logo Section */
|
|
.sidebar-logo {
|
|
padding: 1rem;
|
|
border-bottom: 1px solid #334155;
|
|
}
|
|
|
|
.logo-content {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
}
|
|
|
|
.logo-brand {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.logo-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.125rem;
|
|
color: #ffffff;
|
|
box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.logo-image {
|
|
height: 40px;
|
|
width: auto;
|
|
object-fit: contain;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
.logo-text {
|
|
font-size: 1.125rem;
|
|
font-weight: 700;
|
|
color: #f1f5f9;
|
|
letter-spacing: -0.025em;
|
|
}
|
|
|
|
.sidebar-toggle {
|
|
width: 28px;
|
|
height: 28px;
|
|
background: rgba(59, 130, 246, 0.1);
|
|
border: 1px solid #334155;
|
|
border-radius: 6px;
|
|
color: #94a3b8;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.sidebar-toggle:hover {
|
|
background: rgba(59, 130, 246, 0.2);
|
|
border-color: #3b82f6;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
/* Collapsed logo adjustments */
|
|
.app-sidebar.collapsed .logo-content {
|
|
justify-content: center;
|
|
}
|
|
|
|
.app-sidebar.collapsed .sidebar-toggle {
|
|
margin: 0;
|
|
}
|
|
|
|
/* Navigation */
|
|
.sidebar-nav {
|
|
flex: 1;
|
|
padding: 1rem 0.5rem;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.sidebar-link {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
padding: 0.625rem 0.75rem;
|
|
border-radius: 8px;
|
|
color: #94a3b8;
|
|
text-decoration: none;
|
|
font-size: 0.8125rem;
|
|
font-weight: 500;
|
|
transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.sidebar-link::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 0;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
width: 3px;
|
|
height: 0;
|
|
background: linear-gradient(180deg, #3b82f6 0%, #1e40af 100%);
|
|
border-radius: 0 4px 4px 0;
|
|
transition: height 0.2s;
|
|
}
|
|
|
|
.sidebar-link:hover {
|
|
background: rgba(59, 130, 246, 0.08);
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.sidebar-link:hover::before {
|
|
height: 50%;
|
|
}
|
|
|
|
.sidebar-link.active {
|
|
background: linear-gradient(135deg, rgba(30, 64, 175, 0.3) 0%, rgba(59, 130, 246, 0.15) 100%);
|
|
color: #60a5fa;
|
|
border: 1px solid rgba(59, 130, 246, 0.2);
|
|
}
|
|
|
|
.sidebar-link.active::before {
|
|
height: 70%;
|
|
}
|
|
|
|
.sidebar-link-icon {
|
|
width: 32px;
|
|
height: 32px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: rgba(148, 163, 184, 0.08);
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.sidebar-link:hover .sidebar-link-icon {
|
|
background: rgba(59, 130, 246, 0.15);
|
|
color: #60a5fa;
|
|
}
|
|
|
|
.sidebar-link.active .sidebar-link-icon {
|
|
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
|
|
color: #ffffff;
|
|
box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
|
|
}
|
|
|
|
.sidebar-link-text {
|
|
white-space: normal;
|
|
line-height: 1.3;
|
|
word-wrap: break-word;
|
|
}
|
|
|
|
/* Sidebar Groups */
|
|
.sidebar-group {
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.sidebar-group-toggle {
|
|
width: 100%;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 12px;
|
|
padding: 10px 16px;
|
|
color: #94a3b8;
|
|
background: transparent;
|
|
border: none;
|
|
border-radius: 12px;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
text-align: left;
|
|
position: relative;
|
|
}
|
|
|
|
.sidebar-group-toggle:hover {
|
|
background: rgba(148, 163, 184, 0.08);
|
|
color: #e2e8f0;
|
|
}
|
|
|
|
.sidebar-group-toggle.expanded {
|
|
color: #60a5fa;
|
|
}
|
|
|
|
.sidebar-group-arrow {
|
|
margin-left: auto;
|
|
font-size: 0.75rem;
|
|
opacity: 0.6;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.sidebar-group-items {
|
|
margin-left: 20px;
|
|
padding-left: 12px;
|
|
border-left: 1px solid rgba(148, 163, 184, 0.15);
|
|
margin-top: 4px;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.sidebar-sublink {
|
|
padding: 8px 12px !important;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.sidebar-sublink .sidebar-link-icon {
|
|
width: 26px;
|
|
height: 26px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Collapsed sidebar - show submenu items inline */
|
|
.app-sidebar.collapsed .sidebar-group-toggle {
|
|
justify-content: center;
|
|
padding: 10px;
|
|
}
|
|
|
|
.app-sidebar.collapsed .sidebar-group-toggle .sidebar-link-text,
|
|
.app-sidebar.collapsed .sidebar-group-toggle .sidebar-group-arrow {
|
|
display: none;
|
|
}
|
|
|
|
.sidebar-collapsed-submenu {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 2px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.sidebar-collapsed-submenu .sidebar-link {
|
|
justify-content: center;
|
|
padding: 8px;
|
|
}
|
|
|
|
.sidebar-collapsed-submenu .sidebar-link .sidebar-link-icon {
|
|
width: 28px;
|
|
height: 28px;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
/* Collapsed navigation */
|
|
.app-sidebar.collapsed .sidebar-link {
|
|
justify-content: center;
|
|
padding: 0.625rem;
|
|
}
|
|
|
|
.app-sidebar.collapsed .sidebar-link::before {
|
|
display: none;
|
|
}
|
|
|
|
/* User Section */
|
|
.sidebar-user {
|
|
padding: 0.75rem;
|
|
border-top: 1px solid #334155;
|
|
background: rgba(15, 23, 42, 0.5);
|
|
}
|
|
|
|
.user-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.625rem;
|
|
}
|
|
|
|
.user-avatar {
|
|
width: 36px;
|
|
height: 36px;
|
|
background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #ffffff;
|
|
font-size: 1rem;
|
|
flex-shrink: 0;
|
|
box-shadow: 0 2px 8px rgba(34, 197, 94, 0.25);
|
|
}
|
|
|
|
.user-details {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.user-name {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: #f1f5f9;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-email {
|
|
font-size: 0.625rem;
|
|
color: #64748b;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.user-logout {
|
|
width: 32px;
|
|
height: 32px;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
border-radius: 8px;
|
|
color: #ef4444;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.user-logout:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
border-color: #ef4444;
|
|
transform: scale(1.05);
|
|
}
|
|
|
|
.user-logout-collapsed {
|
|
width: 100%;
|
|
height: 36px;
|
|
background: rgba(239, 68, 68, 0.1);
|
|
border: 1px solid rgba(239, 68, 68, 0.2);
|
|
border-radius: 8px;
|
|
color: #ef4444;
|
|
cursor: pointer;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.user-logout-collapsed:hover {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
border-color: #ef4444;
|
|
}
|
|
|
|
/* Main Content */
|
|
.app-main {
|
|
flex: 1;
|
|
margin-left: 220px;
|
|
min-height: 100vh;
|
|
display: flex;
|
|
flex-direction: column;
|
|
transition: margin-left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
}
|
|
|
|
.app-main.expanded {
|
|
margin-left: 60px;
|
|
}
|
|
|
|
/* Header */
|
|
.app-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.875rem 1.5rem;
|
|
background: linear-gradient(180deg, #1e293b 0%, rgba(30, 41, 59, 0.95) 100%);
|
|
border-bottom: 1px solid #334155;
|
|
backdrop-filter: blur(8px);
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
}
|
|
|
|
.header-welcome {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.welcome-label {
|
|
font-size: 0.8125rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.welcome-name {
|
|
font-size: 0.8125rem;
|
|
font-weight: 600;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.header-actions {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.header-date {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.75rem;
|
|
color: #64748b;
|
|
padding: 0.375rem 0.75rem;
|
|
background: rgba(148, 163, 184, 0.05);
|
|
border: 1px solid #334155;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.header-date i {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
/* Content Area */
|
|
.app-content {
|
|
flex: 1;
|
|
padding: 1.5rem;
|
|
}
|
|
|
|
/* Responsive */
|
|
/* ===== MOBILE SIDEBAR (OVERLAY SLIDE-IN) ===== */
|
|
@media (max-width: 768px) {
|
|
/* Esconde sidebar por padrão em mobile */
|
|
.app-sidebar {
|
|
position: fixed;
|
|
left: -100%;
|
|
width: 280px !important;
|
|
height: 100vh;
|
|
z-index: 1050;
|
|
transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1);
|
|
box-shadow: none;
|
|
}
|
|
|
|
/* Sidebar aberta em mobile */
|
|
.app-sidebar.mobile-open {
|
|
left: 0 !important;
|
|
box-shadow: 4px 0 12px rgba(0, 0, 0, 0.5);
|
|
}
|
|
|
|
/* Mostra tudo quando sidebar mobile está aberta */
|
|
.app-sidebar.mobile-open .logo-brand,
|
|
.app-sidebar.mobile-open .sidebar-link-text,
|
|
.app-sidebar.mobile-open .user-details {
|
|
display: flex !important;
|
|
opacity: 1 !important;
|
|
visibility: visible !important;
|
|
}
|
|
|
|
/* Backdrop para fechar sidebar */
|
|
.sidebar-backdrop {
|
|
position: fixed;
|
|
top: 0;
|
|
left: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
background: rgba(0, 0, 0, 0.5);
|
|
z-index: 1040;
|
|
animation: fadeIn 0.3s ease;
|
|
}
|
|
|
|
@keyframes fadeIn {
|
|
from { opacity: 0; }
|
|
to { opacity: 1; }
|
|
}
|
|
|
|
/* Conteúdo principal ocupa toda largura em mobile */
|
|
.app-main {
|
|
margin-left: 0 !important;
|
|
width: 100% !important;
|
|
}
|
|
|
|
/* Hamburger menu button */
|
|
.mobile-menu-toggle {
|
|
display: flex !important;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 44px;
|
|
height: 44px;
|
|
background: transparent;
|
|
border: none;
|
|
color: #f1f5f9;
|
|
font-size: 1.5rem;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
border-radius: 0.5rem;
|
|
margin-right: 0.75rem;
|
|
}
|
|
|
|
.mobile-menu-toggle:hover {
|
|
background: rgba(59, 130, 246, 0.15);
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.mobile-menu-toggle:active {
|
|
transform: scale(0.95);
|
|
}
|
|
|
|
/* Ajusta header mobile */
|
|
.app-header {
|
|
padding: 0.75rem 1rem !important;
|
|
}
|
|
|
|
.header-welcome {
|
|
font-size: 0.9rem !important;
|
|
}
|
|
|
|
.header-date {
|
|
display: none !important;
|
|
}
|
|
|
|
/* Conteúdo principal com padding reduzido */
|
|
.app-content {
|
|
padding: 0.75rem !important;
|
|
}
|
|
}
|
|
|
|
/* Desktop: esconde hamburger e backdrop */
|
|
@media (min-width: 769px) {
|
|
.mobile-menu-toggle {
|
|
display: none !important;
|
|
}
|
|
|
|
.sidebar-backdrop {
|
|
display: none !important;
|
|
}
|
|
}
|
|
|
|
/* Sidebar Navigation - Legacy support */
|
|
.sidebar .nav-link {
|
|
color: #94a3b8;
|
|
transition: all 0.2s ease;
|
|
}
|
|
|
|
.sidebar .nav-link:hover {
|
|
color: #f1f5f9;
|
|
background: rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.sidebar .nav-link.active {
|
|
background: #1e40af !important;
|
|
color: #ffffff !important;
|
|
}
|
|
|
|
/* Text colors slate */
|
|
.text-slate-300 {
|
|
color: #cbd5e1 !important;
|
|
}
|
|
|
|
.text-slate-400 {
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
.text-slate-500 {
|
|
color: #64748b !important;
|
|
}
|
|
|
|
.text-slate-600 {
|
|
color: #475569 !important;
|
|
}
|
|
|
|
/* Card hover effect */
|
|
.card-hover:hover {
|
|
transform: translateY(-4px);
|
|
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
|
|
}
|
|
|
|
/* Form elements dark theme */
|
|
.form-select {
|
|
background-color: #0f172a;
|
|
border-color: #334155;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.form-select:focus {
|
|
background-color: #0f172a;
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.35);
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.form-check-input {
|
|
background-color: #0f172a;
|
|
border-color: #334155;
|
|
}
|
|
|
|
.form-check-input:checked {
|
|
background-color: #1e40af;
|
|
border-color: #1e40af;
|
|
}
|
|
|
|
/* Table hover effect */
|
|
.table-hover tbody tr:hover {
|
|
background-color: rgba(59, 130, 246, 0.1) !important;
|
|
}
|
|
|
|
/* Dropdown menu dark */
|
|
.dropdown-menu {
|
|
background-color: #334155;
|
|
border-color: #475569;
|
|
z-index: 9999 !important;
|
|
}
|
|
|
|
.dropdown-item {
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.dropdown-item:hover {
|
|
background-color: rgba(59, 130, 246, 0.2);
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
/* Button outline light */
|
|
.btn-outline-light:hover {
|
|
background-color: rgba(255, 255, 255, 0.1);
|
|
}
|
|
|
|
/* Scrollbar styling */
|
|
::-webkit-scrollbar {
|
|
width: 8px;
|
|
height: 8px;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: #1e293b;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
background: #334155;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: #475569;
|
|
}
|
|
|
|
/* Modal backdrop fix */
|
|
.modal.show {
|
|
background-color: rgba(0, 0, 0, 0.7);
|
|
}
|
|
|
|
/* Badge close button */
|
|
.badge .btn-close {
|
|
filter: none;
|
|
}
|
|
|
|
/* Placeholder loading */
|
|
.placeholder {
|
|
background-color: #334155;
|
|
}
|
|
|
|
/* ===== GLOBAL DARK THEME OVERRIDES ===== */
|
|
|
|
/* Force all form controls to dark theme */
|
|
.form-control,
|
|
.form-select,
|
|
input[type="text"],
|
|
input[type="email"],
|
|
input[type="password"],
|
|
input[type="number"],
|
|
input[type="date"],
|
|
input[type="datetime-local"],
|
|
input[type="time"],
|
|
input[type="search"],
|
|
input[type="tel"],
|
|
input[type="url"],
|
|
textarea,
|
|
select {
|
|
background-color: #0f172a !important;
|
|
border-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.form-control:focus,
|
|
.form-select:focus,
|
|
input:focus,
|
|
textarea:focus,
|
|
select:focus {
|
|
background-color: #0f172a !important;
|
|
border-color: #3b82f6 !important;
|
|
box-shadow: 0 0 0 0.15rem rgba(59, 130, 246, 0.35) !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
/* Color picker input - special handling */
|
|
input[type="color"],
|
|
.form-control-color {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
padding: 0.375rem !important;
|
|
}
|
|
|
|
input[type="color"]::-webkit-color-swatch-wrapper {
|
|
padding: 2px;
|
|
}
|
|
|
|
input[type="color"]::-webkit-color-swatch {
|
|
border: 1px solid #475569;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
/* Modal dark theme */
|
|
.modal-content {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.modal-header {
|
|
border-color: #334155 !important;
|
|
}
|
|
|
|
.modal-footer {
|
|
border-color: #334155 !important;
|
|
}
|
|
|
|
.modal-title {
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
/* Bootstrap card dark override */
|
|
.card {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
/* Table dark mode */
|
|
.table {
|
|
--bs-table-bg: transparent !important;
|
|
--bs-table-striped-bg: rgba(30, 41, 59, 0.5) !important;
|
|
--bs-table-hover-bg: rgba(59, 130, 246, 0.1) !important;
|
|
color: #e2e8f0 !important;
|
|
}
|
|
|
|
.table > :not(caption) > * > * {
|
|
background-color: transparent !important;
|
|
border-bottom-color: #334155 !important;
|
|
}
|
|
|
|
.table thead th {
|
|
background-color: transparent !important;
|
|
border-bottom-color: #334155 !important;
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
/* List group dark */
|
|
.list-group-item {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.list-group-item:hover {
|
|
background-color: #334155 !important;
|
|
}
|
|
|
|
/* Form label */
|
|
.form-label {
|
|
color: #cbd5e1 !important;
|
|
}
|
|
|
|
/* Input group */
|
|
.input-group-text {
|
|
background-color: #334155 !important;
|
|
border-color: #334155 !important;
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
/* Accordion dark */
|
|
.accordion-item {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
}
|
|
|
|
.accordion-button {
|
|
background-color: #1e293b !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.accordion-button:not(.collapsed) {
|
|
background-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.accordion-body {
|
|
background-color: #1e293b !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
/* Toast dark */
|
|
.toast {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.toast-header {
|
|
background-color: #334155 !important;
|
|
border-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
/* Popover and Tooltip dark */
|
|
.popover {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
}
|
|
|
|
.popover-header {
|
|
background-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.popover-body {
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.tooltip-inner {
|
|
background-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
/* Offcanvas dark */
|
|
.offcanvas {
|
|
background-color: #1e293b !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.offcanvas-header {
|
|
border-color: #334155 !important;
|
|
}
|
|
|
|
/* Nav tabs/pills dark */
|
|
.nav-tabs .nav-link {
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
.nav-tabs .nav-link.active {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.nav-pills .nav-link {
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
.nav-pills .nav-link.active {
|
|
background-color: #1e40af !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
/* Pagination dark */
|
|
.page-link {
|
|
background-color: #1e293b !important;
|
|
border-color: #334155 !important;
|
|
color: #94a3b8 !important;
|
|
}
|
|
|
|
.page-link:hover {
|
|
background-color: #334155 !important;
|
|
color: #f1f5f9 !important;
|
|
}
|
|
|
|
.page-item.active .page-link {
|
|
background-color: #1e40af !important;
|
|
border-color: #1e40af !important;
|
|
}
|
|
|
|
/* Progress bar dark */
|
|
.progress {
|
|
background-color: #334155 !important;
|
|
}
|
|
|
|
/* Alert dark variations */
|
|
.alert {
|
|
border-width: 1px !important;
|
|
}
|
|
|
|
.alert-success {
|
|
background-color: rgba(16, 185, 129, 0.15) !important;
|
|
border-color: rgba(16, 185, 129, 0.3) !important;
|
|
color: #6ee7b7 !important;
|
|
}
|
|
|
|
.alert-danger {
|
|
background-color: rgba(239, 68, 68, 0.15) !important;
|
|
border-color: rgba(239, 68, 68, 0.3) !important;
|
|
color: #fca5a5 !important;
|
|
}
|
|
|
|
.alert-warning {
|
|
background-color: rgba(245, 158, 11, 0.15) !important;
|
|
border-color: rgba(245, 158, 11, 0.3) !important;
|
|
color: #fcd34d !important;
|
|
}
|
|
|
|
.alert-info {
|
|
background-color: rgba(6, 182, 212, 0.15) !important;
|
|
border-color: rgba(6, 182, 212, 0.3) !important;
|
|
color: #67e8f9 !important;
|
|
}
|
|
|
|
/* Close button white */
|
|
.btn-close {
|
|
filter: invert(1) grayscale(100%) brightness(200%);
|
|
}
|
|
|
|
/* ===== DESKTOP COMPACT MODE (25% smaller) ===== */
|
|
@media (min-width: 992px) {
|
|
/* Base font size reduction */
|
|
html {
|
|
font-size: 13px; /* 16px * 0.75 = 12px, but 13px for readability */
|
|
}
|
|
|
|
/* Headings */
|
|
h1, .h1 { font-size: 1.875rem; } /* was 2.5rem */
|
|
h2, .h2 { font-size: 1.5rem; } /* was 2rem */
|
|
h3, .h3 { font-size: 1.25rem; } /* was 1.75rem */
|
|
h4, .h4 { font-size: 1.1rem; } /* was 1.5rem */
|
|
h5, .h5 { font-size: 1rem; } /* was 1.25rem */
|
|
h6, .h6 { font-size: 0.9rem; } /* was 1rem */
|
|
|
|
/* Cards - more compact */
|
|
.card {
|
|
border-radius: 0.75rem;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
/* Buttons */
|
|
.btn {
|
|
padding: 0.375rem 0.75rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.btn-lg {
|
|
padding: 0.5rem 1rem;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Forms */
|
|
.form-control,
|
|
.form-select {
|
|
padding: 0.375rem 0.625rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.form-label {
|
|
margin-bottom: 0.375rem;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
/* Tables */
|
|
.table th,
|
|
.table td {
|
|
padding: 0.5rem 0.625rem;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
/* Badges */
|
|
.badge {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.6875rem;
|
|
}
|
|
|
|
/* Spacing utilities override */
|
|
.p-3 { padding: 0.75rem !important; }
|
|
.p-4 { padding: 1rem !important; }
|
|
.p-5 { padding: 1.5rem !important; }
|
|
|
|
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
|
|
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
|
|
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
|
|
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
|
|
|
|
.mb-3 { margin-bottom: 0.75rem !important; }
|
|
.mb-4 { margin-bottom: 1rem !important; }
|
|
.mt-3 { margin-top: 0.75rem !important; }
|
|
.mt-4 { margin-top: 1rem !important; }
|
|
.my-3 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
|
|
.my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
|
|
|
|
.gap-2 { gap: 0.375rem !important; }
|
|
.gap-3 { gap: 0.75rem !important; }
|
|
.gap-4 { gap: 1rem !important; }
|
|
|
|
/* Icons */
|
|
.bi {
|
|
font-size: inherit;
|
|
}
|
|
|
|
/* Modal */
|
|
.modal-dialog {
|
|
max-width: 450px;
|
|
}
|
|
|
|
.modal-lg {
|
|
max-width: 600px;
|
|
}
|
|
|
|
.modal-xl {
|
|
max-width: 900px;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
.modal-body {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 0.75rem 1rem;
|
|
}
|
|
|
|
/* Dropdown */
|
|
.dropdown-item {
|
|
padding: 0.375rem 0.75rem;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
/* Alerts */
|
|
.alert {
|
|
padding: 0.625rem 0.875rem;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
/* List groups */
|
|
.list-group-item {
|
|
padding: 0.5rem 0.75rem;
|
|
}
|
|
}
|
|
|
|
/* ===== SIDEBAR COMPACT MODE ===== */
|
|
@media (min-width: 992px) {
|
|
.sidebar {
|
|
width: 200px !important;
|
|
}
|
|
|
|
.sidebar.collapsed {
|
|
width: 55px !important;
|
|
}
|
|
|
|
.sidebar .nav-link {
|
|
padding: 0.5rem 0.625rem !important;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.sidebar .fs-5 {
|
|
font-size: 1rem !important;
|
|
}
|
|
}
|
|
|
|
/* ===== TRANSACTIONS PAGE - MODERN REDESIGN ===== */
|
|
|
|
/* Page container */
|
|
.txn-page {
|
|
padding: 1rem 1.5rem;
|
|
}
|
|
|
|
/* Header bar */
|
|
.txn-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.75rem 1rem;
|
|
background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
|
|
border: 1px solid #334155;
|
|
border-radius: 12px;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.txn-header-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.txn-header-title h1 {
|
|
font-size: 1.25rem;
|
|
font-weight: 600;
|
|
margin: 0;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.txn-header-title .subtitle {
|
|
font-size: 0.75rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.txn-header-actions {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.txn-header-actions .btn {
|
|
padding: 0.375rem 0.75rem;
|
|
font-size: 0.8125rem;
|
|
border-radius: 8px;
|
|
}
|
|
|
|
/* Stats cards row */
|
|
.txn-stats {
|
|
display: grid;
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 0.75rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.txn-stat-card {
|
|
background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
|
|
border: 1px solid #334155;
|
|
border-radius: 10px;
|
|
padding: 0.875rem 1rem;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
transition: transform 0.2s, box-shadow 0.2s;
|
|
}
|
|
|
|
.txn-stat-card:hover {
|
|
transform: translateY(-2px);
|
|
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
|
|
}
|
|
|
|
.txn-stat-icon {
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 10px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 1.125rem;
|
|
}
|
|
|
|
.txn-stat-icon.credit {
|
|
background: rgba(16, 185, 129, 0.15);
|
|
color: #10b981;
|
|
}
|
|
|
|
.txn-stat-icon.debit {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.txn-stat-icon.balance {
|
|
background: rgba(59, 130, 246, 0.15);
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.txn-stat-icon.pending {
|
|
background: rgba(245, 158, 11, 0.15);
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.txn-stat-content {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.txn-stat-label {
|
|
font-size: 0.6875rem;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 2px;
|
|
}
|
|
|
|
.txn-stat-value {
|
|
font-size: 1rem;
|
|
font-weight: 700;
|
|
color: #f1f5f9;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.txn-stat-value.positive { color: #10b981; }
|
|
.txn-stat-value.negative { color: #ef4444; }
|
|
|
|
/* Filters bar */
|
|
.txn-filters {
|
|
background: #1e293b;
|
|
border: 1px solid #334155;
|
|
border-radius: 10px;
|
|
margin-bottom: 1rem;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.txn-filters-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.625rem 1rem;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
}
|
|
|
|
.txn-filters-toggle:hover {
|
|
background: rgba(59, 130, 246, 0.05);
|
|
}
|
|
|
|
.txn-filters-toggle-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.txn-filters-toggle-left i {
|
|
color: #3b82f6;
|
|
}
|
|
|
|
.txn-filters-toggle-left span {
|
|
font-size: 0.8125rem;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.txn-filters-active {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.txn-filter-tag {
|
|
background: rgba(59, 130, 246, 0.2);
|
|
color: #60a5fa;
|
|
padding: 0.125rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.6875rem;
|
|
}
|
|
|
|
.txn-filters-body {
|
|
padding: 0.75rem 1rem;
|
|
border-top: 1px solid #334155;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.txn-filters-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(6, 1fr) auto;
|
|
gap: 0.75rem;
|
|
align-items: end;
|
|
}
|
|
|
|
.txn-filters-grid .form-label {
|
|
font-size: 0.6875rem !important;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.txn-filters-grid .form-control,
|
|
.txn-filters-grid .form-select {
|
|
font-size: 0.8125rem !important;
|
|
padding: 0.375rem 0.625rem;
|
|
background: #0f172a;
|
|
border-color: #334155;
|
|
border-radius: 6px;
|
|
}
|
|
|
|
.txn-filters-grid .form-control:focus,
|
|
.txn-filters-grid .form-select:focus {
|
|
border-color: #3b82f6;
|
|
box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15);
|
|
}
|
|
|
|
/* Currency tabs */
|
|
.txn-currency-tabs {
|
|
display: flex;
|
|
gap: 0.5rem;
|
|
margin-bottom: 1rem;
|
|
}
|
|
|
|
.txn-currency-tab {
|
|
padding: 0.5rem 1rem;
|
|
background: transparent;
|
|
border: 1px solid #334155;
|
|
border-radius: 8px;
|
|
color: #94a3b8;
|
|
font-size: 0.8125rem;
|
|
font-weight: 500;
|
|
cursor: pointer;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.txn-currency-tab:hover {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
border-color: #3b82f6;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.txn-currency-tab.active {
|
|
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
|
|
border-color: #3b82f6;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.txn-currency-tab .count {
|
|
margin-left: 0.5rem;
|
|
background: rgba(255, 255, 255, 0.2);
|
|
padding: 0.125rem 0.375rem;
|
|
border-radius: 4px;
|
|
font-size: 0.6875rem;
|
|
}
|
|
|
|
/* Week accordion */
|
|
.txn-week {
|
|
background: #1e293b;
|
|
border: 1px solid #334155;
|
|
border-radius: 10px;
|
|
margin-bottom: 0.75rem;
|
|
overflow: visible;
|
|
transition: box-shadow 0.2s;
|
|
}
|
|
|
|
.txn-week:hover {
|
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
|
|
}
|
|
|
|
.txn-week-header {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 0.75rem 1rem;
|
|
cursor: pointer;
|
|
transition: background 0.2s;
|
|
background: linear-gradient(90deg, rgba(59, 130, 246, 0.05) 0%, transparent 100%);
|
|
}
|
|
|
|
.txn-week-header:hover {
|
|
background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.02) 100%);
|
|
}
|
|
|
|
.txn-week-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.txn-week-chevron {
|
|
width: 24px;
|
|
height: 24px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #64748b;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.txn-week.expanded .txn-week-chevron {
|
|
transform: rotate(90deg);
|
|
}
|
|
|
|
.txn-week-info h3 {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: #f1f5f9;
|
|
margin: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.txn-week-info .dates {
|
|
font-size: 0.6875rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.txn-week-badges {
|
|
display: flex;
|
|
gap: 0.375rem;
|
|
}
|
|
|
|
.txn-week-badge {
|
|
padding: 0.125rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.6875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.txn-week-badge.count {
|
|
background: rgba(100, 116, 139, 0.2);
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.txn-week-badge.overdue {
|
|
background: rgba(239, 68, 68, 0.2);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.txn-week-summary {
|
|
display: flex;
|
|
gap: 1.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.txn-week-stat {
|
|
text-align: right;
|
|
}
|
|
|
|
.txn-week-stat-label {
|
|
font-size: 0.625rem;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
}
|
|
|
|
.txn-week-stat-value {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.txn-week-stat-value.credit { color: #10b981; }
|
|
.txn-week-stat-value.debit { color: #ef4444; }
|
|
.txn-week-stat-value.balance-pos { color: #10b981; }
|
|
.txn-week-stat-value.balance-neg { color: #ef4444; }
|
|
.txn-week-stat-value.pending { color: #f59e0b; }
|
|
|
|
/* Week body / transaction list */
|
|
.txn-week-body {
|
|
border-top: 1px solid #334155;
|
|
background: rgba(0, 0, 0, 0.15);
|
|
position: relative;
|
|
}
|
|
|
|
.txn-table {
|
|
width: 100%;
|
|
font-size: 0.8125rem;
|
|
overflow: visible;
|
|
}
|
|
|
|
.txn-table th {
|
|
padding: 0.625rem 0.75rem;
|
|
font-size: 0.6875rem;
|
|
font-weight: 600;
|
|
color: #64748b;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.5px;
|
|
background: rgba(0, 0, 0, 0.2);
|
|
border-bottom: 1px solid #334155;
|
|
}
|
|
|
|
.txn-table td {
|
|
padding: 0.625rem 0.75rem;
|
|
color: #cbd5e1;
|
|
border-bottom: 1px solid rgba(51, 65, 85, 0.5);
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.txn-table tbody tr {
|
|
transition: background 0.15s;
|
|
}
|
|
|
|
.txn-table tbody tr:hover {
|
|
background: rgba(59, 130, 246, 0.08);
|
|
}
|
|
|
|
.txn-table tbody tr:last-child td {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.txn-table tbody tr.overdue {
|
|
background: rgba(239, 68, 68, 0.08);
|
|
}
|
|
|
|
.txn-table tbody tr.overdue:hover {
|
|
background: rgba(239, 68, 68, 0.12);
|
|
}
|
|
|
|
/* Transaction row elements */
|
|
.txn-date {
|
|
font-size: 0.75rem;
|
|
color: #94a3b8;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.txn-date .overdue-icon {
|
|
color: #ef4444;
|
|
margin-left: 0.25rem;
|
|
}
|
|
|
|
.txn-description {
|
|
color: #f1f5f9;
|
|
cursor: pointer;
|
|
transition: color 0.15s;
|
|
}
|
|
|
|
.txn-description:hover {
|
|
color: #60a5fa;
|
|
}
|
|
|
|
.txn-original-desc {
|
|
font-size: 0.6875rem;
|
|
color: #64748b;
|
|
margin-top: 2px;
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.txn-account {
|
|
font-size: 0.75rem;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.txn-category-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 6px;
|
|
font-size: 0.6875rem;
|
|
font-weight: 500;
|
|
}
|
|
|
|
.txn-amount {
|
|
font-weight: 600;
|
|
font-size: 0.875rem;
|
|
text-align: right;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.txn-amount.credit { color: #10b981; }
|
|
.txn-amount.debit { color: #ef4444; }
|
|
|
|
.txn-type-badge,
|
|
.txn-status-badge {
|
|
padding: 0.1875rem 0.5rem;
|
|
border-radius: 4px;
|
|
font-size: 0.6875rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
}
|
|
|
|
.txn-type-badge.credit {
|
|
background: rgba(16, 185, 129, 0.15);
|
|
color: #10b981;
|
|
}
|
|
|
|
.txn-type-badge.debit {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.txn-status-badge.pending {
|
|
background: rgba(245, 158, 11, 0.15);
|
|
color: #f59e0b;
|
|
}
|
|
|
|
.txn-status-badge.completed {
|
|
background: rgba(16, 185, 129, 0.15);
|
|
color: #10b981;
|
|
}
|
|
|
|
.txn-status-badge.cancelled {
|
|
background: rgba(100, 116, 139, 0.15);
|
|
color: #94a3b8;
|
|
}
|
|
|
|
/* Actions dropdown */
|
|
.txn-actions-btn {
|
|
width: 28px;
|
|
height: 28px;
|
|
padding: 0;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: transparent;
|
|
border: 1px solid transparent;
|
|
border-radius: 6px;
|
|
color: #64748b;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.txn-actions-btn:hover {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
border-color: #334155;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
/* Pagination */
|
|
.txn-pagination {
|
|
display: flex;
|
|
justify-content: center;
|
|
gap: 0.375rem;
|
|
margin-top: 1rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.txn-pagination button {
|
|
min-width: 32px;
|
|
height: 32px;
|
|
padding: 0 0.5rem;
|
|
background: #1e293b;
|
|
border: 1px solid #334155;
|
|
border-radius: 6px;
|
|
color: #94a3b8;
|
|
font-size: 0.75rem;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.txn-pagination button:hover:not(:disabled) {
|
|
background: rgba(59, 130, 246, 0.1);
|
|
border-color: #3b82f6;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.txn-pagination button.active {
|
|
background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
|
|
border-color: #3b82f6;
|
|
color: #ffffff;
|
|
}
|
|
|
|
.txn-pagination button:disabled {
|
|
opacity: 0.5;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* Mobile pagination */
|
|
.txn-pagination.mobile {
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.txn-pagination.mobile button {
|
|
min-width: 36px;
|
|
height: 36px;
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.txn-pagination .page-info {
|
|
color: #94a3b8;
|
|
font-size: 0.75rem;
|
|
margin-left: 0.25rem;
|
|
}
|
|
|
|
/* Empty state */
|
|
.txn-empty {
|
|
text-align: center;
|
|
padding: 3rem 1rem;
|
|
background: #1e293b;
|
|
border: 1px dashed #334155;
|
|
border-radius: 10px;
|
|
}
|
|
|
|
.txn-empty i {
|
|
font-size: 2.5rem;
|
|
color: #475569;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.txn-empty p {
|
|
color: #64748b;
|
|
margin: 0;
|
|
}
|
|
|
|
/* Transfer badge */
|
|
.txn-transfer-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: rgba(6, 182, 212, 0.15);
|
|
color: #06b6d4;
|
|
border-radius: 4px;
|
|
font-size: 0.625rem;
|
|
margin-right: 0.375rem;
|
|
}
|
|
|
|
/* Reconciled badge - Transação conciliada com passivo */
|
|
.txn-reconciled-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 18px;
|
|
height: 18px;
|
|
background: rgba(168, 85, 247, 0.2);
|
|
color: #a855f7;
|
|
border-radius: 4px;
|
|
font-size: 0.75rem;
|
|
cursor: help;
|
|
}
|
|
|
|
.txn-reconciled-badge:hover {
|
|
background: rgba(168, 85, 247, 0.35);
|
|
}
|
|
|
|
/* Transferências Agrupadas */
|
|
.txn-transfers-section {
|
|
margin-top: 1rem;
|
|
padding: 1rem;
|
|
background: rgba(6, 182, 212, 0.05);
|
|
border-top: 1px solid rgba(6, 182, 212, 0.15);
|
|
}
|
|
|
|
.txn-transfers-title {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.8125rem;
|
|
font-weight: 500;
|
|
color: #06b6d4;
|
|
margin: 0 0 0.75rem 0;
|
|
}
|
|
|
|
.txn-transfers-title i {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.txn-transfers-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.txn-transfer-item {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
background: rgba(6, 182, 212, 0.08);
|
|
border: 1px solid rgba(6, 182, 212, 0.15);
|
|
border-radius: 8px;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.txn-transfer-item:hover {
|
|
background: rgba(6, 182, 212, 0.12);
|
|
border-color: rgba(6, 182, 212, 0.25);
|
|
}
|
|
|
|
.txn-transfer-info {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.txn-transfer-icon {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
width: 32px;
|
|
height: 32px;
|
|
background: rgba(6, 182, 212, 0.15);
|
|
color: #06b6d4;
|
|
border-radius: 6px;
|
|
font-size: 0.875rem;
|
|
}
|
|
|
|
.txn-transfer-details {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.txn-transfer-accounts {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.8125rem;
|
|
font-weight: 500;
|
|
color: #f1f5f9;
|
|
}
|
|
|
|
.txn-transfer-accounts i {
|
|
color: #64748b;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.txn-transfer-accounts .from {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.txn-transfer-accounts .to {
|
|
color: #22c55e;
|
|
}
|
|
|
|
.txn-transfer-meta {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
font-size: 0.75rem;
|
|
color: #64748b;
|
|
}
|
|
|
|
.txn-transfer-meta .separator {
|
|
color: #475569;
|
|
}
|
|
|
|
.txn-transfer-amount {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
color: #06b6d4;
|
|
}
|
|
|
|
/* Transfer Item Expandível */
|
|
.txn-transfer-item {
|
|
border-radius: 8px;
|
|
overflow: hidden;
|
|
transition: all 0.2s;
|
|
}
|
|
|
|
.txn-transfer-item.expanded {
|
|
background: rgba(6, 182, 212, 0.12);
|
|
border-color: rgba(6, 182, 212, 0.25);
|
|
}
|
|
|
|
.txn-transfer-main {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
padding: 0.75rem 1rem;
|
|
cursor: pointer;
|
|
transition: all 0.15s;
|
|
}
|
|
|
|
.txn-transfer-main:hover {
|
|
background: rgba(6, 182, 212, 0.08);
|
|
}
|
|
|
|
.txn-transfer-expand {
|
|
width: 20px;
|
|
height: 20px;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #64748b;
|
|
margin-right: 0.5rem;
|
|
transition: transform 0.2s;
|
|
}
|
|
|
|
.txn-transfer-item.expanded .txn-transfer-expand i {
|
|
color: #06b6d4;
|
|
}
|
|
|
|
/* Área Expandida */
|
|
.txn-transfer-expanded {
|
|
padding: 0 1rem 1rem 1rem;
|
|
border-top: 1px solid rgba(6, 182, 212, 0.15);
|
|
background: rgba(15, 23, 42, 0.5);
|
|
}
|
|
|
|
.txn-transfer-transactions {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
gap: 0.75rem;
|
|
margin-bottom: 0.75rem;
|
|
padding-top: 0.75rem;
|
|
}
|
|
|
|
.txn-transfer-txn {
|
|
padding: 0.75rem;
|
|
border-radius: 8px;
|
|
border: 1px solid #334155;
|
|
background: #1e293b;
|
|
}
|
|
|
|
.txn-transfer-txn.debit {
|
|
border-color: rgba(239, 68, 68, 0.3);
|
|
}
|
|
|
|
.txn-transfer-txn.credit {
|
|
border-color: rgba(34, 197, 94, 0.3);
|
|
}
|
|
|
|
.txn-transfer-txn-header {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
margin-bottom: 0.5rem;
|
|
}
|
|
|
|
.txn-transfer-txn-type {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.25rem;
|
|
font-size: 0.6875rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
padding: 0.25rem 0.5rem;
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.txn-transfer-txn-type.debit {
|
|
background: rgba(239, 68, 68, 0.15);
|
|
color: #ef4444;
|
|
}
|
|
|
|
.txn-transfer-txn-type.credit {
|
|
background: rgba(34, 197, 94, 0.15);
|
|
color: #22c55e;
|
|
}
|
|
|
|
.txn-transfer-txn-id {
|
|
font-size: 0.625rem;
|
|
color: #64748b;
|
|
font-family: monospace;
|
|
}
|
|
|
|
.txn-transfer-txn-body {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
}
|
|
|
|
.txn-transfer-txn-account {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.375rem;
|
|
font-size: 0.75rem;
|
|
color: #94a3b8;
|
|
}
|
|
|
|
.txn-transfer-txn-account i {
|
|
color: #64748b;
|
|
}
|
|
|
|
.txn-transfer-txn-amount {
|
|
font-size: 0.875rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.txn-transfer-txn-amount.debit {
|
|
color: #ef4444;
|
|
}
|
|
|
|
.txn-transfer-txn-amount.credit {
|
|
color: #22c55e;
|
|
}
|
|
|
|
.txn-transfer-actions {
|
|
display: flex;
|
|
justify-content: flex-end;
|
|
gap: 0.5rem;
|
|
padding-top: 0.5rem;
|
|
border-top: 1px dashed #334155;
|
|
}
|
|
|
|
.txn-transfer-actions .btn {
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Highlighted transaction (from dashboard click) */
|
|
.highlighted-transaction {
|
|
animation: highlightPulse 2s ease-in-out 3;
|
|
background-color: rgba(251, 191, 36, 0.2) !important;
|
|
border-left: 3px solid #fbbf24 !important;
|
|
}
|
|
|
|
@keyframes highlightPulse {
|
|
0%, 100% {
|
|
background-color: rgba(251, 191, 36, 0.2);
|
|
}
|
|
50% {
|
|
background-color: rgba(251, 191, 36, 0.4);
|
|
}
|
|
}
|
|
|
|
/* Responsive adjustments */
|
|
|
|
/* iPad Pro 12.9" landscape and large tablets (1024px - 1366px) */
|
|
@media (min-width: 1024px) and (max-width: 1366px) {
|
|
.txn-page {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.txn-stats {
|
|
grid-template-columns: repeat(4, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.txn-stat-card {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.txn-stat-icon {
|
|
width: 36px;
|
|
height: 36px;
|
|
font-size: 1rem;
|
|
}
|
|
|
|
.txn-stat-value {
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
.txn-filters-grid {
|
|
grid-template-columns: repeat(4, 1fr) auto;
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.txn-week-summary {
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.txn-week-stat {
|
|
min-width: 70px;
|
|
}
|
|
|
|
.txn-week-stat-value {
|
|
font-size: 0.8rem;
|
|
}
|
|
|
|
.txn-table th,
|
|
.txn-table td {
|
|
padding: 0.5rem 0.625rem;
|
|
}
|
|
|
|
/* Ocultar algunas columnas menos importantes en tablets */
|
|
.txn-table .col-account {
|
|
display: none;
|
|
}
|
|
|
|
.txn-header-title h1 {
|
|
font-size: 1.1rem;
|
|
}
|
|
|
|
.txn-header-actions .btn {
|
|
padding: 0.3rem 0.6rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Modals optimization for iPad */
|
|
.modal-dialog.modal-lg {
|
|
max-width: 85%;
|
|
margin: 1rem auto;
|
|
}
|
|
|
|
.modal-body {
|
|
max-height: 70vh;
|
|
overflow-y: auto;
|
|
}
|
|
}
|
|
|
|
/* iPad Pro 11" and smaller tablets (834px - 1024px) */
|
|
@media (min-width: 834px) and (max-width: 1024px) {
|
|
.txn-stats {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.txn-filters-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
gap: 0.5rem;
|
|
}
|
|
|
|
.txn-week-header {
|
|
padding: 0.625rem 0.75rem;
|
|
}
|
|
|
|
.txn-week-summary {
|
|
gap: 0.5rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.txn-week-stat {
|
|
min-width: 60px;
|
|
}
|
|
|
|
.txn-table .col-account,
|
|
.txn-table .col-status {
|
|
display: none;
|
|
}
|
|
|
|
.txn-amount {
|
|
font-size: 0.8rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 1200px) {
|
|
.txn-stats {
|
|
grid-template-columns: repeat(2, 1fr);
|
|
}
|
|
|
|
.txn-filters-grid {
|
|
grid-template-columns: repeat(3, 1fr);
|
|
}
|
|
|
|
.txn-week-summary {
|
|
gap: 1rem;
|
|
}
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.txn-page {
|
|
padding: 0.75rem;
|
|
}
|
|
|
|
.txn-header {
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
text-align: center;
|
|
}
|
|
|
|
.txn-header-actions {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
|
|
.txn-stats {
|
|
grid-template-columns: 1fr 1fr;
|
|
}
|
|
|
|
.txn-filters-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.txn-week-header {
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
align-items: flex-start;
|
|
}
|
|
|
|
.txn-week-summary {
|
|
width: 100%;
|
|
justify-content: space-between;
|
|
}
|
|
}
|
|
|
|
/* ==========================================
|
|
FOOTER STYLES - LGPD/GDPR Compliant
|
|
========================================== */
|
|
|
|
.app-footer {
|
|
background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
|
|
border-top: 1px solid #334155;
|
|
padding: 0.75rem 1.5rem;
|
|
margin-top: auto;
|
|
}
|
|
|
|
.footer-content {
|
|
display: flex;
|
|
justify-content: space-between;
|
|
align-items: center;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
}
|
|
|
|
.footer-left {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.75rem;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.footer-copyright {
|
|
color: #94a3b8;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.footer-separator {
|
|
color: #475569;
|
|
}
|
|
|
|
.footer-tagline {
|
|
color: #64748b;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.footer-right {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 1rem;
|
|
}
|
|
|
|
.footer-link-btn {
|
|
background: none;
|
|
border: none;
|
|
color: #94a3b8;
|
|
font-size: 0.8125rem;
|
|
padding: 0.375rem 0.75rem;
|
|
border-radius: 6px;
|
|
cursor: pointer;
|
|
transition: all 0.2s ease;
|
|
display: inline-flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer-link-btn:hover {
|
|
color: #f1f5f9;
|
|
background: rgba(59, 130, 246, 0.1);
|
|
}
|
|
|
|
.footer-link-btn:focus {
|
|
outline: 2px solid #3b82f6;
|
|
outline-offset: 2px;
|
|
}
|
|
|
|
/* Footer Compact - for Login/Register pages */
|
|
.footer-compact {
|
|
text-align: center;
|
|
padding: 1rem;
|
|
margin-top: 1.5rem;
|
|
}
|
|
|
|
.footer-compact-content {
|
|
color: #94a3b8;
|
|
font-size: 0.8125rem;
|
|
}
|
|
|
|
.footer-links-compact {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
margin-top: 0.25rem;
|
|
}
|
|
|
|
.footer-compact .footer-link-btn {
|
|
padding: 0.25rem 0.5rem;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
.footer-compact .footer-separator {
|
|
color: #475569;
|
|
font-size: 0.75rem;
|
|
}
|
|
|
|
/* Privacy/Terms Modal Content */
|
|
.privacy-content section,
|
|
.terms-content section {
|
|
padding-bottom: 1rem;
|
|
border-bottom: 1px solid #334155;
|
|
}
|
|
|
|
.privacy-content section:last-child,
|
|
.terms-content section:last-child {
|
|
border-bottom: none;
|
|
}
|
|
|
|
.privacy-content h6,
|
|
.terms-content h6 {
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.privacy-content p,
|
|
.terms-content p {
|
|
color: #cbd5e1;
|
|
line-height: 1.6;
|
|
}
|
|
|
|
.privacy-content ul li,
|
|
.terms-content ul li {
|
|
margin-bottom: 0.5rem;
|
|
color: #cbd5e1;
|
|
}
|
|
|
|
/* Responsive Footer */
|
|
@media (max-width: 768px) {
|
|
.app-footer {
|
|
padding: 1rem;
|
|
}
|
|
|
|
.footer-content {
|
|
flex-direction: column;
|
|
text-align: center;
|
|
}
|
|
|
|
.footer-left {
|
|
flex-direction: column;
|
|
gap: 0.25rem;
|
|
}
|
|
|
|
.footer-separator {
|
|
display: none;
|
|
}
|
|
|
|
.footer-right {
|
|
flex-wrap: wrap;
|
|
justify-content: center;
|
|
}
|
|
}
|
|
|
|
/* ==============================================
|
|
🍎 iOS / iPhone Specific Optimizations
|
|
============================================== */
|
|
|
|
/* Cards e containers em telas pequenas */
|
|
@media (max-width: 576px) {
|
|
/* Touch targets mínimos de 44x44px (Apple HIG) - APENAS EM MOBILE */
|
|
.btn,
|
|
.btn-sm,
|
|
.btn-lg,
|
|
button,
|
|
a.btn,
|
|
.form-check-input,
|
|
.form-switch .form-check-input,
|
|
.dropdown-toggle,
|
|
.nav-link,
|
|
.sidebar-link,
|
|
.sidebar-group-toggle {
|
|
min-height: 44px !important;
|
|
min-width: 44px !important;
|
|
touch-action: manipulation; /* Desabilita zoom duplo-toque */
|
|
}
|
|
|
|
.card {
|
|
margin-bottom: 0.75rem !important;
|
|
border-radius: 0.75rem !important;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 0.75rem !important;
|
|
}
|
|
|
|
/* Reduz padding em modais para mais espaço */
|
|
.modal-body {
|
|
padding: 0.75rem !important;
|
|
}
|
|
|
|
.modal-header {
|
|
padding: 0.75rem 1rem !important;
|
|
}
|
|
|
|
.modal-footer {
|
|
padding: 0.75rem 1rem !important;
|
|
}
|
|
|
|
/* Ajusta gráficos para telas pequenas */
|
|
canvas {
|
|
max-height: 250px !important;
|
|
}
|
|
|
|
/* Stat cards mais compactas */
|
|
.stat-card .card-body {
|
|
padding: 0.5rem !important;
|
|
}
|
|
|
|
/* Tabelas mais compactas */
|
|
.table {
|
|
font-size: 0.85rem !important;
|
|
}
|
|
|
|
.table td,
|
|
.table th {
|
|
padding: 0.4rem 0.3rem !important;
|
|
}
|
|
}
|
|
|
|
/* Otimizações para iPhone em modo portrait (<430px) */
|
|
@media (max-width: 430px) {
|
|
/* iPhone 14 Pro Max e menores */
|
|
|
|
/* Ajusta tamanho de fonte para melhor legibilidade */
|
|
body {
|
|
font-size: 10pt !important;
|
|
}
|
|
|
|
h1, .h1 { font-size: 1.4rem !important; }
|
|
h2, .h2 { font-size: 1.25rem !important; }
|
|
h3, .h3 { font-size: 1.15rem !important; }
|
|
h4, .h4 { font-size: 1.05rem !important; }
|
|
h5, .h5 { font-size: 0.95rem !important; }
|
|
h6, .h6 { font-size: 0.9rem !important; }
|
|
|
|
/* Reduz padding global */
|
|
.container,
|
|
.container-fluid {
|
|
padding-left: 0.5rem !important;
|
|
padding-right: 0.5rem !important;
|
|
}
|
|
|
|
/* Otimiza stat cards */
|
|
.stat-card .card-body {
|
|
padding: 0.5rem !important;
|
|
}
|
|
|
|
.stat-card .card-body > div {
|
|
font-size: 0.9rem !important;
|
|
}
|
|
|
|
/* Cards mais compactos */
|
|
.card {
|
|
margin-bottom: 0.5rem !important;
|
|
}
|
|
|
|
.card-body {
|
|
padding: 0.625rem !important;
|
|
}
|
|
|
|
.card-header {
|
|
padding: 0.5rem 0.625rem !important;
|
|
}
|
|
|
|
/* Ajusta inputs e selects */
|
|
.form-control,
|
|
.form-select {
|
|
font-size: 16px !important; /* Previne zoom no iOS */
|
|
padding: 0.5rem 0.625rem !important;
|
|
}
|
|
|
|
.form-label {
|
|
font-size: 0.85rem !important;
|
|
margin-bottom: 0.25rem !important;
|
|
}
|
|
|
|
/* Botões em telas muito pequenas */
|
|
.btn {
|
|
padding: 0.5rem 0.75rem !important;
|
|
font-size: 0.9rem !important;
|
|
}
|
|
|
|
.btn-sm {
|
|
padding: 0.375rem 0.5rem !important;
|
|
font-size: 0.8rem !important;
|
|
}
|
|
|
|
/* Gráficos ainda menores */
|
|
canvas {
|
|
max-height: 220px !important;
|
|
}
|
|
|
|
/* Modais otimizados */
|
|
.modal-dialog {
|
|
margin: 0.5rem !important;
|
|
max-width: calc(100% - 1rem) !important;
|
|
}
|
|
|
|
.modal-content {
|
|
border-radius: 1rem !important;
|
|
}
|
|
|
|
/* Tabelas ultra-compactas */
|
|
.table {
|
|
font-size: 0.8rem !important;
|
|
}
|
|
|
|
.table td,
|
|
.table th {
|
|
padding: 0.3rem 0.2rem !important;
|
|
}
|
|
|
|
/* Dashboard widgets */
|
|
.row {
|
|
margin-left: -0.25rem !important;
|
|
margin-right: -0.25rem !important;
|
|
}
|
|
|
|
.row > * {
|
|
padding-left: 0.25rem !important;
|
|
padding-right: 0.25rem !important;
|
|
}
|
|
}
|
|
|
|
/* iPhone em landscape (horizontal) */
|
|
@media (max-height: 430px) and (orientation: landscape) {
|
|
/* Reduz altura de elementos */
|
|
.card-body {
|
|
padding: 0.5rem !important;
|
|
}
|
|
|
|
.modal-dialog {
|
|
max-height: 90vh !important;
|
|
}
|
|
|
|
.modal-body {
|
|
max-height: 60vh !important;
|
|
overflow-y: auto !important;
|
|
}
|
|
|
|
canvas {
|
|
max-height: 180px !important;
|
|
}
|
|
|
|
/* Header mais compacto */
|
|
.app-header {
|
|
padding: 0.5rem 1rem !important;
|
|
}
|
|
}
|
|
|
|
/* Previne problemas de input no iOS */
|
|
input[type="text"],
|
|
input[type="email"],
|
|
input[type="password"],
|
|
input[type="number"],
|
|
input[type="tel"],
|
|
input[type="date"],
|
|
select,
|
|
textarea {
|
|
-webkit-appearance: none !important;
|
|
-moz-appearance: none !important;
|
|
appearance: none !important;
|
|
border-radius: 0.375rem !important; /* iOS reseta border-radius */
|
|
}
|
|
|
|
/* Fix para dropdowns em iOS */
|
|
.dropdown-menu {
|
|
-webkit-overflow-scrolling: touch !important;
|
|
max-height: calc(100vh - 100px) !important;
|
|
overflow-y: auto !important;
|
|
}
|
|
|
|
/* Melhora scroll em listas/tabelas */
|
|
.table-responsive,
|
|
.overflow-auto {
|
|
-webkit-overflow-scrolling: touch !important;
|
|
}
|
|
|
|
/* Previne seleção acidental de texto ao tocar */
|
|
.btn,
|
|
.card-header,
|
|
.modal-header,
|
|
.alert,
|
|
.sidebar-link,
|
|
.sidebar-group-toggle {
|
|
-webkit-user-select: none !important;
|
|
-moz-user-select: none !important;
|
|
user-select: none !important;
|
|
}
|
|
|
|
/* Melhora tap highlight no iOS */
|
|
button,
|
|
a,
|
|
.btn,
|
|
.clickable,
|
|
.sidebar-link,
|
|
.sidebar-group-toggle {
|
|
-webkit-tap-highlight-color: rgba(59, 130, 246, 0.2) !important;
|
|
}
|
|
|
|
/* Safe area para notch/Dynamic Island */
|
|
@supports (padding: max(0px)) {
|
|
body {
|
|
padding-top: max(env(safe-area-inset-top), 0px) !important;
|
|
padding-bottom: max(env(safe-area-inset-bottom), 0px) !important;
|
|
padding-left: 0 !important; /* Remove lateral para permitir sidebar overlay */
|
|
padding-right: 0 !important;
|
|
}
|
|
|
|
/* Ajusta sidebar com safe area */
|
|
.app-sidebar {
|
|
padding-top: env(safe-area-inset-top) !important;
|
|
padding-bottom: env(safe-area-inset-bottom) !important;
|
|
}
|
|
|
|
/* Ajusta content com safe area */
|
|
.app-content {
|
|
padding-left: max(env(safe-area-inset-left), 0.75rem) !important;
|
|
padding-right: max(env(safe-area-inset-right), 0.75rem) !important;
|
|
}
|
|
|
|
/* Ajusta modais com safe area */
|
|
.modal-dialog {
|
|
margin-top: calc(1rem + env(safe-area-inset-top)) !important;
|
|
margin-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
|
|
}
|
|
}
|
|
|
|
/* PWA: Remove bounce scroll quando instalado */
|
|
@media (display-mode: standalone) {
|
|
html,
|
|
body {
|
|
overscroll-behavior: none !important;
|
|
-webkit-overflow-scrolling: touch !important;
|
|
}
|
|
|
|
/* Garante que sidebar funcione no PWA */
|
|
.app-sidebar {
|
|
position: fixed !important;
|
|
top: 0 !important;
|
|
height: 100vh !important;
|
|
overflow-y: auto !important;
|
|
-webkit-overflow-scrolling: touch !important;
|
|
}
|
|
}
|
|
|
|
/* Calendário Grid */
|
|
.calendar-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 4px;
|
|
}
|
|
|
|
.calendar-grid-week {
|
|
display: grid;
|
|
grid-template-columns: repeat(7, 1fr);
|
|
gap: 4px;
|
|
}
|
|
|
|
.calendar-day {
|
|
min-height: 32px;
|
|
}
|
|
|
|
@media (max-width: 768px) {
|
|
.calendar-day {
|
|
min-height: 50px;
|
|
}
|
|
}
|
|
|
|
/* Category Selector - garantir que funcione em modais */
|
|
.category-selector {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
.modal-body .category-selector {
|
|
overflow: visible;
|
|
}
|
|
|
|
.category-selector .dropdown-menu {
|
|
max-width: 100%;
|
|
}
|
|
|
|
/* Scroll customizado para dropdown de categoria */
|
|
.category-dropdown-scroll {
|
|
scrollbar-width: thin;
|
|
scrollbar-color: rgba(100, 116, 139, 0.5) rgba(30, 41, 59, 0.3);
|
|
}
|
|
|
|
.category-dropdown-scroll::-webkit-scrollbar {
|
|
width: 8px;
|
|
}
|
|
|
|
.category-dropdown-scroll::-webkit-scrollbar-track {
|
|
background: rgba(30, 41, 59, 0.3);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.category-dropdown-scroll::-webkit-scrollbar-thumb {
|
|
background: rgba(100, 116, 139, 0.5);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.category-dropdown-scroll::-webkit-scrollbar-thumb:hover {
|
|
background: rgba(100, 116, 139, 0.7);
|
|
}
|
|
|
|
/* Badges padronizados - estilo outline */
|
|
.badge.bg-primary { background-color: rgba(59, 130, 246, 0.25) !important; color: #3b82f6 !important; }
|
|
.badge.bg-success { background-color: rgba(34, 197, 94, 0.25) !important; color: #22c55e !important; }
|
|
.badge.bg-danger { background-color: rgba(239, 68, 68, 0.25) !important; color: #ef4444 !important; }
|
|
.badge.bg-warning { background-color: rgba(234, 179, 8, 0.25) !important; color: #eab308 !important; }
|
|
.badge.bg-info { background-color: rgba(14, 165, 233, 0.25) !important; color: #0ea5e9 !important; }
|
|
.badge.bg-secondary { background-color: rgba(148, 163, 184, 0.25) !important; color: #94a3b8 !important; }
|