Initial commit: ROA2WEB - FastAPI + Vue.js + Telegram Bot

Modern ERP Reports Application with microservices architecture

Tech Stack:
- Backend: FastAPI + python-oracledb (Oracle DB integration)
- Frontend: Vue.js 3 + PrimeVue + Vite
- Telegram Bot: python-telegram-bot + SQLite
- Infrastructure: Shared database pool, JWT authentication, SSH tunnel

Features:
- FastAPI backend with async Oracle connection pool
- Vue.js 3 responsive frontend with PrimeVue components
- Telegram bot alternative interface
- Microservices architecture with shared components
- Complete deployment support (Linux Docker + Windows IIS)
- Comprehensive testing (Playwright E2E + pytest)

Repository Structure:
- reports-app/ - Main application (backend, frontend, telegram-bot)
- shared/ - Shared components (database pool, auth, utils)
- deployment/ - Deployment scripts (Linux & Windows)
- docs/ - Project documentation
- security/ - Security scanning and git hooks
This commit is contained in:
2025-10-25 14:55:08 +03:00
commit 6b13ffa183
237 changed files with 70035 additions and 0 deletions

View File

@@ -0,0 +1,430 @@
/* Button Components - ROA2WEB */
/* Base Button Styles */
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
font-size: var(--text-sm);
font-weight: var(--font-medium);
line-height: var(--leading-normal);
border: 1px solid transparent;
border-radius: var(--radius-md);
cursor: pointer;
text-decoration: none;
transition: all var(--transition-fast);
user-select: none;
white-space: nowrap;
}
.btn:disabled {
opacity: 0.6;
cursor: not-allowed;
transform: none !important;
}
/* Button Sizes */
.btn-xs {
padding: var(--space-xs) var(--space-sm);
font-size: var(--text-xs);
gap: 2px;
}
.btn-sm {
padding: var(--space-xs) var(--space-sm);
font-size: var(--text-sm);
}
.btn-md {
padding: var(--space-sm) var(--space-md);
font-size: var(--text-sm);
}
.btn-lg {
padding: var(--space-md) var(--space-lg);
font-size: var(--text-base);
}
.btn-xl {
padding: var(--space-lg) var(--space-xl);
font-size: var(--text-lg);
}
/* Button Variants */
.btn-primary {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
}
.btn-primary:hover {
background: var(--color-primary-dark);
border-color: var(--color-primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.btn-secondary {
background: var(--color-bg);
color: var(--color-text);
border-color: var(--color-border);
}
.btn-secondary:hover {
background: var(--color-bg-secondary);
border-color: var(--color-border-dark);
}
.btn-outline {
background: transparent;
color: var(--color-primary);
border-color: var(--color-primary);
}
.btn-outline:hover {
background: var(--color-primary);
color: var(--color-text-inverse);
}
.btn-ghost {
background: transparent;
color: var(--color-text);
border-color: transparent;
}
.btn-ghost:hover {
background: var(--color-bg-secondary);
border-color: var(--color-border);
}
/* Status Button Variants */
.btn-success {
background: var(--color-success);
color: var(--color-text-inverse);
border-color: var(--color-success);
}
.btn-success:hover {
background: #047857;
border-color: #047857;
}
.btn-warning {
background: var(--color-warning);
color: var(--color-text-inverse);
border-color: var(--color-warning);
}
.btn-warning:hover {
background: #b45309;
border-color: #b45309;
}
.btn-error {
background: var(--color-error);
color: var(--color-text-inverse);
border-color: var(--color-error);
}
.btn-error:hover {
background: #b91c1c;
border-color: #b91c1c;
}
/* Button Shapes */
.btn-rounded {
border-radius: var(--radius-full);
}
.btn-square {
border-radius: 0;
}
.btn-circle {
border-radius: var(--radius-full);
width: 40px;
height: 40px;
padding: 0;
}
.btn-circle.btn-sm {
width: 32px;
height: 32px;
}
.btn-circle.btn-lg {
width: 48px;
height: 48px;
}
/* Icon Buttons */
.btn-icon {
display: inline-flex;
align-items: center;
justify-content: center;
width: 40px;
height: 40px;
padding: 0;
border-radius: var(--radius-md);
}
.btn-icon-sm {
width: 32px;
height: 32px;
}
.btn-icon-lg {
width: 48px;
height: 48px;
}
/* Button Groups */
.btn-group {
display: inline-flex;
align-items: center;
}
.btn-group .btn {
border-radius: 0;
border-right-width: 0;
}
.btn-group .btn:first-child {
border-top-left-radius: var(--radius-md);
border-bottom-left-radius: var(--radius-md);
}
.btn-group .btn:last-child {
border-top-right-radius: var(--radius-md);
border-bottom-right-radius: var(--radius-md);
border-right-width: 1px;
}
.btn-group .btn:hover {
z-index: 1;
border-right-width: 1px;
}
/* Action Buttons for Dashboard V4 */
.action-btn {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: var(--space-md);
padding: var(--space-xl);
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
cursor: pointer;
transition: all var(--transition-fast);
text-decoration: none;
color: var(--color-text);
min-height: 120px;
}
.action-btn:hover {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.action-btn-icon {
width: 32px;
height: 32px;
opacity: 0.8;
}
.action-btn:hover .action-btn-icon {
opacity: 1;
}
.action-btn-label {
font-size: var(--text-sm);
font-weight: var(--font-semibold);
text-align: center;
}
/* Toggle Buttons */
.btn-toggle {
background: var(--color-bg-secondary);
color: var(--color-text-secondary);
border-color: var(--color-border);
}
.btn-toggle.active,
.btn-toggle:hover {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
}
/* Pill Buttons */
.btn-pill {
border-radius: var(--radius-full);
padding: var(--space-xs) var(--space-md);
font-size: var(--text-xs);
font-weight: var(--font-medium);
}
/* Loading State */
.btn-loading {
opacity: 0.7;
cursor: not-allowed;
}
.btn-loading::before {
content: '';
display: inline-block;
width: 16px;
height: 16px;
margin-right: var(--space-xs);
border: 2px solid currentColor;
border-right-color: transparent;
border-radius: var(--radius-full);
animation: btn-spin 0.8s linear infinite;
}
@keyframes btn-spin {
to {
transform: rotate(360deg);
}
}
/* Mobile Button Adjustments */
@media (max-width: 768px) {
.btn {
padding: var(--space-md) var(--space-lg);
font-size: var(--text-base);
min-height: 44px;
}
.btn-sm {
padding: var(--space-sm) var(--space-md);
font-size: var(--text-sm);
min-height: 36px;
}
.btn-group {
flex-direction: column;
width: 100%;
}
.btn-group .btn {
border-radius: 0;
border-right-width: 1px;
border-bottom-width: 0;
width: 100%;
}
.btn-group .btn:first-child {
border-radius: var(--radius-md) var(--radius-md) 0 0;
}
.btn-group .btn:last-child {
border-radius: 0 0 var(--radius-md) var(--radius-md);
border-bottom-width: 1px;
}
.action-btn {
padding: var(--space-lg);
min-height: 100px;
}
}
@media (max-width: 480px) {
.action-btn {
min-height: 80px;
padding: var(--space-md);
}
.action-btn-icon {
width: 24px;
height: 24px;
}
.action-btn-label {
font-size: var(--text-xs);
}
}
/* Focus States for Accessibility */
.btn:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
/* Button Groups for Dashboard */
.button-group {
display: inline-flex;
align-items: center;
gap: 0.25rem;
}
.button-group .btn {
border-radius: var(--radius-md);
}
/* Hide button text on small screens */
@media (max-width: 640px) {
.btn-text {
display: none;
}
.button-group {
width: 100%;
}
.button-group .btn {
flex: 1;
justify-content: center;
}
}
/* Stack buttons vertically on very small screens */
@media (max-width: 480px) {
.button-group {
flex-direction: column;
width: 100%;
}
.button-group .btn {
width: 100%;
}
.btn-text {
display: inline; /* Show text again when stacked */
}
}
/* Primary button style for exports */
.btn-primary {
background: var(--color-primary);
color: white;
border-color: var(--color-primary);
}
.btn-primary:hover {
background: var(--color-primary-dark);
border-color: var(--color-primary-dark);
transform: translateY(-1px);
box-shadow: var(--shadow-md);
}
.btn-primary:active {
transform: translateY(0);
}
/* Utility Classes */
.btn-full-width {
width: 100%;
justify-content: center;
}
.btn-auto-width {
width: auto;
}

View File

@@ -0,0 +1,360 @@
/* Card Components - ROA2WEB */
/* Base Card Styles */
.card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
box-shadow: var(--shadow-sm);
transition: all var(--transition-fast);
overflow: hidden;
}
.card:hover {
box-shadow: var(--shadow-md);
border-color: var(--color-border-dark);
}
.card-header {
padding: var(--space-lg);
border-bottom: 1px solid var(--color-border);
background: var(--color-bg-secondary);
}
.card-body {
padding: var(--space-lg);
}
.card-footer {
padding: var(--space-lg);
border-top: 1px solid var(--color-border);
background: var(--color-bg-secondary);
}
/* Card Variants */
.card-compact {
padding: var(--space-md);
}
.card-compact .card-header,
.card-compact .card-body,
.card-compact .card-footer {
padding: var(--space-md);
}
.card-minimal {
border: none;
box-shadow: none;
background: transparent;
}
.card-elevated {
box-shadow: var(--shadow-lg);
}
.card-elevated:hover {
box-shadow: var(--shadow-xl);
transform: translateY(-2px);
}
/* Stats Cards */
.stats-card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-lg);
text-align: center;
transition: all var(--transition-fast);
}
.stats-card:hover {
border-color: var(--color-primary);
box-shadow: var(--shadow-md);
}
.stats-card-mini {
padding: var(--space-md);
text-align: left;
}
.stats-card-large {
padding: var(--space-xl);
}
/* Stats Card Content */
.stats-value {
display: block;
font-size: var(--text-2xl);
font-weight: var(--font-bold);
color: var(--color-text);
line-height: var(--leading-tight);
margin-bottom: var(--space-xs);
}
.stats-value-large {
font-size: var(--text-4xl);
margin-bottom: var(--space-sm);
}
.stats-label {
display: block;
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.stats-change {
display: inline-flex;
align-items: center;
gap: var(--space-xs);
font-size: var(--text-sm);
font-weight: var(--font-medium);
margin-top: var(--space-xs);
}
.stats-change.positive {
color: var(--color-success);
}
.stats-change.negative {
color: var(--color-error);
}
/* KPI Cards */
.kpi-card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-lg);
display: flex;
align-items: center;
gap: var(--space-md);
transition: all var(--transition-fast);
}
.kpi-card:hover {
box-shadow: var(--shadow-md);
border-color: var(--color-primary);
}
.kpi-icon {
width: 48px;
height: 48px;
border-radius: var(--radius-lg);
display: flex;
align-items: center;
justify-content: center;
background: var(--color-primary);
color: var(--color-text-inverse);
flex-shrink: 0;
}
.kpi-content {
flex: 1;
min-width: 0;
}
.kpi-value {
font-size: var(--text-xl);
font-weight: var(--font-bold);
color: var(--color-text);
line-height: var(--leading-tight);
}
.kpi-label {
font-size: var(--text-sm);
color: var(--color-text-secondary);
font-weight: var(--font-medium);
margin-top: var(--space-xs);
}
/* Action Cards */
.action-card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-lg);
cursor: pointer;
transition: all var(--transition-fast);
text-align: center;
}
.action-card:hover {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
transform: translateY(-2px);
box-shadow: var(--shadow-lg);
}
.action-icon {
width: 32px;
height: 32px;
margin: 0 auto var(--space-md);
opacity: 0.8;
}
.action-title {
font-size: var(--text-lg);
font-weight: var(--font-semibold);
margin-bottom: var(--space-sm);
}
.action-description {
font-size: var(--text-sm);
opacity: 0.8;
}
/* Status Cards */
.status-card {
background: var(--color-bg);
border-left: 4px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-md);
box-shadow: var(--shadow-sm);
}
.status-card.success {
border-left-color: var(--color-success);
background: #f0fdf4;
}
.status-card.warning {
border-left-color: var(--color-warning);
background: #fffbeb;
}
.status-card.error {
border-left-color: var(--color-error);
background: #fef2f2;
}
.status-card.info {
border-left-color: var(--color-info);
background: #f0f9ff;
}
/* Company Banner Card */
.company-banner {
background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
color: var(--color-text-inverse);
border: none;
padding: var(--space-md);
margin-bottom: var(--space-lg);
}
.company-name {
font-size: var(--text-lg);
font-weight: var(--font-semibold);
margin-bottom: var(--space-xs);
}
.company-info {
font-size: var(--text-sm);
opacity: 0.9;
}
/* Dashboard V2 Mini Cards */
.mini-card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
padding: var(--space-sm);
text-align: center;
transition: all var(--transition-fast);
position: relative;
overflow: hidden;
}
.mini-card:hover {
box-shadow: var(--shadow-md);
border-color: var(--color-primary);
}
.mini-card-icon {
width: 16px;
height: 16px;
margin-bottom: var(--space-xs);
opacity: 0.7;
}
.mini-card-value {
font-size: var(--text-lg);
font-weight: var(--font-bold);
line-height: var(--leading-tight);
}
.mini-card-label {
font-size: var(--text-xs);
color: var(--color-text-secondary);
margin-top: var(--space-xs);
}
/* Heatmap Colors for Mini Cards */
.mini-card.heat-low {
background: #f0fdf4;
border-color: var(--color-success);
}
.mini-card.heat-medium {
background: #fffbeb;
border-color: var(--color-warning);
}
.mini-card.heat-high {
background: #fef2f2;
border-color: var(--color-error);
}
/* Mobile Card Adjustments */
@media (max-width: 768px) {
.card-header,
.card-body,
.card-footer {
padding: var(--space-md);
}
.stats-card,
.kpi-card,
.action-card {
padding: var(--space-md);
}
.kpi-card {
flex-direction: column;
text-align: center;
}
.stats-value {
font-size: var(--text-xl);
}
.stats-value-large {
font-size: var(--text-3xl);
}
.company-banner {
padding: var(--space-sm);
}
}
@media (max-width: 480px) {
.card-header,
.card-body,
.card-footer,
.stats-card,
.kpi-card,
.action-card {
padding: var(--space-sm);
}
.mini-card {
padding: var(--space-xs);
}
.mini-card-value {
font-size: var(--text-base);
}
}

View File

