website/hub/services/static/css/roi-calculator.css

498 lines
No EOL
8.7 KiB
CSS

.calculator-section {
background: #f8f9fa;
border-radius: 10px;
padding: 1.5rem;
margin-bottom: 1.5rem;
}
.input-group-custom {
margin-bottom: 1rem;
position: relative;
/* Ensure proper stacking context */
}
.input-group-custom label {
font-weight: 600;
margin-bottom: 0.5rem;
display: block;
}
/* Ensure input groups don't interfere with tooltips */
.input-group {
position: relative;
z-index: 1;
}
.slider-container {
position: relative;
margin: 10px 0;
}
.slider {
width: 100%;
height: 8px;
border-radius: 5px;
background: #ddd;
outline: none;
-webkit-appearance: none;
}
.slider::-webkit-slider-thumb {
-webkit-appearance: none;
appearance: none;
width: 20px;
height: 20px;
border-radius: 50%;
background: #007bff;
cursor: pointer;
}
.slider::-moz-range-thumb {
width: 20px;
height: 20px;
border-radius: 50%;
background: #007bff;
cursor: pointer;
border: none;
}
.scenario-card {
border: 2px solid #e9ecef;
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
transition: all 0.3s ease;
}
.scenario-card.active {
border-color: #007bff;
background-color: #f8f9ff;
}
.scenario-card.disabled {
opacity: 0.6;
background-color: #f8f9fa;
}
.metric-card {
background: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 1rem;
}
.metric-value {
font-size: 1.6rem;
font-weight: bold;
color: #007bff;
line-height: 1.2;
word-break: break-word;
overflow-wrap: break-word;
}
.metric-label {
color: #6c757d;
font-size: 0.9rem;
text-transform: uppercase;
letter-spacing: 0.5px;
margin-top: 0.5rem;
}
.chart-container {
position: relative;
background: white;
border-radius: 8px;
padding: 1.5rem;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 1.5rem;
}
/* Enhanced chart sizing for new layout */
.chart-container canvas {
max-height: 400px;
}
/* Full-width chart containers */
.card-body canvas {
width: 100% !important;
}
/* Primary chart gets extra height */
#instanceGrowthChart {
height: 500px !important;
}
/* Secondary charts get good height */
#revenueChart, #cashFlowChart, #modelComparisonChart {
height: 400px !important;
}
/* Enhanced layout styles for new design */
.sticky-top {
z-index: 1020;
}
.card {
transition: box-shadow 0.15s ease-in-out;
}
.card:hover {
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}
/* Compact header controls */
.form-range {
height: 4px;
}
.input-group-sm .form-control,
.form-select-sm,
.btn-sm {
font-size: 0.825rem;
}
/* Clean chart headers */
.card-header {
background: white !important;
border: none !important;
padding-bottom: 0.5rem;
}
.card-body {
padding: 1.5rem;
}
/* Responsive chart heights */
@media (max-width: 768px) {
#instanceGrowthChart {
height: 350px !important;
}
#revenueChart, #cashFlowChart, #modelComparisonChart {
height: 300px !important;
}
.card-body {
padding: 1rem;
}
}
@media (max-width: 576px) {
#instanceGrowthChart {
height: 250px !important;
}
#revenueChart, #cashFlowChart, #modelComparisonChart {
height: 200px !important;
}
}
/* Manual collapse functionality */
.collapse {
display: none;
}
.collapse.show {
display: block;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
transition: height 0.35s ease;
}
.export-buttons {
position: sticky;
top: 20px;
background: white;
padding: 1rem;
border-radius: 8px;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
margin-bottom: 1rem;
}
.collapsible-section {
border: 1px solid #e9ecef;
border-radius: 8px;
margin-bottom: 1rem;
}
.collapsible-header {
background: #f8f9fa;
padding: 1rem;
cursor: pointer;
border-radius: 8px 8px 0 0;
transition: background-color 0.3s ease;
}
.collapsible-header:hover {
background: #e9ecef;
}
.collapsible-content {
padding: 1rem;
display: none;
}
.collapsible-content.show {
display: block;
}
.phase-settings {
background: #f8f9fa;
border-radius: 6px;
padding: 1rem;
margin-bottom: 1rem;
}
.currency-symbol {
font-weight: bold;
color: #28a745;
}
.loading-spinner {
display: none;
text-align: center;
padding: 2rem;
}
.help-content {
background: #f8f9fa;
border-radius: 6px;
padding: 1rem;
}
.help-content h6 {
margin-bottom: 0.5rem;
font-weight: 600;
}
.help-content p {
margin-bottom: 0.75rem;
line-height: 1.4;
}
.help-content p:last-child {
margin-bottom: 0;
}
/* Bootstrap tooltip styling improvements */
.tooltip {
font-size: 0.875rem;
font-family: inherit;
z-index: 9999 !important;
/* Ensure tooltips appear above all other elements */
pointer-events: none;
/* Prevent tooltip from interfering with mouse events */
}
.tooltip .tooltip-inner {
max-width: 250px;
padding: 0.5rem 0.75rem;
color: #fff;
background-color: #212529;
border-radius: 6px;
box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
border: 1px solid rgba(255, 255, 255, 0.1);
}
.tooltip .tooltip-arrow {
filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
}
.tooltip.bs-tooltip-top .tooltip-arrow::before {
border-top-color: #212529;
}
.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
border-bottom-color: #212529;
}
.tooltip.bs-tooltip-start .tooltip-arrow::before {
border-left-color: #212529;
}
.tooltip.bs-tooltip-end .tooltip-arrow::before {
border-right-color: #212529;
}
/* Enhanced cursor for tooltip elements */
[data-bs-toggle="tooltip"] {
cursor: help;
position: relative;
}
[data-bs-toggle="tooltip"]:hover {
opacity: 0.8;
}
@media (max-width: 768px) {
.chart-container {
height: 300px;
}
.metric-value {
font-size: 1.4rem;
}
.metric-card {
padding: 1rem;
}
}
@media (max-width: 576px) {
.metric-value {
font-size: 1.2rem;
}
.metric-card {
padding: 0.75rem;
margin-bottom: 0.75rem;
}
}
/* Clean Dual Model Layout */
.model-comparison-indicator {
font-size: 1.2rem;
color: #6c757d;
}
/* Scenario selection enhancements */
.form-check {
margin-bottom: 0.25rem;
}
.form-check-label {
cursor: pointer;
user-select: none;
}
.form-check-input:checked {
background-color: #0d6efd;
border-color: #0d6efd;
}
/* Model result boxes */
.model-result-box {
transition: all 0.2s ease;
background: #fafafa;
}
.model-result-box:hover {
background: #f0f0f0;
transform: translateY(-1px);
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
/* Model comparison box */
.model-comparison-box {
border: 1px solid #dee2e6;
transition: all 0.2s ease;
}
.model-comparison-box:hover {
border-color: #adb5bd;
background-color: #f8f9fa !important;
}
/* Control section styling */
.controls-section {
background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
border-radius: 8px;
padding: 1rem;
}
/* Enhanced form controls */
.form-range {
height: 4px;
margin-top: 0.5rem;
}
.form-range::-webkit-slider-thumb {
background: #0d6efd;
border: 2px solid #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.form-range::-moz-range-thumb {
background: #0d6efd;
border: 2px solid #fff;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* Button group styling */
.btn-group-enhanced .btn {
border-radius: 4px;
margin-right: 0.25rem;
}
.btn-group-enhanced .btn:last-child {
margin-right: 0;
}
/* Responsive adjustments */
@media (max-width: 768px) {
.controls-section {
padding: 0.75rem;
}
.model-result-box {
margin-bottom: 1rem;
}
}
/* Enhanced table styling for financial analysis */
.table-hover tbody tr:hover {
background-color: rgba(0, 0, 0, 0.05);
}
.table-success {
--bs-table-bg: rgba(40, 167, 69, 0.1);
}
.table-warning {
--bs-table-bg: rgba(255, 193, 7, 0.1);
}
/* Tab styling improvements */
.nav-tabs .nav-link {
border: 1px solid transparent;
border-top-left-radius: 0.375rem;
border-top-right-radius: 0.375rem;
}
.nav-tabs .nav-link.active {
color: #495057;
background-color: #fff;
border-color: #dee2e6 #dee2e6 #fff;
}
.nav-tabs .nav-link:hover:not(.active) {
border-color: #e9ecef #e9ecef #dee2e6;
isolation: isolate;
}
/* Table cell improvements */
.table td {
vertical-align: middle;
}
.table th {
border-top: none;
font-weight: 600;
font-size: 0.875rem;
}
/* Better responsive tables */
@media (max-width: 768px) {
.table-responsive {
font-size: 0.8rem;
}
.table th, .table td {
padding: 0.5rem 0.25rem;
}
}