@@ -0,0 +1,460 @@
/* Form Components - ROA2WEB */
/* Base Form Styles */
.form {
display: flex;
flex-direction: column;
gap: var(--space-lg);
}
.form-group {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.form-row {
display: flex;
gap: var(--space-md);
align-items: end;
}
.form-col {
flex: 1;
}
/* Labels */
.form-label {
display: block;
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--color-text);
margin-bottom: var(--space-xs);
}
.form-label.required::after {
content: ' *';
color: var(--color-error);
}
/* Input Base Styles */
.form-input,
.form-select,
.form-textarea {
width: 100%;
padding: var(--space-sm) var(--space-md);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
font-size: var(--text-base);
font-family: inherit;
color: var(--color-text);
background: var(--color-bg);
transition: all var(--transition-fast);
min-height: 44px;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
background: var(--color-bg-muted);
color: var(--color-text-muted);
cursor: not-allowed;
opacity: 0.6;
}
/* Input Variants */
.form-input-sm {
padding: var(--space-xs) var(--space-sm);
font-size: var(--text-sm);
min-height: 36px;
}
.form-input-lg {
padding: var(--space-md) var(--space-lg);
font-size: var(--text-lg);
min-height: 52px;
}
/* Textarea */
.form-textarea {
resize: vertical;
min-height: 100px;
line-height: var(--leading-normal);
}
.form-textarea-sm {
min-height: 80px;
}
.form-textarea-lg {
min-height: 120px;
}
/* Select */
.form-select {
cursor: pointer;
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
background-position: right var(--space-sm) center;
background-repeat: no-repeat;
background-size: 16px 16px;
padding-right: var(--space-xl);
appearance: none;
}
/* Input Groups */
.input-group {
display: flex;
align-items: stretch;
width: 100%;
}
.input-group .form-input {
border-radius: 0;
border-right: none;
}
.input-group .form-input:first-child {
border-top-left-radius: var(--radius-md);
border-bottom-left-radius: var(--radius-md);
}
.input-group .form-input:last-child {
border-top-right-radius: var(--radius-md);
border-bottom-right-radius: var(--radius-md);
border-right: 1px solid var(--color-border);
}
.input-group-addon {
display: flex;
align-items: center;
padding: var(--space-sm) var(--space-md);
background: var(--color-bg-secondary);
border: 1px solid var(--color-border);
color: var(--color-text-secondary);
font-size: var(--text-sm);
white-space: nowrap;
}
.input-group-addon:first-child {
border-top-left-radius: var(--radius-md);
border-bottom-left-radius: var(--radius-md);
border-right: none;
}
.input-group-addon:last-child {
border-top-right-radius: var(--radius-md);
border-bottom-right-radius: var(--radius-md);
border-left: none;
}
/* Floating Labels */
.form-floating {
position: relative;
}
.form-floating .form-input,
.form-floating .form-textarea {
padding-top: var(--space-lg);
padding-bottom: var(--space-xs);
}
.form-floating .form-label {
position: absolute;
top: 0;
left: var(--space-md);
padding: var(--space-sm) var(--space-xs);
background: var(--color-bg);
color: var(--color-text-muted);
font-size: var(--text-sm);
transition: all var(--transition-fast);
pointer-events: none;
transform-origin: left center;
z-index: 1;
}
.form-floating .form-input:focus + .form-label,
.form-floating .form-input:not(:placeholder-shown) + .form-label,
.form-floating .form-textarea:focus + .form-label,
.form-floating .form-textarea:not(:placeholder-shown) + .form-label {
transform: translateY(-50%) scale(0.85);
color: var(--color-primary);
}
/* Validation States */
.form-input.valid,
.form-select.valid,
.form-textarea.valid {
border-color: var(--color-success);
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%2316a34a' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z'/%3E%3C/svg%3E");
background-position: right var(--space-sm) center;
background-repeat: no-repeat;
background-size: 16px 16px;
}
.form-input.invalid,
.form-select.invalid,
.form-textarea.invalid {
border-color: var(--color-error);
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23dc2626' viewBox='0 0 16 16'%3E%3Cpath d='M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
background-position: right var(--space-sm) center;
background-repeat: no-repeat;
background-size: 16px 16px;
}
/* Select with validation needs different padding */
.form-select.valid,
.form-select.invalid {
padding-right: calc(var(--space-xl) + var(--space-lg));
}
/* Help Text */
.form-help {
font-size: var(--text-sm);
color: var(--color-text-secondary);
margin-top: var(--space-xs);
}
.form-error {
font-size: var(--text-sm);
color: var(--color-error);
margin-top: var(--space-xs);
display: flex;
align-items: center;
gap: var(--space-xs);
}
.form-success {
font-size: var(--text-sm);
color: var(--color-success);
margin-top: var(--space-xs);
display: flex;
align-items: center;
gap: var(--space-xs);
}
/* Checkboxes and Radios */
.form-check {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-bottom: var(--space-sm);
}
.form-check-input {
width: 18px;
height: 18px;
border: 1px solid var(--color-border);
background: var(--color-bg);
cursor: pointer;
transition: all var(--transition-fast);
}
.form-check-input[type="checkbox"] {
border-radius: var(--radius-sm);
}
.form-check-input[type="radio"] {
border-radius: 50%;
}
.form-check-input:checked {
background: var(--color-primary);
border-color: var(--color-primary);
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Cpath d='M12.736 3.97a.733.733 0 0 1 1.047 0c.286.289.29.756.01 1.05L7.88 12.01a.733.733 0 0 1-1.065.02L3.217 8.384a.757.757 0 0 1 0-1.06.733.733 0 0 1 1.047 0l3.052 3.093 5.4-6.425a.247.247 0 0 1 .02-.022Z'/%3E%3C/svg%3E");
background-position: center;
background-repeat: no-repeat;
background-size: 12px 12px;
}
.form-check-input[type="radio"]:checked {
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23ffffff' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='4'/%3E%3C/svg%3E");
background-size: 8px 8px;
}
.form-check-input:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.form-check-label {
font-size: var(--text-sm);
color: var(--color-text);
cursor: pointer;
user-select: none;
}
/* Form Actions */
.form-actions {
display: flex;
gap: var(--space-md);
justify-content: flex-end;
margin-top: var(--space-xl);
padding-top: var(--space-lg);
border-top: 1px solid var(--color-border);
}
.form-actions-center {
justify-content: center;
}
.form-actions-start {
justify-content: flex-start;
}
.form-actions-between {
justify-content: space-between;
}
/* Search Form */
.search-form {
display: flex;
gap: var(--space-sm);
align-items: end;
margin-bottom: var(--space-lg);
}
.search-input {
position: relative;
flex: 1;
}
.search-input .form-input {
padding-right: var(--space-3xl);
}
.search-icon {
position: absolute;
right: var(--space-md);
top: 50%;
transform: translateY(-50%);
color: var(--color-text-muted);
font-size: var(--text-lg);
pointer-events: none;
}
/* Inline Forms */
.form-inline {
display: flex;
gap: var(--space-md);
align-items: end;
flex-wrap: wrap;
}
.form-inline .form-group {
flex: 1;
min-width: 150px;
}
/* File Upload */
.file-upload {
position: relative;
display: inline-block;
cursor: pointer;
width: 100%;
}
.file-upload-input {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0;
cursor: pointer;
}
.file-upload-label {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-sm);
padding: var(--space-lg);
border: 2px dashed var(--color-border);
border-radius: var(--radius-md);
background: var(--color-bg-secondary);
color: var(--color-text-secondary);
cursor: pointer;
transition: all var(--transition-fast);
min-height: 120px;
text-align: center;
}
.file-upload:hover .file-upload-label,
.file-upload-label.drag-over {
border-color: var(--color-primary);
background: rgba(37, 99, 235, 0.05);
color: var(--color-primary);
}
/* Mobile Form Styles */
@media (max-width: 768px) {
.form-row {
flex-direction: column;
gap: var(--space-md);
}
.form-inline {
flex-direction: column;
align-items: stretch;
}
.form-inline .form-group {
min-width: auto;
}
.form-actions {
flex-direction: column;
}
.form-actions-between {
justify-content: center;
flex-direction: column-reverse;
}
.search-form {
flex-direction: column;
}
/* Ensure mobile-friendly touch targets */
.form-input,
.form-select,
.form-textarea {
min-height: 44px;
font-size: 16px; /* Prevents zoom on iOS */
}
.form-check-input {
width: 20px;
height: 20px;
min-height: 20px;
}
}
/* Print Styles */
@media print {
.form-actions {
display: none;
}
.form-input,
.form-select,
.form-textarea {
border: none;
border-bottom: 1px solid #000;
border-radius: 0;
background: transparent;
padding: var(--space-xs) 0;
}
.form-label {
font-weight: bold;
}
}

View File

@@ -0,0 +1,448 @@
/* Stats Components - ROA2WEB Dashboard */
/* Stats Grid Layout */
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-lg);
margin-bottom: var(--space-xl);
}
/* Stats Cards */
.stats-card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-lg);
box-shadow: var(--shadow-sm);
transition: all var(--transition-fast);
position: relative;
overflow: hidden;
}
.stats-card:hover {
box-shadow: var(--shadow-md);
border-color: var(--color-border-dark);
transform: translateY(-2px);
}
/* Stats Card Header */
.stats-card-header {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-bottom: var(--space-md);
padding-bottom: var(--space-sm);
border-bottom: 1px solid var(--color-border-light);
}
.stats-card-header i {
font-size: var(--text-xl);
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
border-radius: var(--radius-md);
background: var(--color-bg-secondary);
}
.stats-card-header h3 {
font-size: var(--text-lg);
font-weight: var(--font-semibold);
color: var(--color-text);
margin: 0;
}
/* Stats Details */
.stats-details {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.stat-row {
display: flex;
justify-content: space-between;
align-items: center;
font-size: var(--text-sm);
padding: var(--space-xs) 0;
min-height: 24px;
}
.stat-row span:first-child {
color: var(--color-text-secondary);
font-weight: var(--font-medium);
}
.stat-row span:last-child {
color: var(--color-text);
font-weight: var(--font-medium);
text-align: right;
}
.stat-highlight {
background: var(--color-bg-secondary);
padding: var(--space-sm);
border-radius: var(--radius-sm);
font-weight: var(--font-semibold);
margin: var(--space-sm) 0;
border-left: 3px solid var(--color-primary);
}
.stat-warning {
color: var(--color-error);
font-weight: var(--font-semibold);
}
.stat-warning span:first-child {
color: var(--color-error);
}
.stat-success {
color: var(--color-success);
font-weight: var(--font-semibold);
}
.stat-success span:first-child {
color: var(--color-success);
}
/* Treasury Specific Styling */
.treasury-content {
display: flex;
flex-direction: column;
gap: var(--space-md);
}
.treasury-section {
display: flex;
flex-direction: column;
gap: var(--space-xs);
}
.treasury-section-title {
font-size: var(--text-sm);
font-weight: var(--font-semibold);
color: var(--color-text);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: var(--space-xs);
padding-bottom: var(--space-xs);
border-bottom: 1px solid var(--color-border);
}
.account-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: var(--text-xs);
padding: var(--space-xs) 0;
}
.account-name {
color: var(--color-text-secondary);
font-weight: var(--font-medium);
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.account-balance {
color: var(--color-text);
font-weight: var(--font-semibold);
flex-shrink: 0;
margin-left: var(--space-sm);
}
.treasury-totals {
margin-top: var(--space-sm);
padding-top: var(--space-sm);
border-top: 1px solid var(--color-border);
background: var(--color-bg-muted);
margin-left: calc(-1 * var(--space-lg));
margin-right: calc(-1 * var(--space-lg));
margin-bottom: calc(-1 * var(--space-lg));
padding-left: var(--space-lg);
padding-right: var(--space-lg);
padding-bottom: var(--space-lg);
}
.total-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: var(--text-sm);
padding: var(--space-xs) 0;
color: var(--color-text);
font-weight: var(--font-semibold);
}
/* KPI Large Display */
.kpi-large-card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-xl);
text-align: center;
box-shadow: var(--shadow-sm);
transition: all var(--transition-fast);
}
.kpi-large-card:hover {
box-shadow: var(--shadow-lg);
transform: translateY(-4px);
}
.kpi-large-value {
font-size: var(--text-4xl);
font-weight: var(--font-bold);
color: var(--color-text);
line-height: var(--leading-tight);
margin-bottom: var(--space-sm);
}
.kpi-large-label {
font-size: var(--text-base);
font-weight: var(--font-medium);
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
.kpi-large-change {
display: flex;
align-items: center;
justify-content: center;
gap: var(--space-xs);
font-size: var(--text-sm);
font-weight: var(--font-medium);
margin-top: var(--space-md);
}
.kpi-large-change.positive {
color: var(--color-success);
}
.kpi-large-change.negative {
color: var(--color-error);
}
/* Mini Stats for V2 Dashboard */
.mini-stats-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: var(--space-md);
}
.mini-stat-card {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
padding: var(--space-sm);
text-align: center;
transition: all var(--transition-fast);
position: relative;
overflow: hidden;
}
.mini-stat-card:hover {
box-shadow: var(--shadow-md);
border-color: var(--color-primary);
transform: scale(1.02);
}
.mini-stat-icon {
width: 16px;
height: 16px;
margin-bottom: var(--space-xs);
opacity: 0.7;
}
.mini-stat-value {
font-size: var(--text-base);
font-weight: var(--font-bold);
line-height: var(--leading-tight);
color: var(--color-text);
margin-bottom: var(--space-xs);
}
.mini-stat-label {
font-size: var(--text-xs);
color: var(--color-text-secondary);
line-height: var(--leading-tight);
}
/* Heat Map Colors for Mini Cards */
.mini-stat-card.heat-low {
background: #f0fdf4;
border-color: var(--color-success);
}
.mini-stat-card.heat-low .mini-stat-value {
color: var(--color-success);
}
.mini-stat-card.heat-medium {
background: #fffbeb;
border-color: var(--color-warning);
}
.mini-stat-card.heat-medium .mini-stat-value {
color: var(--color-warning);
}
.mini-stat-card.heat-high {
background: #fef2f2;
border-color: var(--color-error);
}
.mini-stat-card.heat-high .mini-stat-value {
color: var(--color-error);
}
/* Quick Actions Grid */
.quick-actions-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: var(--space-md);
}
/* Loading Spinner for Stats */
.stats-loading {
display: flex;
align-items: center;
justify-content: center;
padding: var(--space-xl);
color: var(--color-text-secondary);
}
.stats-loading-spinner {
width: 24px;
height: 24px;
border: 2px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: var(--space-sm);
}
/* Stats Card Variants */
.stats-card.clients {
border-left-color: #3b82f6;
}
.stats-card.clients .stats-card-header i {
color: #3b82f6;
background: #eff6ff;
}
.stats-card.suppliers {
border-left-color: #f59e0b;
}
.stats-card.suppliers .stats-card-header i {
color: #f59e0b;
background: #fffbeb;
}
.stats-card.treasury {
border-left-color: #10b981;
}
.stats-card.treasury .stats-card-header i {
color: #10b981;
background: #ecfdf5;
}
/* Responsive Adjustments */
@media (max-width: 1024px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.mini-stats-grid {
grid-template-columns: repeat(3, 1fr);
}
}
@media (max-width: 768px) {
.stats-grid {
grid-template-columns: 1fr;
gap: var(--space-md);
}
.stats-card {
padding: var(--space-md);
}
.treasury-totals {
margin-left: calc(-1 * var(--space-md));
margin-right: calc(-1 * var(--space-md));
margin-bottom: calc(-1 * var(--space-md));
padding-left: var(--space-md);
padding-right: var(--space-md);
padding-bottom: var(--space-md);
}
.mini-stats-grid {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(6, 1fr);
}
.kpi-large-value {
font-size: var(--text-3xl);
}
.quick-actions-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.mini-stats-grid {
grid-template-columns: 1fr;
grid-template-rows: repeat(12, auto);
}
.mini-stat-card {
padding: var(--space-xs);
}
.mini-stat-value {
font-size: var(--text-sm);
}
.stats-card-header {
flex-direction: column;
text-align: center;
gap: var(--space-xs);
}
.stat-row {
flex-direction: column;
align-items: flex-start;
gap: var(--space-xs);
}
.stat-row span:last-child {
text-align: left;
}
}
/* Print Styles */
@media print {
.stats-card {
break-inside: avoid;
box-shadow: none;
border: 1px solid #ccc;
}
.stats-grid {
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
}

View File

@@ -0,0 +1,876 @@
/* Table Components - ROA2WEB */
/* Base Table Styles */
.table {
width: 100%;
border-collapse: collapse;
font-size: var(--text-sm);
color: var(--color-text);
background: var(--color-bg);
border-radius: var(--card-radius);
overflow: hidden;
box-shadow: var(--shadow-sm);
}
.table th {
background: var(--color-bg-muted);
padding: var(--space-sm) var(--space-md);
text-align: left;
border-bottom: 2px solid var(--color-border);
font-weight: var(--font-semibold);
color: var(--color-text);
font-size: var(--text-sm);
position: sticky;
top: 0;
z-index: 1;
}
.table td {
padding: var(--space-sm) var(--space-md);
border-bottom: 1px solid var(--color-border-light);
vertical-align: middle;
}
.table tbody tr:hover {
background: var(--color-bg-secondary);
}
.table tbody tr:last-child td {
border-bottom: none;
}
/* Table Variants */
.table-striped tbody tr:nth-child(even) {
background: var(--color-bg-secondary);
}
.table-striped tbody tr:nth-child(even):hover {
background: var(--color-bg-muted);
}
.table-bordered {
border: 1px solid var(--color-border);
}
.table-bordered th,
.table-bordered td {
border: 1px solid var(--color-border);
}
.table-borderless th,
.table-borderless td {
border: none;
}
.table-sm th,
.table-sm td {
padding: var(--space-xs) var(--space-sm);
}
.table-lg th,
.table-lg td {
padding: var(--space-md) var(--space-lg);
}
/* Responsive Table */
.table-responsive {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
.table-responsive .table {
min-width: 600px;
}
/* Sortable Headers */
.table th.sortable {
cursor: pointer;
user-select: none;
position: relative;
padding-right: var(--space-xl);
}
.table th.sortable:hover {
background: var(--color-border);
}
.table th.sortable::after {
content: '↕';
position: absolute;
right: var(--space-sm);
top: 50%;
transform: translateY(-50%);
opacity: 0.5;
font-size: var(--text-xs);
}
.table th.sortable.sorted-asc::after {
content: '↑';
opacity: 1;
color: var(--color-primary);
}
.table th.sortable.sorted-desc::after {
content: '↓';
opacity: 1;
color: var(--color-primary);
}
/* Table Status Colors */
.table .cell-success,
.table .text-success {
color: var(--color-success);
font-weight: var(--font-medium);
}
.table .cell-warning,
.table .text-warning {
color: var(--color-warning);
font-weight: var(--font-medium);
}
.table .cell-error,
.table .text-error {
color: var(--color-error);
font-weight: var(--font-medium);
}
.table .cell-info,
.table .text-info {
color: var(--color-info);
font-weight: var(--font-medium);
}
.table .cell-muted,
.table .text-muted {
color: var(--color-text-muted);
}
/* Table Row States */
.table .row-selected {
background: rgba(37, 99, 235, 0.1);
border-color: var(--color-primary);
}
.table .row-active {
background: rgba(16, 185, 129, 0.1);
}
.table .row-warning {
background: rgba(245, 158, 11, 0.1);
}
.table .row-error {
background: rgba(239, 68, 68, 0.1);
}
/* Editable Cells */
.table .cell-editable {
cursor: pointer;
position: relative;
}
.table .cell-editable:hover {
background: rgba(37, 99, 235, 0.05);
}
.table .cell-input {
width: 100%;
padding: var(--space-xs);
border: 1px solid var(--color-primary);
border-radius: var(--radius-sm);
font-size: inherit;
font-family: inherit;
color: inherit;
background: var(--color-bg);
}
.table .cell-input:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}
/* Action Buttons in Tables */
.table .table-actions {
display: flex;
gap: var(--space-xs);
justify-content: flex-end;
}
.table .table-action-btn {
padding: var(--space-xs);
border: 1px solid var(--color-border);
background: var(--color-bg);
border-radius: var(--radius-sm);
cursor: pointer;
transition: all var(--transition-fast);
color: var(--color-text-secondary);
font-size: var(--text-sm);
}
.table .table-action-btn:hover {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
}
/* Table Pagination */
.table-pagination {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-md);
background: var(--color-bg-secondary);
border-top: 1px solid var(--color-border);
}
.pagination-info {
font-size: var(--text-sm);
color: var(--color-text-secondary);
}
.pagination-controls {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.pagination-btn {
padding: var(--space-xs) var(--space-sm);
border: 1px solid var(--color-border);
background: var(--color-bg);
color: var(--color-text);
cursor: pointer;
border-radius: var(--radius-sm);
font-size: var(--text-sm);
transition: all var(--transition-fast);
}
.pagination-btn:hover:not(:disabled) {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
}
.pagination-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.pagination-current {
padding: var(--space-xs) var(--space-sm);
font-size: var(--text-sm);
color: var(--color-text);
background: var(--color-primary);
color: var(--color-text-inverse);
border-radius: var(--radius-sm);
}
/* Table Search and Filters */
.table-filters {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-md);
background: var(--color-bg-secondary);
border-bottom: 1px solid var(--color-border);
gap: var(--space-md);
flex-wrap: wrap;
}
.table-search {
flex: 1;
min-width: 200px;
}
.table-filter-group {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.table-filter-label {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--color-text-secondary);
white-space: nowrap;
}
/* Data Table Stats */
.table-stats {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: var(--space-md);
padding: var(--space-md);
background: var(--color-bg-muted);
border-bottom: 1px solid var(--color-border);
}
.table-stat {
text-align: center;
}
.table-stat-value {
font-size: var(--text-xl);
font-weight: var(--font-bold);
color: var(--color-text);
display: block;
margin-bottom: var(--space-xs);
}
.table-stat-label {
font-size: var(--text-xs);
color: var(--color-text-secondary);
font-weight: var(--font-medium);
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Empty State */
.table-empty {
text-align: center;
padding: var(--space-3xl) var(--space-xl);
color: var(--color-text-secondary);
}
.table-empty-icon {
font-size: var(--text-4xl);
margin-bottom: var(--space-lg);
opacity: 0.5;
}
.table-empty-message {
font-size: var(--text-lg);
margin-bottom: var(--space-sm);
}
.table-empty-description {
font-size: var(--text-sm);
opacity: 0.8;
}
/* Trends Section Styling */
.trends-container {
padding: var(--space-xl);
min-height: 400px;
display: flex;
align-items: center;
justify-content: center;
}
.trend-placeholder {
text-align: center;
padding: var(--space-xl);
background: var(--color-bg-secondary);
border-radius: var(--radius-lg);
color: var(--color-text-secondary);
border: 2px dashed var(--color-border);
max-width: 500px;
}
.placeholder-icon {
font-size: 48px;
color: var(--color-primary);
margin-bottom: var(--space-lg);
opacity: 0.7;
}
.trend-placeholder h3 {
font-size: var(--text-xl);
font-weight: var(--font-semibold);
color: var(--color-text);
margin: 0 0 var(--space-md) 0;
}
.trend-placeholder p {
font-size: var(--text-base);
margin: 0 0 var(--space-md) 0;
line-height: 1.6;
}
.trend-placeholder ul {
text-align: left;
display: inline-block;
margin: 0;
padding-left: var(--space-lg);
}
.trend-placeholder li {
margin-bottom: var(--space-xs);
line-height: 1.5;
color: var(--color-text-secondary);
}
/* Chart Container for future charts */
.chart-container {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius-lg);
padding: var(--space-lg);
margin: var(--space-md) 0;
min-height: 300px;
display: flex;
align-items: center;
justify-content: center;
}
/* Loading States */
.loading-state {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: var(--space-3xl);
color: var(--color-text-secondary);
text-align: center;
min-height: 200px;
}
.loading-spinner {
width: 40px;
height: 40px;
border: 4px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
margin-bottom: var(--space-lg);
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Enhanced Responsive Table Container */
.table-container {
overflow: auto;
max-height: 500px;
border-radius: var(--radius-md);
border: 1px solid var(--color-border-light);
}
.table-container::-webkit-scrollbar {
width: 8px;
height: 8px;
}
.table-container::-webkit-scrollbar-track {
background: var(--color-bg-secondary);
}
.table-container::-webkit-scrollbar-thumb {
background: var(--color-border);
border-radius: var(--radius-full);
}
.table-container::-webkit-scrollbar-thumb:hover {
background: var(--color-border-dark);
}
/* Mobile Table Styles */
@media (max-width: 768px) {
.table-mobile-stack {
display: block;
}
.table-mobile-stack thead {
display: none;
}
.table-mobile-stack tbody,
.table-mobile-stack tr,
.table-mobile-stack td {
display: block;
width: 100%;
}
.table-mobile-stack tr {
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-md);
margin-bottom: var(--space-md);
background: var(--color-bg);
box-shadow: var(--shadow-sm);
}
.table-mobile-stack td {
border: none;
position: relative;
padding: var(--space-sm) 0;
text-align: left;
}
.table-mobile-stack td::before {
content: attr(data-label) ': ';
font-weight: var(--font-semibold);
color: var(--color-text-secondary);
display: inline-block;
width: 40%;
margin-right: var(--space-sm);
}
.table-filters {
flex-direction: column;
align-items: stretch;
}
.table-filter-group {
justify-content: space-between;
}
.table-pagination {
flex-direction: column;
gap: var(--space-md);
text-align: center;
}
.table-stats {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 480px) {
.table-stats {
grid-template-columns: 1fr;
}
.table-mobile-stack td::before {
width: 100%;
display: block;
margin-bottom: var(--space-xs);
margin-right: 0;
}
/* Dashboard-specific mobile styles */
.dashboard-table {
font-size: var(--text-xs);
}
.dashboard-table th,
.dashboard-table td {
padding: var(--space-sm) var(--space-md);
}
.name-cell {
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.trends-container {
padding: var(--space-lg);
}
.placeholder-icon {
font-size: 36px;
}
.trend-placeholder h3 {
font-size: var(--text-lg);
}
}
/* Professional Dashboard Table Styles */
.dashboard-table {
width: 100%;
border-collapse: collapse;
font-size: var(--text-sm);
color: var(--color-text);
background: var(--color-bg);
border-radius: var(--card-radius);
overflow: hidden;
box-shadow: var(--shadow-sm);
border: 1px solid var(--color-border-light);
}
.dashboard-table th {
background: var(--color-bg-muted);
padding: var(--space-md) var(--space-lg);
text-align: left;
border-bottom: 2px solid var(--color-border);
font-weight: var(--font-semibold);
color: var(--color-text);
font-size: var(--text-sm);
position: sticky;
top: 0;
z-index: 10;
text-transform: uppercase;
letter-spacing: 0.025em;
font-size: var(--text-xs);
}
.dashboard-table th.text-right {
text-align: right;
}
.dashboard-table td {
padding: var(--space-sm) var(--space-lg);
border-bottom: 1px solid var(--color-border-light);
vertical-align: middle;
transition: background-color var(--transition-fast);
}
.dashboard-table td.text-right {
text-align: right;
}
.dashboard-table tbody tr:hover {
background: var(--color-bg-secondary);
}
.dashboard-table tbody tr:last-child td {
border-bottom: none;
}
/* Enhanced Table Cell Types */
.dashboard-table .category-cell {
font-weight: var(--font-medium);
color: var(--color-text);
}
.dashboard-table .name-cell {
font-weight: var(--font-medium);
color: var(--color-text);
max-width: 250px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.dashboard-table .amount-cell {
font-family: var(--font-mono);
font-weight: var(--font-medium);
text-align: right;
white-space: nowrap;
}
.dashboard-table .status-cell {
text-align: center;
}
/* Enhanced Status Badge */
.status-badge {
display: inline-block;
padding: var(--space-xs) var(--space-sm);
border-radius: var(--radius-full);
font-size: var(--text-xs);
font-weight: var(--font-medium);
text-transform: uppercase;
letter-spacing: 0.05em;
border: 1px solid transparent;
}
.status-badge.activ {
background: var(--color-success-bg);
color: var(--color-success);
border-color: var(--color-success);
}
.status-badge.restant {
background: var(--color-warning-bg);
color: var(--color-warning);
border-color: var(--color-warning);
}
.status-badge.inactiv {
background: var(--color-error-bg);
color: var(--color-error);
border-color: var(--color-error);
}
/* Balance Color Classes */
.positive {
color: var(--color-success) !important;
font-weight: var(--font-semibold);
}
.negative {
color: var(--color-error) !important;
font-weight: var(--font-semibold);
}
.neutral {
color: var(--color-text) !important;
}
/* Grand Total Row Enhancement */
.grand-total-row {
background: var(--color-bg-muted);
font-weight: var(--font-semibold);
border-top: 2px solid var(--color-border);
border-bottom: 2px solid var(--color-border);
}
.grand-total-row td {
padding: var(--space-md) var(--space-lg);
color: var(--color-text);
font-size: var(--text-sm);
}
.grand-total-row:hover {
background: var(--color-bg-muted) !important;
}
/* Section Styling */
.dashboard-section {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
overflow: hidden;
box-shadow: var(--shadow-sm);
margin-bottom: var(--space-xl);
}
.section-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-lg) var(--space-xl);
background: var(--color-bg-secondary);
border-bottom: 1px solid var(--color-border);
flex-wrap: wrap;
gap: var(--space-md);
}
.section-title {
font-size: var(--text-xl);
font-weight: var(--font-semibold);
color: var(--color-text);
margin: 0;
display: flex;
align-items: center;
gap: var(--space-sm);
}
.section-controls {
display: flex;
align-items: center;
gap: var(--space-md);
flex-wrap: wrap;
}
/* Control Groups */
.control-group {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.control-group label {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--color-text-secondary);
white-space: nowrap;
}
.detail-select,
.detail-input,
.trend-select {
padding: var(--space-xs) var(--space-sm);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
font-size: var(--text-sm);
min-width: 120px;
background: var(--color-bg);
color: var(--color-text);
transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.detail-select:focus,
.detail-input:focus,
.trend-select:focus {
outline: none;
border-color: var(--color-primary);
box-shadow: 0 0 0 2px rgba(var(--color-primary-rgb), 0.2);
}
/* Enhanced Pagination */
.table-pagination {
display: flex;
justify-content: space-between;
align-items: center;
padding: var(--space-md) var(--space-xl);
background: var(--color-bg-secondary);
border-top: 1px solid var(--color-border);
flex-wrap: wrap;
gap: var(--space-md);
}
.pagination-info {
font-size: var(--text-sm);
color: var(--color-text-secondary);
font-weight: var(--font-medium);
}
.pagination-controls {
display: flex;
align-items: center;
gap: var(--space-md);
}
.page-info {
font-size: var(--text-sm);
color: var(--color-text);
font-weight: var(--font-medium);
padding: var(--space-xs) var(--space-sm);
background: var(--color-bg-muted);
border-radius: var(--radius-sm);
border: 1px solid var(--color-border);
}
/* Print Styles */
@media print {
.table {
font-size: 12px;
}
.table-filters,
.table-pagination,
.table-actions {
display: none;
}
.table th,
.table td {
padding: 4px 8px;
}
.dashboard-table {
font-size: 10px;
box-shadow: none;
border: 1px solid #000 !important;
}
.dashboard-table th {
background: #f5f5f5 !important;
color: #000 !important;
border: 1px solid #000 !important;
padding: 4px 6px;
}
.dashboard-table td {
border: 1px solid #000 !important;
padding: 4px 6px;
background: white !important;
color: #000 !important;
}
.grand-total-row td {
background: #f0f0f0 !important;
font-weight: bold;
border: 2px solid #000 !important;
}
.section-header {
display: none;
}
.dashboard-section {
page-break-inside: avoid;
margin-bottom: 20px;
box-shadow: none;
}
}

View File

@@ -0,0 +1,126 @@
/* Modern CSS Reset - ROA2WEB */
/* Box sizing rules */
*,
*::before,
*::after {
box-sizing: border-box;
}
/* Remove default margin and padding */
* {
margin: 0;
padding: 0;
}
/* Remove list styles on ul, ol elements with a list role */
ul[role='list'],
ol[role='list'] {
list-style: none;
}
/* Set core root defaults */
html {
scroll-behavior: smooth;
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%;
}
/* Set core body defaults */
body {
min-height: 100vh;
line-height: var(--leading-normal);
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
font-size: var(--text-base);
color: var(--color-text);
background-color: var(--color-bg);
text-rendering: optimizeSpeed;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Remove default styling from common elements */
h1, h2, h3, h4, h5, h6 {
font-weight: var(--font-semibold);
line-height: var(--leading-tight);
}
p {
line-height: var(--leading-normal);
}
/* A elements that don't have a class get default styles */
a:not([class]) {
text-decoration-skip-ink: auto;
color: var(--color-primary);
}
/* Make images easier to work with */
img,
picture,
svg {
max-width: 100%;
height: auto;
display: block;
}
/* Inherit fonts for inputs and buttons */
input,
button,
textarea,
select {
font: inherit;
color: inherit;
}
/* Remove default button styles */
button {
border: none;
background: none;
cursor: pointer;
}
/* Make sure textareas without a rows attribute are not tiny */
textarea:not([rows]) {
min-height: 10em;
}
/* Remove default styling from fieldsets */
fieldset {
border: none;
padding: 0;
margin: 0;
}
/* Remove default styling from legends */
legend {
padding: 0;
}
/* Remove default outline on focused elements for better accessibility */
:focus-visible {
outline: 2px solid var(--color-primary);
outline-offset: 2px;
}
/* Remove all animations and transitions for people that prefer not to see them */
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
scroll-behavior: auto !important;
}
}
/* Ensure minimum font size on iOS to prevent zoom */
@media screen and (max-width: 480px) {
input,
textarea,
select {
font-size: 16px;
}
}

View File

@@ -0,0 +1,155 @@
/* Typography System - ROA2WEB */
/* Heading Styles */
.text-4xl, .h1 {
font-size: var(--text-4xl);
font-weight: var(--font-bold);
line-height: var(--leading-tight);
letter-spacing: -0.025em;
}
.text-3xl, .h2 {
font-size: var(--text-3xl);
font-weight: var(--font-semibold);
line-height: var(--leading-tight);
letter-spacing: -0.025em;
}
.text-2xl, .h3 {
font-size: var(--text-2xl);
font-weight: var(--font-semibold);
line-height: var(--leading-tight);
}
.text-xl, .h4 {
font-size: var(--text-xl);
font-weight: var(--font-semibold);
line-height: var(--leading-tight);
}
.text-lg, .h5 {
font-size: var(--text-lg);
font-weight: var(--font-medium);
line-height: var(--leading-normal);
}
.text-base, .h6 {
font-size: var(--text-base);
font-weight: var(--font-medium);
line-height: var(--leading-normal);
}
/* Body Text Sizes */
.text-sm {
font-size: var(--text-sm);
line-height: var(--leading-normal);
}
.text-xs {
font-size: var(--text-xs);
line-height: var(--leading-normal);
}
/* Font Weights */
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
/* Text Colors */
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-inverse { color: var(--color-text-inverse); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }
/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
/* Line Heights */
.leading-tight { line-height: var(--leading-tight); }
.leading-normal { line-height: var(--leading-normal); }
.leading-loose { line-height: var(--leading-loose); }
/* Letter Spacing */
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0; }
.tracking-wide { letter-spacing: 0.025em; }
/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
/* Text Decoration */
.underline { text-decoration: underline; }
.no-underline { text-decoration: none; }
/* Page Title Styles */
.page-title {
color: var(--color-primary);
font-size: var(--text-3xl);
font-weight: var(--font-semibold);
line-height: var(--leading-tight);
margin-bottom: var(--space-md);
}
.page-subtitle {
color: var(--color-text-secondary);
font-size: var(--text-lg);
font-weight: var(--font-normal);
line-height: var(--leading-normal);
margin-bottom: var(--space-lg);
}
/* Section Title Styles */
.section-title {
color: var(--color-text);
font-size: var(--text-xl);
font-weight: var(--font-medium);
line-height: var(--leading-tight);
margin-bottom: var(--space-sm);
}
/* KPI Display Typography */
.kpi-value {
font-size: var(--text-2xl);
font-weight: var(--font-bold);
line-height: var(--leading-tight);
color: var(--color-text);
}
.kpi-large {
font-size: var(--text-4xl);
font-weight: var(--font-bold);
line-height: var(--leading-tight);
}
.kpi-label {
font-size: var(--text-sm);
font-weight: var(--font-medium);
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Mobile Typography Adjustments */
@media (max-width: 480px) {
.text-4xl, .h1 { font-size: var(--text-3xl); }
.text-3xl, .h2 { font-size: var(--text-2xl); }
.text-2xl, .h3 { font-size: var(--text-xl); }
.page-title {
font-size: var(--text-2xl);
}
.kpi-large {
font-size: var(--text-3xl);
}
}

View File

@@ -0,0 +1,181 @@
/* CSS Variables - ROA2WEB Design System */
:root {
/* Spacing System */
--space-xs: 0.25rem; /* 4px */
--space-sm: 0.5rem; /* 8px */
--space-md: 1rem; /* 16px */
--space-lg: 1.5rem; /* 24px */
--space-xl: 2rem; /* 32px */
--space-2xl: 3rem; /* 48px */
--space-3xl: 4rem; /* 64px */
/* Typography Scale */
--text-xs: 0.75rem; /* 12px */
--text-sm: 0.875rem; /* 14px */
--text-base: 1rem; /* 16px */
--text-lg: 1.125rem; /* 18px */
--text-xl: 1.25rem; /* 20px */
--text-2xl: 1.5rem; /* 24px */
--text-3xl: 2rem; /* 32px */
--text-4xl: 2.5rem; /* 40px */
/* Font Weights */
--font-light: 300;
--font-normal: 400;
--font-medium: 500;
--font-semibold: 600;
--font-bold: 700;
/* Line Heights */
--leading-tight: 1.2;
--leading-normal: 1.5;
--leading-loose: 1.75;
/* Colors - Minimal Professional Palette */
--color-primary: #2563eb;
--color-primary-dark: #1d4ed8;
--color-primary-light: #3b82f6;
--color-secondary: #64748b;
--color-secondary-dark: #475569;
--color-secondary-light: #94a3b8;
--color-success: #059669;
--color-warning: #d97706;
--color-error: #dc2626;
--color-info: #0891b2;
--color-text: #111827;
--color-text-secondary: #6b7280;
--color-text-muted: #9ca3af;
--color-text-inverse: #ffffff;
--color-bg: #ffffff;
--color-bg-secondary: #f9fafb;
--color-bg-muted: #f3f4f6;
--color-bg-dark: #111827;
--color-border: #e5e7eb;
--color-border-light: #f3f4f6;
--color-border-dark: #d1d5db;
/* Surface colors for PrimeVue compatibility */
--surface-0: #ffffff;
--surface-50: #f8fafc;
--surface-100: #f1f5f9;
--surface-200: #e2e8f0;
--surface-300: #cbd5e1;
--surface-400: #94a3b8;
--surface-500: #64748b;
--surface-600: #475569;
--surface-700: #334155;
--surface-800: #1e293b;
--surface-900: #0f172a;
--surface-950: #020617;
/* Red color palette for errors */
--red-50: #fef2f2;
--red-100: #fee2e2;
--red-200: #fecaca;
--red-300: #fca5a5;
--red-400: #f87171;
--red-500: #ef4444;
--red-600: #dc2626;
--red-700: #b91c1c;
--red-800: #991b1b;
--red-900: #7f1d1d;
--red-950: #450a0a;
/* Compatibility aliases for old variable names */
--primary-color: var(--color-primary);
--primary-color-dark: var(--color-primary-dark);
--primary-color-light: var(--color-primary-light);
--text-color: var(--color-text);
--text-color-secondary: var(--color-text-secondary);
/* Shadows */
--shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
/* Border Radius */
--radius-sm: 0.25rem; /* 4px */
--radius-md: 0.5rem; /* 8px */
--radius-lg: 0.75rem; /* 12px */
--radius-xl: 1rem; /* 16px */
--radius-full: 9999px;
/* Layout Specific */
--header-height: 56px;
--sidebar-width: 240px;
--card-radius: var(--radius-md);
--container-max-width: 1400px;
/* Transitions */
--transition-fast: 150ms ease;
--transition-normal: 250ms ease;
--transition-slow: 350ms ease;
/* Additional Status Colors */
--color-success-bg: rgba(5, 150, 105, 0.1);
--color-warning-bg: rgba(217, 119, 6, 0.1);
--color-error-bg: rgba(220, 38, 38, 0.1);
--color-info-bg: rgba(8, 145, 178, 0.1);
/* Color RGB values for opacity usage */
--color-primary-rgb: 37, 99, 235;
--color-success-rgb: 5, 150, 105;
--color-warning-rgb: 217, 119, 6;
--color-error-rgb: 220, 38, 38;
/* Monospace font for numbers */
--font-mono: 'SF Mono', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
/* Z-Index Scale */
--z-dropdown: 1200;
--z-sticky: 1020;
--z-fixed: 1030;
--z-modal-backdrop: 1040;
--z-modal: 1050;
--z-popover: 1060;
--z-tooltip: 1070;
/* Breakpoints (for reference in media queries) */
--breakpoint-mobile: 480px;
--breakpoint-tablet: 768px;
--breakpoint-desktop: 1024px;
--breakpoint-wide: 1400px;
}
/* Dark mode support (for future enhancement) */
@media (prefers-color-scheme: dark) {
:root {
--color-text: #f9fafb;
--color-text-secondary: #d1d5db;
--color-text-muted: #9ca3af;
--color-bg: #111827;
--color-bg-secondary: #1f2937;
--color-bg-muted: #374151;
--color-border: #374151;
--color-border-light: #4b5563;
--color-border-dark: #6b7280;
/* Surface colors for dark mode */
--surface-0: #ffffff;
--surface-50: #020617;
--surface-100: #0f172a;
--surface-200: #1e293b;
--surface-300: #334155;
--surface-400: #475569;
--surface-500: #64748b;
--surface-600: #94a3b8;
--surface-700: #cbd5e1;
--surface-800: #e2e8f0;
--surface-900: #f1f5f9;
--surface-950: #f8fafc;
/* Red colors remain the same in dark mode */
}
}

View File

@@ -0,0 +1,686 @@
/* Global CSS for ROA Reports */
/* CSS Custom Properties for consistent theming */
:root {
/* Primary Colors */
--roa-primary: #2563eb;
--roa-primary-hover: #1d4ed8;
--roa-primary-light: #dbeafe;
/* Success Colors */
--roa-success: #16a34a;
--roa-success-light: #dcfce7;
/* Warning Colors */
--roa-warning: #ca8a04;
--roa-warning-light: #fef3c7;
/* Danger Colors */
--roa-danger: #dc2626;
--roa-danger-light: #fee2e2;
/* Neutral Colors */
--roa-gray-50: #f9fafb;
--roa-gray-100: #f3f4f6;
--roa-gray-200: #e5e7eb;
--roa-gray-300: #d1d5db;
--roa-gray-400: #9ca3af;
--roa-gray-500: #6b7280;
--roa-gray-600: #4b5563;
--roa-gray-700: #374151;
--roa-gray-800: #1f2937;
--roa-gray-900: #111827;
/* Spacing */
--roa-spacing-xs: 0.25rem;
--roa-spacing-sm: 0.5rem;
--roa-spacing-md: 1rem;
--roa-spacing-lg: 1.5rem;
--roa-spacing-xl: 2rem;
--roa-spacing-2xl: 3rem;
/* Border Radius */
--roa-radius-sm: 0.375rem;
--roa-radius-md: 0.5rem;
--roa-radius-lg: 0.75rem;
--roa-radius-xl: 1rem;
/* Shadows */
--roa-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
--roa-shadow-md:
0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
--roa-shadow-lg:
0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
--roa-shadow-xl:
0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
/* Transitions */
--roa-transition-fast: 150ms ease-in-out;
--roa-transition-normal: 300ms ease-in-out;
--roa-transition-slow: 500ms ease-in-out;
}
/* Reset and Base Styles */
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
line-height: 1.5;
-webkit-text-size-adjust: 100%;
font-family:
ui-sans-serif,
system-ui,
-apple-system,
BlinkMacSystemFont,
"Segoe UI",
Roboto,
"Helvetica Neue",
Arial,
"Noto Sans",
sans-serif;
}
body {
margin: 0;
background-color: var(--surface-ground, var(--roa-gray-50));
color: var(--text-color, var(--roa-gray-900));
font-feature-settings: "kern" 1;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Utility Classes */
/* Spacing Utilities */
.m-0 {
margin: 0;
}
.m-1 {
margin: var(--roa-spacing-xs);
}
.m-2 {
margin: var(--roa-spacing-sm);
}
.m-3 {
margin: var(--roa-spacing-md);
}
.m-4 {
margin: var(--roa-spacing-lg);
}
.m-5 {
margin: var(--roa-spacing-xl);
}
.p-0 {
padding: 0;
}
.p-1 {
padding: var(--roa-spacing-xs);
}
.p-2 {
padding: var(--roa-spacing-sm);
}
.p-3 {
padding: var(--roa-spacing-md);
}
.p-4 {
padding: var(--roa-spacing-lg);
}
.p-5 {
padding: var(--roa-spacing-xl);
}
.mt-0 {
margin-top: 0;
}
.mt-1 {
margin-top: var(--roa-spacing-xs);
}
.mt-2 {
margin-top: var(--roa-spacing-sm);
}
.mt-3 {
margin-top: var(--roa-spacing-md);
}
.mt-4 {
margin-top: var(--roa-spacing-lg);
}
.mt-5 {
margin-top: var(--roa-spacing-xl);
}
.mb-0 {
margin-bottom: 0;
}
.mb-1 {
margin-bottom: var(--roa-spacing-xs);
}
.mb-2 {
margin-bottom: var(--roa-spacing-sm);
}
.mb-3 {
margin-bottom: var(--roa-spacing-md);
}
.mb-4 {
margin-bottom: var(--roa-spacing-lg);
}
.mb-5 {
margin-bottom: var(--roa-spacing-xl);
}
/* Text Utilities */
.text-xs {
font-size: 0.75rem;
line-height: 1rem;
}
.text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.text-base {
font-size: 1rem;
line-height: 1.5rem;
}
.text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
.text-xl {
font-size: 1.25rem;
line-height: 1.75rem;
}
.text-2xl {
font-size: 1.5rem;
line-height: 2rem;
}
.text-3xl {
font-size: 1.875rem;
line-height: 2.25rem;
}
.font-normal {
font-weight: 400;
}
.font-medium {
font-weight: 500;
}
.font-semibold {
font-weight: 600;
}
.font-bold {
font-weight: 700;
}
.text-left {
text-align: left;
}
.text-center {
text-align: center;
}
.text-right {
text-align: right;
}
.text-primary {
color: var(--primary-color, var(--roa-primary));
}
.text-success {
color: var(--green-600, var(--roa-success));
}
.text-warning {
color: var(--yellow-600, var(--roa-warning));
}
.text-danger {
color: var(--red-600, var(--roa-danger));
}
.text-muted {
color: var(--text-color-secondary, var(--roa-gray-500));
}
/* Display Utilities */
.hidden {
display: none;
}
.block {
display: block;
}
.inline {
display: inline;
}
.inline-block {
display: inline-block;
}
.flex {
display: flex;
}
.inline-flex {
display: inline-flex;
}
.grid {
display: grid;
}
/* Flexbox Utilities */
.flex-row {
flex-direction: row;
}
.flex-col {
flex-direction: column;
}
.items-start {
align-items: flex-start;
}
.items-center {
align-items: center;
}
.items-end {
align-items: flex-end;
}
.justify-start {
justify-content: flex-start;
}
.justify-center {
justify-content: center;
}
.justify-end {
justify-content: flex-end;
}
.justify-between {
justify-content: space-between;
}
.justify-around {
justify-content: space-around;
}
.flex-1 {
flex: 1 1 0%;
}
.flex-auto {
flex: 1 1 auto;
}
.flex-none {
flex: none;
}
.gap-1 {
gap: var(--roa-spacing-xs);
}
.gap-2 {
gap: var(--roa-spacing-sm);
}
.gap-3 {
gap: var(--roa-spacing-md);
}
.gap-4 {
gap: var(--roa-spacing-lg);
}
.gap-5 {
gap: var(--roa-spacing-xl);
}
/* Width and Height Utilities */
.w-full {
width: 100%;
}
.w-auto {
width: auto;
}
.h-full {
height: 100%;
}
.h-auto {
height: auto;
}
/* Border Utilities */
.border {
border: 1px solid var(--surface-border, var(--roa-gray-200));
}
.border-0 {
border: 0;
}
.border-t {
border-top: 1px solid var(--surface-border, var(--roa-gray-200));
}
.border-b {
border-bottom: 1px solid var(--surface-border, var(--roa-gray-200));
}
.border-l {
border-left: 1px solid var(--surface-border, var(--roa-gray-200));
}
.border-r {
border-right: 1px solid var(--surface-border, var(--roa-gray-200));
}
.rounded {
border-radius: var(--roa-radius-md);
}
.rounded-sm {
border-radius: var(--roa-radius-sm);
}
.rounded-lg {
border-radius: var(--roa-radius-lg);
}
.rounded-xl {
border-radius: var(--roa-radius-xl);
}
.rounded-full {
border-radius: 9999px;
}
/* Shadow Utilities */
.shadow-sm {
box-shadow: var(--roa-shadow-sm);
}
.shadow-md {
box-shadow: var(--roa-shadow-md);
}
.shadow-lg {
box-shadow: var(--roa-shadow-lg);
}
.shadow-xl {
box-shadow: var(--roa-shadow-xl);
}
.shadow-none {
box-shadow: none;
}
/* Background Utilities */
.bg-white {
background-color: #ffffff;
}
.bg-gray-50 {
background-color: var(--roa-gray-50);
}
.bg-gray-100 {
background-color: var(--roa-gray-100);
}
.bg-primary {
background-color: var(--primary-color, var(--roa-primary));
}
.bg-success {
background-color: var(--green-100, var(--roa-success-light));
}
.bg-warning {
background-color: var(--yellow-100, var(--roa-warning-light));
}
.bg-danger {
background-color: var(--red-100, var(--roa-danger-light));
}
/* Hover Effects */
.hover-lift {
transition:
transform var(--roa-transition-fast),
box-shadow var(--roa-transition-fast);
}
.hover-lift:hover {
transform: translateY(-2px);
box-shadow: var(--roa-shadow-lg);
}
/* Focus States */
.focus-ring:focus {
outline: 2px solid var(--primary-color, var(--roa-primary));
outline-offset: 2px;
}
/* Animation Utilities */
.transition-all {
transition: all var(--roa-transition-normal);
}
.transition-colors {
transition:
color var(--roa-transition-normal),
background-color var(--roa-transition-normal),
border-color var(--roa-transition-normal);
}
.transition-opacity {
transition: opacity var(--roa-transition-normal);
}
.transition-transform {
transition: transform var(--roa-transition-normal);
}
/* Custom ROA Classes */
.roa-card {
background: var(--surface-card, #ffffff);
border: 1px solid var(--surface-border, var(--roa-gray-200));
border-radius: var(--roa-radius-lg);
box-shadow: var(--roa-shadow-sm);
padding: var(--roa-spacing-lg);
}
.roa-button {
display: inline-flex;
align-items: center;
justify-content: center;
gap: var(--roa-spacing-sm);
padding: var(--roa-spacing-sm) var(--roa-spacing-lg);
border: none;
border-radius: var(--roa-radius-md);
font-weight: 500;
font-size: 0.875rem;
line-height: 1.25rem;
cursor: pointer;
transition: all var(--roa-transition-fast);
background-color: var(--primary-color, var(--roa-primary));
color: white;
}
.roa-button:hover {
background-color: var(--primary-color-dark, var(--roa-primary-hover));
transform: translateY(-1px);
box-shadow: var(--roa-shadow-md);
}
.roa-input {
width: 100%;
padding: var(--roa-spacing-sm) var(--roa-spacing-md);
border: 1px solid var(--surface-border, var(--roa-gray-200));
border-radius: var(--roa-radius-md);
font-size: 0.875rem;
line-height: 1.25rem;
transition:
border-color var(--roa-transition-fast),
box-shadow var(--roa-transition-fast);
}
.roa-input:focus {
outline: none;
border-color: var(--primary-color, var(--roa-primary));
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
/* Invoice Status Classes */
.status-paid {
background-color: var(--green-100, var(--roa-success-light));
color: var(--green-800, var(--roa-success));
padding: var(--roa-spacing-xs) var(--roa-spacing-sm);
border-radius: var(--roa-radius-sm);
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.status-overdue {
background-color: var(--red-100, var(--roa-danger-light));
color: var(--red-800, var(--roa-danger));
padding: var(--roa-spacing-xs) var(--roa-spacing-sm);
border-radius: var(--roa-radius-sm);
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.status-pending {
background-color: var(--yellow-100, var(--roa-warning-light));
color: var(--yellow-800, var(--roa-warning));
padding: var(--roa-spacing-xs) var(--roa-spacing-sm);
border-radius: var(--roa-radius-sm);
font-size: 0.75rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.05em;
}
/* Responsive Design */
@media (max-width: 640px) {
.sm\:hidden {
display: none;
}
.sm\:block {
display: block;
}
.sm\:flex {
display: flex;
}
.sm\:grid {
display: grid;
}
.sm\:flex-col {
flex-direction: column;
}
.sm\:items-center {
align-items: center;
}
.sm\:justify-center {
justify-content: center;
}
.sm\:text-center {
text-align: center;
}
.sm\:text-sm {
font-size: 0.875rem;
line-height: 1.25rem;
}
.sm\:p-2 {
padding: var(--roa-spacing-sm);
}
.sm\:m-2 {
margin: var(--roa-spacing-sm);
}
}
@media (max-width: 768px) {
.md\:hidden {
display: none;
}
.md\:block {
display: block;
}
.md\:flex {
display: flex;
}
.md\:grid {
display: grid;
}
.md\:flex-col {
flex-direction: column;
}
.md\:items-center {
align-items: center;
}
.md\:justify-center {
justify-content: center;
}
.md\:text-center {
text-align: center;
}
.md\:text-base {
font-size: 1rem;
line-height: 1.5rem;
}
.md\:p-3 {
padding: var(--roa-spacing-md);
}
.md\:m-3 {
margin: var(--roa-spacing-md);
}
}
@media (max-width: 1024px) {
.lg\:hidden {
display: none;
}
.lg\:block {
display: block;
}
.lg\:flex {
display: flex;
}
.lg\:grid {
display: grid;
}
.lg\:flex-row {
flex-direction: row;
}
.lg\:items-start {
align-items: flex-start;
}
.lg\:justify-start {
justify-content: flex-start;
}
.lg\:text-left {
text-align: left;
}
.lg\:text-lg {
font-size: 1.125rem;
line-height: 1.75rem;
}
.lg\:p-4 {
padding: var(--roa-spacing-lg);
}
.lg\:m-4 {
margin: var(--roa-spacing-lg);
}
}
/* Print Styles */
@media print {
.print\:hidden {
display: none !important;
}
.print\:block {
display: block !important;
}
* {
color-adjust: exact;
-webkit-print-color-adjust: exact;
}
}
/* Dark Mode Support (if implemented in the future) */
@media (prefers-color-scheme: dark) {
.dark\:bg-gray-800 {
background-color: var(--roa-gray-800);
}
.dark\:text-white {
color: #ffffff;
}
.dark\:border-gray-600 {
border-color: var(--roa-gray-600);
}
}

View File

@@ -0,0 +1,212 @@
/* Container System - ROA2WEB */
/* Main App Container */
.app-container {
max-width: var(--container-max-width);
margin: 0 auto;
padding: var(--space-lg);
min-height: calc(100vh - var(--header-height));
}
/* Page Container */
.page-container {
width: 100%;
max-width: var(--container-max-width);
margin: 0 auto;
padding: 0 var(--space-lg);
}
/* Section Container */
.section-container {
margin-bottom: var(--space-xl);
}
/* Content Container */
.content-container {
background: var(--color-bg);
border-radius: var(--card-radius);
box-shadow: var(--shadow-sm);
overflow: hidden;
}
/* Header Container */
.header-container {
width: 100%;
height: var(--header-height);
background: var(--color-bg);
border-bottom: 1px solid var(--color-border);
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: var(--z-fixed);
display: flex;
align-items: center;
padding: 0 var(--space-lg);
}
/* Main Content with Header Offset */
.main-content {
margin-top: var(--header-height);
padding: var(--space-lg);
}
/* Dashboard Container */
.dashboard-container {
display: flex;
flex-direction: column;
gap: var(--space-xl);
padding: var(--space-lg);
}
/* Card Container */
.card-container {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-lg);
box-shadow: var(--shadow-sm);
transition: box-shadow var(--transition-fast);
}
.card-container:hover {
box-shadow: var(--shadow-md);
}
/* Compact Card Container */
.card-compact {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-md);
box-shadow: var(--shadow-sm);
}
/* Mini Card Container */
.card-mini {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--radius-sm);
padding: var(--space-sm);
box-shadow: var(--shadow-sm);
}
/* Stats Container */
.stats-container {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
padding: var(--space-lg);
}
.stats-container-horizontal {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-md);
}
/* Table Container */
.table-container {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
overflow: hidden;
}
/* Form Container */
.form-container {
background: var(--color-bg);
border: 1px solid var(--color-border);
border-radius: var(--card-radius);
padding: var(--space-xl);
}
/* Toolbar Container */
.toolbar-container {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-md) var(--space-lg);
background: var(--color-bg-secondary);
border-bottom: 1px solid var(--color-border);
}
/* Action Bar Container */
.action-bar {
display: flex;
align-items: center;
gap: var(--space-md);
padding: var(--space-md);
background: var(--color-bg-secondary);
border-radius: var(--card-radius);
margin-bottom: var(--space-lg);
}
/* Mobile Container Adjustments */
@media (max-width: 768px) {
.app-container,
.main-content,
.page-container {
padding: var(--space-md);
}
.header-container {
padding: 0 var(--space-md);
}
.dashboard-container {
gap: var(--space-lg);
padding: var(--space-md);
}
.card-container {
padding: var(--space-md);
}
.toolbar-container {
flex-direction: column;
align-items: stretch;
gap: var(--space-sm);
padding: var(--space-md);
}
.action-bar {
flex-direction: column;
align-items: stretch;
}
}
@media (max-width: 480px) {
.app-container,
.main-content,
.page-container,
.dashboard-container {
padding: var(--space-sm);
}
.header-container {
padding: 0 var(--space-sm);
}
.card-container {
padding: var(--space-sm);
}
.stats-container-horizontal {
flex-direction: column;
gap: var(--space-sm);
text-align: center;
}
}
/* Utility Container Classes */
.container-fluid { width: 100%; }
.container-full-height { min-height: 100vh; }
.container-centered {
display: flex;
align-items: center;
justify-content: center;
min-height: 50vh;
}

View File

@@ -0,0 +1,159 @@
/* Grid System - ROA2WEB */
/* Flexbox Grid System */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
/* Flex Direction */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col-reverse { flex-direction: column-reverse; }
/* Flex Wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
/* Flex Grow/Shrink */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-none { flex: none; }
/* Justify Content */
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
/* Align Items */
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.items-stretch { align-items: stretch; }
.items-baseline { align-items: baseline; }
/* CSS Grid */
.grid { display: grid; }
.inline-grid { display: inline-grid; }
/* Grid Template Columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.grid-cols-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
/* Grid Column Span */
.col-span-1 { grid-column: span 1 / span 1; }
.col-span-2 { grid-column: span 2 / span 2; }
.col-span-3 { grid-column: span 3 / span 3; }
.col-span-4 { grid-column: span 4 / span 4; }
.col-span-6 { grid-column: span 6 / span 6; }
.col-span-12 { grid-column: span 12 / span 12; }
.col-span-full { grid-column: 1 / -1; }
/* Grid Gap */
.gap-0 { gap: 0; }
.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-4 { gap: var(--space-md); }
.gap-6 { gap: var(--space-lg); }
.gap-8 { gap: var(--space-xl); }
.gap-x-0 { column-gap: 0; }
.gap-x-1 { column-gap: var(--space-xs); }
.gap-x-2 { column-gap: var(--space-sm); }
.gap-x-4 { column-gap: var(--space-md); }
.gap-x-6 { column-gap: var(--space-lg); }
.gap-x-8 { column-gap: var(--space-xl); }
.gap-y-0 { row-gap: 0; }
.gap-y-1 { row-gap: var(--space-xs); }
.gap-y-2 { row-gap: var(--space-sm); }
.gap-y-4 { row-gap: var(--space-md); }
.gap-y-6 { row-gap: var(--space-lg); }
.gap-y-8 { row-gap: var(--space-xl); }
/* Dashboard Specific Grids */
.stats-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-lg);
}
.dashboard-v2-grid {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(3, 1fr);
gap: var(--space-md);
}
.dashboard-v3-layout {
display: grid;
grid-template-columns: 1fr 300px;
gap: var(--space-xl);
}
.dashboard-v4-actions {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: var(--space-lg);
}
/* Responsive Grid Adjustments */
@media (max-width: 1024px) {
.stats-grid {
grid-template-columns: repeat(2, 1fr);
}
.dashboard-v2-grid {
grid-template-columns: repeat(3, 1fr);
}
.dashboard-v3-layout {
grid-template-columns: 1fr;
}
.dashboard-v4-actions {
grid-template-columns: repeat(2, 1fr);
}
}
@media (max-width: 768px) {
.stats-grid {
grid-template-columns: 1fr;
}
.dashboard-v2-grid {
grid-template-columns: repeat(2, 1fr);
grid-template-rows: repeat(6, 1fr);
}
.dashboard-v4-actions {
grid-template-columns: 1fr;
}
}
@media (max-width: 480px) {
.dashboard-v2-grid {
grid-template-columns: 1fr;
grid-template-rows: repeat(12, auto);
}
}
/* Auto-fit and Auto-fill Grids */
.grid-auto-fit {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: var(--space-lg);
}
.grid-auto-fill {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: var(--space-md);
}

View File

@@ -0,0 +1,289 @@
/* Navigation System - ROA2WEB */
/* Header Navigation */
.header-nav {
display: flex;
align-items: center;
justify-content: space-between;
width: 100%;
height: 100%;
}
.header-brand {
display: flex;
align-items: center;
gap: var(--space-sm);
font-size: var(--text-lg);
font-weight: var(--font-semibold);
color: var(--color-primary);
text-decoration: none;
}
.header-actions {
display: flex;
align-items: center;
gap: var(--space-md);
}
.header-user {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm);
border-radius: var(--radius-md);
cursor: pointer;
transition: background-color var(--transition-fast);
}
.header-user:hover {
background-color: var(--color-bg-secondary);
}
/* Hamburger Menu */
.hamburger-btn {
display: none;
flex-direction: column;
justify-content: space-between;
width: 24px;
height: 18px;
background: none;
border: none;
cursor: pointer;
padding: 0;
}
.hamburger-line {
width: 100%;
height: 2px;
background-color: var(--color-text);
border-radius: 1px;
transition: all var(--transition-fast);
}
.hamburger-btn.active .hamburger-line:nth-child(1) {
transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
transform: rotate(-45deg) translate(5px, -5px);
}
/* Slide-out Menu */
.slide-menu {
position: fixed;
top: var(--header-height);
left: 0;
width: var(--sidebar-width);
height: calc(100vh - var(--header-height));
background: var(--color-bg);
border-right: 1px solid var(--color-border);
box-shadow: var(--shadow-lg);
transform: translateX(-100%);
transition: transform var(--transition-normal);
z-index: var(--z-modal);
overflow-y: auto;
}
.slide-menu.open {
transform: translateX(0);
}
.slide-menu-overlay {
position: fixed;
top: var(--header-height);
left: 0;
right: 0;
bottom: 0;
background: rgba(0, 0, 0, 0.5);
opacity: 0;
visibility: hidden;
transition: all var(--transition-normal);
z-index: var(--z-modal-backdrop);
}
.slide-menu-overlay.open {
opacity: 1;
visibility: visible;
}
/* Menu Content */
.menu-section {
padding: var(--space-lg);
border-bottom: 1px solid var(--color-border);
}
.menu-section:last-child {
border-bottom: none;
}
.menu-title {
font-size: var(--text-sm);
font-weight: var(--font-semibold);
color: var(--color-text-secondary);
text-transform: uppercase;
letter-spacing: 0.05em;
margin-bottom: var(--space-md);
}
.menu-list {
list-style: none;
}
.menu-item {
margin-bottom: var(--space-xs);
}
.menu-link {
display: flex;
align-items: center;
gap: var(--space-sm);
padding: var(--space-sm) var(--space-md);
color: var(--color-text);
text-decoration: none;
border-radius: var(--radius-md);
transition: all var(--transition-fast);
}
.menu-link:hover,
.menu-link.active {
background-color: var(--color-bg-secondary);
color: var(--color-primary);
}
.menu-icon {
width: 18px;
height: 18px;
flex-shrink: 0;
}
/* Dashboard Switcher */
.dashboard-switcher {
display: flex;
flex-direction: column;
gap: var(--space-sm);
}
.dashboard-option {
display: flex;
align-items: center;
justify-content: space-between;
padding: var(--space-sm) var(--space-md);
background: var(--color-bg-secondary);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
cursor: pointer;
transition: all var(--transition-fast);
}
.dashboard-option:hover {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
}
.dashboard-option.active {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
}
.dashboard-label {
font-weight: var(--font-medium);
}
.dashboard-description {
font-size: var(--text-xs);
opacity: 0.8;
}
/* Breadcrumb Navigation */
.breadcrumb {
display: flex;
align-items: center;
gap: var(--space-sm);
margin-bottom: var(--space-lg);
font-size: var(--text-sm);
}
.breadcrumb-item {
color: var(--color-text-secondary);
}
.breadcrumb-item:last-child {
color: var(--color-text);
font-weight: var(--font-medium);
}
.breadcrumb-separator {
color: var(--color-text-muted);
}
/* Quick Actions Toolbar */
.quick-actions {
display: flex;
align-items: center;
gap: var(--space-sm);
}
.quick-action-btn {
display: flex;
align-items: center;
gap: var(--space-xs);
padding: var(--space-sm) var(--space-md);
background: var(--color-bg-secondary);
border: 1px solid var(--color-border);
border-radius: var(--radius-md);
color: var(--color-text);
text-decoration: none;
font-size: var(--text-sm);
transition: all var(--transition-fast);
}
.quick-action-btn:hover {
background: var(--color-primary);
color: var(--color-text-inverse);
border-color: var(--color-primary);
}
/* Mobile Navigation */
@media (max-width: 768px) {
.hamburger-btn {
display: flex;
}
.header-actions {
gap: var(--space-sm);
}
.quick-actions {
display: none;
}
.slide-menu {
width: 280px;
}
.menu-section {
padding: var(--space-md);
}
.quick-action-btn {
justify-content: center;
padding: var(--space-md);
}
}
@media (max-width: 480px) {
.header-brand {
font-size: var(--text-base);
}
.slide-menu {
width: 100vw;
max-width: 320px;
}
}

View File

@@ -0,0 +1,144 @@
/* Main CSS Entry Point - ROA2WEB */
/* Import order is critical for proper CSS cascade */
/* 1. Core Foundation */
@import './core/variables.css';
@import './core/reset.css';
@import './core/typography.css';
/* 2. Layout System */
@import './layout/grid.css';
@import './layout/containers.css';
@import './layout/navigation.css';
/* 3. Component Library */
@import './components/cards.css';
@import './components/buttons.css';
@import './components/tables.css';
@import './components/forms.css';
@import './components/stats.css';
/* 4. Utilities */
@import './utilities/spacing.css';
@import './utilities/display.css';
@import './utilities/text.css';
@import './utilities/flex.css';
/* 5. Existing Mobile Optimizations */
@import './mobile.css';
/* Global Application Styles */
html {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: var(--leading-normal);
color: var(--color-text);
background-color: var(--color-bg);
}
body {
margin: 0;
padding: 0;
min-height: 100vh;
overflow-x: hidden;
}
/* Vue App Wrapper */
#app {
min-height: 100vh;
display: flex;
flex-direction: column;
}
/* Remove default router-link styles */
.router-link-active,
.router-link-exact-active {
text-decoration: none;
}
/* Smooth scrolling behavior */
@media (prefers-reduced-motion: no-preference) {
html {
scroll-behavior: smooth;
}
}
/* Focus management */
.sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}
/* Loading states */
.loading {
opacity: 0.6;
pointer-events: none;
}
.loading::after {
content: '';
position: absolute;
top: 50%;
left: 50%;
width: 20px;
height: 20px;
margin: -10px 0 0 -10px;
border: 2px solid var(--color-border);
border-top-color: var(--color-primary);
border-radius: 50%;
animation: spin 1s linear infinite;
}
@keyframes spin {
to {
transform: rotate(360deg);
}
}
/* Error states */
.error {
color: var(--color-error);
border-color: var(--color-error);
}
.success {
color: var(--color-success);
border-color: var(--color-success);
}
.warning {
color: var(--color-warning);
border-color: var(--color-warning);
}
/* Print styles */
@media print {
.no-print {
display: none !important;
}
.print-only {
display: block !important;
}
* {
background: white !important;
color: black !important;
box-shadow: none !important;
}
.card,
.stats-card,
.kpi-card {
border: 1px solid #ccc !important;
break-inside: avoid;
margin-bottom: 1rem;
}
}

View File

@@ -0,0 +1,695 @@
/* Mobile-specific styles for ROA Reports */
/* Mobile Navigation Enhancements */
@media (max-width: 768px) {
/* Menubar mobile optimizations */
.p-menubar {
padding: 0.5rem 1rem;
}
.p-menubar .p-menubar-root-list {
flex-direction: column;
width: 100%;
position: absolute;
top: 100%;
left: 0;
background: var(--surface-overlay);
border: 1px solid var(--surface-border);
border-radius: var(--border-radius);
box-shadow: var(--overlay-shadow);
z-index: 1000;
}
.p-menubar .p-menubar-root-list .p-menuitem {
width: 100%;
}
.p-menubar .p-menubar-root-list .p-menuitem-link {
padding: 1rem;
border-bottom: 1px solid var(--surface-border);
width: 100%;
justify-content: flex-start;
}
.p-menubar .p-menubar-button {
display: flex !important;
}
/* Hide menu items by default on mobile */
.p-menubar .p-menubar-root-list {
display: none;
}
.p-menubar.p-menubar-mobile-active .p-menubar-root-list {
display: flex;
}
}
/* Mobile DataTable Enhancements */
@media (max-width: 768px) {
.p-datatable .p-datatable-wrapper {
overflow-x: auto;
}
.p-datatable .p-datatable-thead > tr > th {
min-width: 120px;
padding: 0.5rem;
font-size: 0.875rem;
}
.p-datatable .p-datatable-tbody > tr > td {
padding: 0.5rem;
font-size: 0.875rem;
border-bottom: 1px solid var(--surface-border);
}
/* Stack table content vertically on very small screens */
.p-datatable.mobile-stack .p-datatable-thead {
display: none;
}
.p-datatable.mobile-stack .p-datatable-tbody,
.p-datatable.mobile-stack .p-datatable-tbody tr,
.p-datatable.mobile-stack .p-datatable-tbody td {
display: block;
width: 100%;
}
.p-datatable.mobile-stack .p-datatable-tbody tr {
border: 1px solid var(--surface-border);
border-radius: var(--border-radius);
padding: 1rem;
margin-bottom: 1rem;
background: var(--surface-card);
}
.p-datatable.mobile-stack .p-datatable-tbody td {
border: none;
position: relative;
padding: 0.5rem 0;
}
.p-datatable.mobile-stack .p-datatable-tbody td:before {
content: attr(data-label) ": ";
font-weight: 600;
color: var(--text-color-secondary);
display: inline-block;
width: 40%;
margin-right: 1rem;
}
}
/* Mobile Card Optimizations */
@media (max-width: 768px) {
.p-card .p-card-body {
padding: 1rem;
}
.p-card .p-card-header {
padding: 1rem 1rem 0.5rem 1rem;
}
.p-card .p-card-footer {
padding: 0.5rem 1rem 1rem 1rem;
}
.p-card .p-card-title {
font-size: 1.25rem;
margin-bottom: 0.5rem;
}
.p-card .p-card-subtitle {
font-size: 0.875rem;
margin-bottom: 1rem;
}
}
/* Mobile Button Enhancements */
@media (max-width: 768px) {
.p-button {
min-height: 44px; /* Minimum touch target size */
padding: 0.75rem 1rem;
font-size: 0.875rem;
}
.p-button.p-button-sm {
min-height: 36px;
padding: 0.5rem 0.75rem;
font-size: 0.8125rem;
}
.p-button.p-button-lg {
min-height: 52px;
padding: 1rem 1.5rem;
font-size: 1rem;
}
/* Full width buttons on mobile */
.mobile-full-width .p-button {
width: 100%;
margin-bottom: 0.5rem;
}
}
/* Mobile Form Enhancements */
@media (max-width: 768px) {
.p-inputtext,
.p-password input,
.p-dropdown,
.p-calendar input {
min-height: 44px;
font-size: 16px; /* Prevents zoom on iOS */
padding: 0.75rem;
}
.p-float-label > label {
top: 50%;
transform: translateY(-50%);
font-size: 1rem;
}
.p-float-label > .p-invalid + label {
color: var(--red-500);
}
/* Stack form fields vertically */
.mobile-form-stack .p-field {
margin-bottom: 1.5rem;
}
.mobile-form-stack .p-field:last-child {
margin-bottom: 0;
}
}
/* Mobile Dialog Enhancements */
@media (max-width: 768px) {
.p-dialog {
width: 95vw !important;
max-width: none !important;
margin: 0 !important;
max-height: 90vh;
}
.p-dialog .p-dialog-header {
padding: 1rem;
border-bottom: 1px solid var(--surface-border);
}
.p-dialog .p-dialog-content {
padding: 1rem;
max-height: calc(90vh - 120px);
overflow-y: auto;
}
.p-dialog .p-dialog-footer {
padding: 1rem;
border-top: 1px solid var(--surface-border);
justify-content: stretch;
}
.p-dialog .p-dialog-footer .p-button {
flex: 1;
margin: 0 0.25rem;
}
}
/* Mobile Toast Enhancements */
@media (max-width: 768px) {
.p-toast {
width: calc(100vw - 2rem) !important;
left: 1rem !important;
right: 1rem !important;
}
.p-toast .p-toast-message {
margin-bottom: 0.5rem;
}
}
/* Toast positioning to avoid header conflicts */
.p-toast {
z-index: 1100 !important;
}
/* Ensure toast notifications don't interfere with header dropdowns */
.p-toast[data-position="top-right"] {
top: 80px !important; /* Move below header */
}
/* Mobile Dropdown Enhancements */
@media (max-width: 768px) {
.p-dropdown-panel {
max-height: 60vh;
width: 100% !important;
}
.p-dropdown-item {
padding: 1rem;
font-size: 1rem;
}
}
/* Mobile Calendar Enhancements */
@media (max-width: 768px) {
.p-datepicker {
width: 100% !important;
max-width: none !important;
}
.p-datepicker table td {
padding: 0.5rem;
}
.p-datepicker table td > span {
width: 2.5rem;
height: 2.5rem;
line-height: 2.5rem;
}
}
/* Mobile-specific utility classes */
@media (max-width: 640px) {
.mobile-hide {
display: none !important;
}
.mobile-show {
display: block !important;
}
.mobile-flex {
display: flex !important;
}
.mobile-grid {
display: grid !important;
}
.mobile-full-width {
width: 100% !important;
}
.mobile-text-center {
text-align: center !important;
}
.mobile-text-left {
text-align: left !important;
}
.mobile-p-2 {
padding: 0.5rem !important;
}
.mobile-p-4 {
padding: 1rem !important;
}
.mobile-m-2 {
margin: 0.5rem !important;
}
.mobile-m-4 {
margin: 1rem !important;
}
.mobile-stack {
flex-direction: column !important;
}
.mobile-stack > * {
width: 100% !important;
margin-bottom: 0.5rem;
}
.mobile-stack > *:last-child {
margin-bottom: 0;
}
}
/* Tablet-specific styles */
@media (min-width: 641px) and (max-width: 1024px) {
.tablet-hide {
display: none !important;
}
.tablet-show {
display: block !important;
}
.tablet-flex {
display: flex !important;
}
.tablet-grid {
display: grid !important;
}
.tablet-full-width {
width: 100% !important;
}
.tablet-half-width {
width: 50% !important;
}
.tablet-text-center {
text-align: center !important;
}
.tablet-text-left {
text-align: left !important;
}
.tablet-p-3 {
padding: 0.75rem !important;
}
.tablet-m-3 {
margin: 0.75rem !important;
}
}
/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
/* Increase touch targets */
.p-button,
.p-inputtext,
.p-dropdown,
.p-calendar input {
min-height: 44px;
}
/* Remove hover effects on touch devices */
.p-button:hover {
transform: none;
box-shadow: none;
}
/* Add active states for better touch feedback */
.p-button:active {
transform: scale(0.98);
transition: transform 0.1s ease;
}
.p-datatable .p-datatable-tbody > tr:active {
background-color: var(--surface-hover);
}
}
/* Accessibility improvements for mobile */
@media (max-width: 768px) {
/* Ensure focus is visible */
.p-button:focus,
.p-inputtext:focus,
.p-dropdown:focus,
.p-calendar input:focus {
outline: 2px solid var(--primary-color);
outline-offset: 2px;
}
/* High contrast mode support */
@media (prefers-contrast: high) {
.p-button,
.p-inputtext,
.p-dropdown,
.p-calendar input {
border-width: 2px;
}
}
/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
* {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}
}
/* Custom mobile components */
.mobile-nav-toggle {
display: none;
background: none;
border: none;
padding: 0.5rem;
cursor: pointer;
color: var(--text-color);
font-size: 1.5rem;
}
@media (max-width: 768px) {
.mobile-nav-toggle {
display: block;
}
}
.mobile-card-stack {
display: flex;
flex-direction: column;
gap: 1rem;
}
@media (min-width: 769px) {
.mobile-card-stack {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
gap: 1.5rem;
}
}
/* Mobile-optimized stats cards */
.mobile-stat-card {
background: var(--surface-card);
border: 1px solid var(--surface-border);
border-radius: var(--border-radius);
padding: 1rem;
display: flex;
align-items: center;
gap: 1rem;
}
.mobile-stat-card .stat-icon {
font-size: 2rem;
color: var(--primary-color);
flex-shrink: 0;
}
.mobile-stat-card .stat-content {
flex: 1;
}
.mobile-stat-card .stat-value {
font-size: 1.5rem;
font-weight: 700;
margin: 0;
color: var(--text-color);
}
.mobile-stat-card .stat-label {
font-size: 0.875rem;
color: var(--text-color-secondary);
margin: 0.25rem 0 0 0;
}
/* Mobile table alternative */
.mobile-list-view .list-item {
background: var(--surface-card);
border: 1px solid var(--surface-border);
border-radius: var(--border-radius);
padding: 1rem;
margin-bottom: 0.5rem;
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.mobile-list-view .list-item-content {
flex: 1;
}
.mobile-list-view .list-item-title {
font-weight: 600;
color: var(--text-color);
margin-bottom: 0.25rem;
}
.mobile-list-view .list-item-subtitle {
font-size: 0.875rem;
color: var(--text-color-secondary);
margin-bottom: 0.5rem;
}
.mobile-list-view .list-item-actions {
flex-shrink: 0;
margin-left: 1rem;
}
/* Swipe gestures support (future enhancement) */
.swipe-item {
position: relative;
overflow: hidden;
}
.swipe-actions {
position: absolute;
top: 0;
right: -100px;
height: 100%;
width: 100px;
background: var(--red-500);
display: flex;
align-items: center;
justify-content: center;
color: white;
transition: right 0.3s ease;
}
.swipe-item.swiped .swipe-actions {
right: 0;
}
/* Enhanced Responsive Tables - Prevent text shrinking and add horizontal scroll */
@media (max-width: 768px) {
/* Container cu scroll orizontal pentru tabele */
.table-container {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
margin: 0 -1rem; /* Extend to edges on mobile */
padding: 0 1rem;
}
/* Dimensiune minimă pentru tabele - Enhanced */
.summary-table,
.breakdown-table,
.dashboard-table,
.detailed-table,
.p-datatable table {
min-width: 600px !important; /* Prevent compression */
font-size: 14px !important; /* Minimum readable size */
}
/* Celule tabel - Enhanced */
.summary-table td,
.summary-table th,
.breakdown-table td,
.breakdown-table th,
.dashboard-table td,
.dashboard-table th,
.detailed-table td,
.detailed-table th {
padding: 0.5rem;
font-size: 14px !important;
white-space: nowrap; /* Prevent text wrapping */
min-width: 80px; /* Minimum column width */
}
/* Amount cells should never shrink */
.amount-cell {
font-size: 14px !important;
font-family: monospace;
white-space: nowrap;
}
/* Override PrimeVue table font sizes for mobile */
.p-datatable .p-datatable-thead > tr > th,
.p-datatable .p-datatable-tbody > tr > td {
font-size: 14px !important;
padding: 0.5rem !important;
}
/* Stack controls vertically on mobile */
.section-controls {
flex-direction: column;
width: 100%;
gap: 0.5rem;
}
.section-controls > * {
width: 100%;
}
/* Button groups on mobile */
.button-group {
display: flex;
gap: 0.5rem;
width: 100%;
}
.button-group .btn {
flex: 1;
}
/* Indicator de scroll */
.table-container::after {
content: '← Scroll orizontal pentru mai multe coloane →';
display: block;
text-align: center;
color: var(--color-text-secondary, #6b7280);
font-size: 12px;
margin-top: 0.5rem;
font-style: italic;
}
.table-container.scrolled-full::after {
display: none;
}
/* Ensure table wrappers don't compress */
.table-wrapper,
.data-table-wrapper {
overflow-x: auto;
-webkit-overflow-scrolling: touch;
}
}
/* Tablet-specific improvements */
@media (min-width: 641px) and (max-width: 1024px) {
.summary-table,
.breakdown-table,
.detailed-table {
font-size: 14px !important; /* Slightly larger on tablet */
}
.summary-table td,
.summary-table th,
.breakdown-table td,
.breakdown-table th {
font-size: 14px !important;
padding: 0.6rem;
}
}
/* Extra small devices */
@media (max-width: 480px) {
/* Hide less important columns on very small screens */
.breakdown-table th:nth-child(6),
.breakdown-table td:nth-child(6),
.breakdown-table th:nth-child(7),
.breakdown-table td:nth-child(7) {
display: none;
}
/* Maintain readable font sizes but slightly smaller */
.summary-table,
.breakdown-table,
.detailed-table {
font-size: 13px !important;
min-width: 500px !important; /* Slightly smaller minimum on very small screens */
}
.summary-table td,
.summary-table th,
.breakdown-table td,
.breakdown-table th {
font-size: 13px !important;
padding: 0.4rem;
min-width: 70px;
}
/* Stack controls vertically on mobile */
.section-controls {
flex-direction: column !important;
gap: 0.5rem;
}
.section-controls > * {
width: 100% !important;
}
/* Adjust search inputs for mobile */
.search-input,
.data-type-select {
width: 100% !important;
font-size: 16px !important; /* Prevent zoom on iOS */
min-height: 44px; /* Touch-friendly height */
}
}

View File

@@ -0,0 +1,259 @@
/* Display Utilities - ROA2WEB */
/* Display Types */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.inline-grid { display: inline-grid; }
.table { display: table; }
.table-cell { display: table-cell; }
.table-row { display: table-row; }
.hidden { display: none; }
/* Visibility */
.visible { visibility: visible; }
.invisible { visibility: hidden; }
/* Position */
.static { position: static; }
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }
/* Position Values */
.top-0 { top: 0; }
.top-1 { top: var(--space-xs); }
.top-2 { top: var(--space-sm); }
.top-4 { top: var(--space-md); }
.top-auto { top: auto; }
.right-0 { right: 0; }
.right-1 { right: var(--space-xs); }
.right-2 { right: var(--space-sm); }
.right-4 { right: var(--space-md); }
.right-auto { right: auto; }
.bottom-0 { bottom: 0; }
.bottom-1 { bottom: var(--space-xs); }
.bottom-2 { bottom: var(--space-sm); }
.bottom-4 { bottom: var(--space-md); }
.bottom-auto { bottom: auto; }
.left-0 { left: 0; }
.left-1 { left: var(--space-xs); }
.left-2 { left: var(--space-sm); }
.left-4 { left: var(--space-md); }
.left-auto { left: auto; }
.inset-0 {
top: 0;
right: 0;
bottom: 0;
left: 0;
}
/* Z-Index */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }
.z-dropdown { z-index: var(--z-dropdown); }
.z-sticky { z-index: var(--z-sticky); }
.z-fixed { z-index: var(--z-fixed); }
.z-modal { z-index: var(--z-modal); }
/* Float */
.float-left { float: left; }
.float-right { float: right; }
.float-none { float: none; }
.clearfix::after {
content: "";
display: table;
clear: both;
}
/* Overflow */
.overflow-auto { overflow: auto; }
.overflow-hidden { overflow: hidden; }
.overflow-visible { overflow: visible; }
.overflow-scroll { overflow: scroll; }
.overflow-x-auto { overflow-x: auto; }
.overflow-x-hidden { overflow-x: hidden; }
.overflow-x-visible { overflow-x: visible; }
.overflow-x-scroll { overflow-x: scroll; }
.overflow-y-auto { overflow-y: auto; }
.overflow-y-hidden { overflow-y: hidden; }
.overflow-y-visible { overflow-y: visible; }
.overflow-y-scroll { overflow-y: scroll; }
/* Object Fit */
.object-contain { object-fit: contain; }
.object-cover { object-fit: cover; }
.object-fill { object-fit: fill; }
.object-none { object-fit: none; }
.object-scale-down { object-fit: scale-down; }
/* Object Position */
.object-bottom { object-position: bottom; }
.object-center { object-position: center; }
.object-left { object-position: left; }
.object-right { object-position: right; }
.object-top { object-position: top; }
/* Width */
.w-auto { width: auto; }
.w-full { width: 100%; }
.w-screen { width: 100vw; }
.w-min { width: min-content; }
.w-max { width: max-content; }
.w-fit { width: fit-content; }
.w-0 { width: 0; }
.w-1 { width: var(--space-xs); }
.w-2 { width: var(--space-sm); }
.w-4 { width: var(--space-md); }
.w-6 { width: var(--space-lg); }
.w-8 { width: var(--space-xl); }
.w-1\/2 { width: 50%; }
.w-1\/3 { width: 33.333333%; }
.w-2\/3 { width: 66.666667%; }
.w-1\/4 { width: 25%; }
.w-3\/4 { width: 75%; }
.w-1\/5 { width: 20%; }
.w-2\/5 { width: 40%; }
.w-3\/5 { width: 60%; }
.w-4\/5 { width: 80%; }
/* Max Width */
.max-w-none { max-width: none; }
.max-w-full { max-width: 100%; }
.max-w-screen { max-width: 100vw; }
.max-w-xs { max-width: 20rem; }
.max-w-sm { max-width: 24rem; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.max-w-5xl { max-width: 64rem; }
.max-w-6xl { max-width: 72rem; }
.max-w-7xl { max-width: 80rem; }
/* Min Width */
.min-w-0 { min-width: 0; }
.min-w-full { min-width: 100%; }
.min-w-min { min-width: min-content; }
.min-w-max { min-width: max-content; }
.min-w-fit { min-width: fit-content; }
/* Height */
.h-auto { height: auto; }
.h-full { height: 100%; }
.h-screen { height: 100vh; }
.h-min { height: min-content; }
.h-max { height: max-content; }
.h-fit { height: fit-content; }
.h-0 { height: 0; }
.h-1 { height: var(--space-xs); }
.h-2 { height: var(--space-sm); }
.h-4 { height: var(--space-md); }
.h-6 { height: var(--space-lg); }
.h-8 { height: var(--space-xl); }
.h-10 { height: 2.5rem; }
.h-12 { height: var(--space-3xl); }
.h-16 { height: 4rem; }
.h-20 { height: 5rem; }
.h-24 { height: 6rem; }
.h-32 { height: 8rem; }
.h-40 { height: 10rem; }
.h-48 { height: 12rem; }
.h-56 { height: 14rem; }
.h-64 { height: 16rem; }
/* Max Height */
.max-h-full { max-height: 100%; }
.max-h-screen { max-height: 100vh; }
.max-h-none { max-height: none; }
/* Min Height */
.min-h-0 { min-height: 0; }
.min-h-full { min-height: 100%; }
.min-h-screen { min-height: 100vh; }
/* Aspect Ratio */
.aspect-auto { aspect-ratio: auto; }
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
/* Box Sizing */
.box-border { box-sizing: border-box; }
.box-content { box-sizing: content-box; }
/* Cursor */
.cursor-auto { cursor: auto; }
.cursor-default { cursor: default; }
.cursor-pointer { cursor: pointer; }
.cursor-wait { cursor: wait; }
.cursor-text { cursor: text; }
.cursor-move { cursor: move; }
.cursor-help { cursor: help; }
.cursor-not-allowed { cursor: not-allowed; }
/* User Select */
.select-none { user-select: none; }
.select-text { user-select: text; }
.select-all { user-select: all; }
.select-auto { user-select: auto; }
/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }
/* Resize */
.resize-none { resize: none; }
.resize { resize: both; }
.resize-y { resize: vertical; }
.resize-x { resize: horizontal; }
/* Responsive Utilities */
@media (max-width: 480px) {
.mobile-hidden { display: none !important; }
.mobile-block { display: block !important; }
.mobile-flex { display: flex !important; }
.mobile-grid { display: grid !important; }
}
@media (min-width: 481px) {
.mobile-only { display: none !important; }
}
@media (max-width: 768px) {
.tablet-hidden { display: none !important; }
.tablet-block { display: block !important; }
.tablet-flex { display: flex !important; }
.tablet-grid { display: grid !important; }
}
@media (min-width: 769px) {
.tablet-only { display: none !important; }
}
@media (min-width: 1024px) {
.desktop-only { display: block !important; }
}
@media (max-width: 1023px) {
.desktop-hidden { display: none !important; }
}

View File

@@ -0,0 +1,135 @@
/* Flex Utilities - ROA2WEB */
/* Flex Display */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
/* Flex Direction */
.flex-row { flex-direction: row; }
.flex-row-reverse { flex-direction: row-reverse; }
.flex-col { flex-direction: column; }
.flex-col-reverse { flex-direction: column-reverse; }
/* Flex Wrap */
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }
.flex-wrap-reverse { flex-wrap: wrap-reverse; }
/* Flex */
.flex-1 { flex: 1 1 0%; }
.flex-auto { flex: 1 1 auto; }
.flex-initial { flex: 0 1 auto; }
.flex-none { flex: none; }
/* Flex Grow */
.flex-grow-0 { flex-grow: 0; }
.flex-grow { flex-grow: 1; }
/* Flex Shrink */
.flex-shrink-0 { flex-shrink: 0; }
.flex-shrink { flex-shrink: 1; }
/* Justify Content */
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }
.justify-evenly { justify-content: space-evenly; }
/* Align Items */
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.items-center { align-items: center; }
.items-baseline { align-items: baseline; }
.items-stretch { align-items: stretch; }
/* Align Content */
.content-start { align-content: flex-start; }
.content-end { align-content: flex-end; }
.content-center { align-content: center; }
.content-between { align-content: space-between; }
.content-around { align-content: space-around; }
.content-evenly { align-content: space-evenly; }
/* Align Self */
.self-auto { align-self: auto; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.self-center { align-self: center; }
.self-stretch { align-self: stretch; }
.self-baseline { align-self: baseline; }
/* Gap */
.gap-0 { gap: 0; }
.gap-1 { gap: var(--space-xs); }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: var(--space-md); }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: var(--space-lg); }
.gap-8 { gap: var(--space-xl); }
.gap-x-0 { column-gap: 0; }
.gap-x-1 { column-gap: var(--space-xs); }
.gap-x-2 { column-gap: var(--space-sm); }
.gap-x-3 { column-gap: 0.75rem; }
.gap-x-4 { column-gap: var(--space-md); }
.gap-x-6 { column-gap: var(--space-lg); }
.gap-x-8 { column-gap: var(--space-xl); }
.gap-y-0 { row-gap: 0; }
.gap-y-1 { row-gap: var(--space-xs); }
.gap-y-2 { row-gap: var(--space-sm); }
.gap-y-3 { row-gap: 0.75rem; }
.gap-y-4 { row-gap: var(--space-md); }
.gap-y-6 { row-gap: var(--space-lg); }
.gap-y-8 { row-gap: var(--space-xl); }
/* Order */
.order-1 { order: 1; }
.order-2 { order: 2; }
.order-3 { order: 3; }
.order-4 { order: 4; }
.order-5 { order: 5; }
.order-6 { order: 6; }
.order-7 { order: 7; }
.order-8 { order: 8; }
.order-9 { order: 9; }
.order-10 { order: 10; }
.order-11 { order: 11; }
.order-12 { order: 12; }
.order-first { order: -9999; }
.order-last { order: 9999; }
.order-none { order: 0; }
/* Responsive Flex Utilities */
@media (max-width: 480px) {
.mobile-flex { display: flex; }
.mobile-flex-col { flex-direction: column; }
.mobile-flex-wrap { flex-wrap: wrap; }
.mobile-items-center { align-items: center; }
.mobile-items-start { align-items: flex-start; }
.mobile-items-stretch { align-items: stretch; }
.mobile-justify-center { justify-content: center; }
.mobile-justify-between { justify-content: space-between; }
}
@media (max-width: 768px) {
.tablet-flex { display: flex; }
.tablet-flex-col { flex-direction: column; }
.tablet-flex-wrap { flex-wrap: wrap; }
.tablet-items-center { align-items: center; }
.tablet-items-start { align-items: flex-start; }
.tablet-items-stretch { align-items: stretch; }
.tablet-justify-center { justify-content: center; }
.tablet-justify-between { justify-content: space-between; }
}
@media (min-width: 1024px) {
.desktop-flex { display: flex; }
.desktop-flex-row { flex-direction: row; }
.desktop-flex-nowrap { flex-wrap: nowrap; }
.desktop-items-center { align-items: center; }
.desktop-justify-start { justify-content: flex-start; }
}

View File

@@ -0,0 +1,206 @@
/* Spacing Utilities - ROA2WEB */
/* Margin Utilities */
.m-0 { margin: 0; }
.m-1 { margin: var(--space-xs); }
.m-2 { margin: var(--space-sm); }
.m-3 { margin: 0.75rem; }
.m-4 { margin: var(--space-md); }
.m-5 { margin: 1.25rem; }
.m-6 { margin: var(--space-lg); }
.m-8 { margin: var(--space-xl); }
.m-10 { margin: 2.5rem; }
.m-12 { margin: var(--space-3xl); }
.m-auto { margin: auto; }
/* Margin Top */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: var(--space-md); }
.mt-5 { margin-top: 1.25rem; }
.mt-6 { margin-top: var(--space-lg); }
.mt-8 { margin-top: var(--space-xl); }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: var(--space-3xl); }
.mt-auto { margin-top: auto; }
/* Margin Right */
.mr-0 { margin-right: 0; }
.mr-1 { margin-right: var(--space-xs); }
.mr-2 { margin-right: var(--space-sm); }
.mr-3 { margin-right: 0.75rem; }
.mr-4 { margin-right: var(--space-md); }
.mr-5 { margin-right: 1.25rem; }
.mr-6 { margin-right: var(--space-lg); }
.mr-8 { margin-right: var(--space-xl); }
.mr-10 { margin-right: 2.5rem; }
.mr-12 { margin-right: var(--space-3xl); }
.mr-auto { margin-right: auto; }
/* Margin Bottom */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: var(--space-md); }
.mb-5 { margin-bottom: 1.25rem; }
.mb-6 { margin-bottom: var(--space-lg); }
.mb-8 { margin-bottom: var(--space-xl); }
.mb-10 { margin-bottom: 2.5rem; }
.mb-12 { margin-bottom: var(--space-3xl); }
.mb-auto { margin-bottom: auto; }
/* Margin Left */
.ml-0 { margin-left: 0; }
.ml-1 { margin-left: var(--space-xs); }
.ml-2 { margin-left: var(--space-sm); }
.ml-3 { margin-left: 0.75rem; }
.ml-4 { margin-left: var(--space-md); }
.ml-5 { margin-left: 1.25rem; }
.ml-6 { margin-left: var(--space-lg); }
.ml-8 { margin-left: var(--space-xl); }
.ml-10 { margin-left: 2.5rem; }
.ml-12 { margin-left: var(--space-3xl); }
.ml-auto { margin-left: auto; }
/* Margin X (horizontal) */
.mx-0 { margin-left: 0; margin-right: 0; }
.mx-1 { margin-left: var(--space-xs); margin-right: var(--space-xs); }
.mx-2 { margin-left: var(--space-sm); margin-right: var(--space-sm); }
.mx-3 { margin-left: 0.75rem; margin-right: 0.75rem; }
.mx-4 { margin-left: var(--space-md); margin-right: var(--space-md); }
.mx-5 { margin-left: 1.25rem; margin-right: 1.25rem; }
.mx-6 { margin-left: var(--space-lg); margin-right: var(--space-lg); }
.mx-8 { margin-left: var(--space-xl); margin-right: var(--space-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
/* Margin Y (vertical) */
.my-0 { margin-top: 0; margin-bottom: 0; }
.my-1 { margin-top: var(--space-xs); margin-bottom: var(--space-xs); }
.my-2 { margin-top: var(--space-sm); margin-bottom: var(--space-sm); }
.my-3 { margin-top: 0.75rem; margin-bottom: 0.75rem; }
.my-4 { margin-top: var(--space-md); margin-bottom: var(--space-md); }
.my-5 { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.my-6 { margin-top: var(--space-lg); margin-bottom: var(--space-lg); }
.my-8 { margin-top: var(--space-xl); margin-bottom: var(--space-xl); }
.my-auto { margin-top: auto; margin-bottom: auto; }
/* Padding Utilities */
.p-0 { padding: 0; }
.p-1 { padding: var(--space-xs); }
.p-2 { padding: var(--space-sm); }
.p-3 { padding: 0.75rem; }
.p-4 { padding: var(--space-md); }
.p-5 { padding: 1.25rem; }
.p-6 { padding: var(--space-lg); }
.p-8 { padding: var(--space-xl); }
.p-10 { padding: 2.5rem; }
.p-12 { padding: var(--space-3xl); }
/* Padding Top */
.pt-0 { padding-top: 0; }
.pt-1 { padding-top: var(--space-xs); }
.pt-2 { padding-top: var(--space-sm); }
.pt-3 { padding-top: 0.75rem; }
.pt-4 { padding-top: var(--space-md); }
.pt-5 { padding-top: 1.25rem; }
.pt-6 { padding-top: var(--space-lg); }
.pt-8 { padding-top: var(--space-xl); }
.pt-10 { padding-top: 2.5rem; }
.pt-12 { padding-top: var(--space-3xl); }
/* Padding Right */
.pr-0 { padding-right: 0; }
.pr-1 { padding-right: var(--space-xs); }
.pr-2 { padding-right: var(--space-sm); }
.pr-3 { padding-right: 0.75rem; }
.pr-4 { padding-right: var(--space-md); }
.pr-5 { padding-right: 1.25rem; }
.pr-6 { padding-right: var(--space-lg); }
.pr-8 { padding-right: var(--space-xl); }
.pr-10 { padding-right: 2.5rem; }
.pr-12 { padding-right: var(--space-3xl); }
/* Padding Bottom */
.pb-0 { padding-bottom: 0; }
.pb-1 { padding-bottom: var(--space-xs); }
.pb-2 { padding-bottom: var(--space-sm); }
.pb-3 { padding-bottom: 0.75rem; }
.pb-4 { padding-bottom: var(--space-md); }
.pb-5 { padding-bottom: 1.25rem; }
.pb-6 { padding-bottom: var(--space-lg); }
.pb-8 { padding-bottom: var(--space-xl); }
.pb-10 { padding-bottom: 2.5rem; }
.pb-12 { padding-bottom: var(--space-3xl); }
/* Padding Left */
.pl-0 { padding-left: 0; }
.pl-1 { padding-left: var(--space-xs); }
.pl-2 { padding-left: var(--space-sm); }
.pl-3 { padding-left: 0.75rem; }
.pl-4 { padding-left: var(--space-md); }
.pl-5 { padding-left: 1.25rem; }
.pl-6 { padding-left: var(--space-lg); }
.pl-8 { padding-left: var(--space-xl); }
.pl-10 { padding-left: 2.5rem; }
.pl-12 { padding-left: var(--space-3xl); }
/* Padding X (horizontal) */
.px-0 { padding-left: 0; padding-right: 0; }
.px-1 { padding-left: var(--space-xs); padding-right: var(--space-xs); }
.px-2 { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: var(--space-md); padding-right: var(--space-md); }
.px-5 { padding-left: 1.25rem; padding-right: 1.25rem; }
.px-6 { padding-left: var(--space-lg); padding-right: var(--space-lg); }
.px-8 { padding-left: var(--space-xl); padding-right: var(--space-xl); }
/* Padding Y (vertical) */
.py-0 { padding-top: 0; padding-bottom: 0; }
.py-1 { padding-top: var(--space-xs); padding-bottom: var(--space-xs); }
.py-2 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-4 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.py-6 { padding-top: var(--space-lg); padding-bottom: var(--space-lg); }
.py-8 { padding-top: var(--space-xl); padding-bottom: var(--space-xl); }
/* Space Between (for flex containers) */
.space-x-1 > * + * { margin-left: var(--space-xs); }
.space-x-2 > * + * { margin-left: var(--space-sm); }
.space-x-3 > * + * { margin-left: 0.75rem; }
.space-x-4 > * + * { margin-left: var(--space-md); }
.space-x-6 > * + * { margin-left: var(--space-lg); }
.space-x-8 > * + * { margin-left: var(--space-xl); }
.space-y-1 > * + * { margin-top: var(--space-xs); }
.space-y-2 > * + * { margin-top: var(--space-sm); }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: var(--space-md); }
.space-y-6 > * + * { margin-top: var(--space-lg); }
.space-y-8 > * + * { margin-top: var(--space-xl); }
/* Mobile Spacing Adjustments */
@media (max-width: 768px) {
.m-4 { margin: var(--space-sm); }
.p-4 { padding: var(--space-sm); }
.mt-4 { margin-top: var(--space-sm); }
.mb-4 { margin-bottom: var(--space-sm); }
.pt-4 { padding-top: var(--space-sm); }
.pb-4 { padding-bottom: var(--space-sm); }
.px-4 { padding-left: var(--space-sm); padding-right: var(--space-sm); }
.py-4 { padding-top: var(--space-sm); padding-bottom: var(--space-sm); }
}
@media (max-width: 480px) {
.m-6 { margin: var(--space-md); }
.p-6 { padding: var(--space-md); }
.mt-6 { margin-top: var(--space-md); }
.mb-6 { margin-bottom: var(--space-md); }
.pt-6 { padding-top: var(--space-md); }
.pb-6 { padding-bottom: var(--space-md); }
.px-6 { padding-left: var(--space-md); padding-right: var(--space-md); }
.py-6 { padding-top: var(--space-md); padding-bottom: var(--space-md); }
}

View File

@@ -0,0 +1,137 @@
/* Text Utilities - ROA2WEB */
/* Text Alignment */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-justify { text-align: justify; }
/* Text Transform */
.uppercase { text-transform: uppercase; }
.lowercase { text-transform: lowercase; }
.capitalize { text-transform: capitalize; }
.normal-case { text-transform: none; }
/* Font Weight */
.font-thin { font-weight: 100; }
.font-extralight { font-weight: 200; }
.font-light { font-weight: var(--font-light); }
.font-normal { font-weight: var(--font-normal); }
.font-medium { font-weight: var(--font-medium); }
.font-semibold { font-weight: var(--font-semibold); }
.font-bold { font-weight: var(--font-bold); }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
/* Font Size */
.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }
/* Line Height */
.leading-none { line-height: 1; }
.leading-tight { line-height: var(--leading-tight); }
.leading-snug { line-height: 1.375; }
.leading-normal { line-height: var(--leading-normal); }
.leading-relaxed { line-height: 1.625; }
.leading-loose { line-height: var(--leading-loose); }
/* Letter Spacing */
.tracking-tighter { letter-spacing: -0.05em; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-normal { letter-spacing: 0em; }
.tracking-wide { letter-spacing: 0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
/* Text Color */
.text-inherit { color: inherit; }
.text-current { color: currentColor; }
.text-transparent { color: transparent; }
.text-primary { color: var(--color-primary); }
.text-secondary { color: var(--color-secondary); }
.text-success { color: var(--color-success); }
.text-warning { color: var(--color-warning); }
.text-error { color: var(--color-error); }
.text-info { color: var(--color-info); }
.text-muted { color: var(--color-text-muted); }
/* Text Decoration */
.underline { text-decoration: underline; }
.line-through { text-decoration: line-through; }
.no-underline { text-decoration: none; }
/* Text Overflow */
.truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.text-ellipsis {
text-overflow: ellipsis;
}
.text-clip {
text-overflow: clip;
}
/* White Space */
.whitespace-normal { white-space: normal; }
.whitespace-nowrap { white-space: nowrap; }
.whitespace-pre { white-space: pre; }
.whitespace-pre-line { white-space: pre-line; }
.whitespace-pre-wrap { white-space: pre-wrap; }
/* Word Break */
.break-normal {
overflow-wrap: normal;
word-break: normal;
}
.break-words {
overflow-wrap: break-word;
}
.break-all {
word-break: break-all;
}
/* Font Family */
.font-sans {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.font-serif {
font-family: Georgia, Cambria, "Times New Roman", Times, serif;
}
.font-mono {
font-family: var(--font-mono);
}
/* Responsive Text Utilities */
@media (max-width: 480px) {
.mobile-text-xs { font-size: var(--text-xs); }
.mobile-text-sm { font-size: var(--text-sm); }
.mobile-text-base { font-size: var(--text-base); }
.mobile-text-center { text-align: center; }
.mobile-text-left { text-align: left; }
}
@media (max-width: 768px) {
.tablet-text-xs { font-size: var(--text-xs); }
.tablet-text-sm { font-size: var(--text-sm); }
.tablet-text-center { text-align: center; }
.tablet-text-left { text-align: left; }
}
@media (min-width: 1024px) {
.desktop-text-lg { font-size: var(--text-lg); }
.desktop-text-xl { font-size: var(--text-xl); }
}