Files
Odoo-Modules/fusion_accounting_followup/static/src/scss/followup.scss
2026-04-19 21:17:18 -04:00

191 lines
5.5 KiB
SCSS

// Variables come from _variables.scss (loaded first in the asset bundle).
.o_fusion_followup {
background: $fu-bg-secondary;
min-height: 100vh;
&_header {
background: $fu-bg-primary;
border-bottom: 1px solid $fu-border;
padding: $fu-space-4 $fu-space-6;
display: flex;
justify-content: space-between;
align-items: center;
h1 { font-size: $fu-font-size-xl; margin: 0; }
.summary {
display: flex;
gap: $fu-space-6;
font-size: $fu-font-size-sm;
color: $fu-text-secondary;
.summary-value {
font-weight: 600;
color: $fu-text-primary;
margin-left: $fu-space-1;
}
}
}
&_card {
background: $fu-bg-primary;
border: 1px solid $fu-border;
border-radius: $fu-border-radius-md;
padding: $fu-space-4;
margin-bottom: $fu-space-3;
cursor: pointer;
transition: all 200ms ease-in-out;
&:hover {
border-color: $fu-accent;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
&.selected {
border-color: $fu-accent;
background: $fu-accent-bg;
}
&_header {
display: flex;
justify-content: space-between;
align-items: flex-start;
margin-bottom: $fu-space-2;
.partner-name {
font-weight: 600;
font-size: $fu-font-size-base;
}
}
.partner-numbers {
display: grid;
grid-template-columns: 1fr 1fr;
gap: $fu-space-2;
font-size: $fu-font-size-sm;
color: $fu-text-secondary;
.label { font-weight: 500; margin-right: $fu-space-2; }
.value { color: $fu-text-primary; font-weight: 500; }
}
}
.btn_fu {
padding: $fu-space-2 $fu-space-4;
border-radius: $fu-border-radius;
background: $fu-bg-primary;
border: 1px solid $fu-border;
color: $fu-text-primary;
font-size: $fu-font-size-sm;
cursor: pointer;
&:hover { background: $fu-bg-tertiary; }
&.primary { background: $fu-accent; border-color: $fu-accent; color: white;
&:hover { background: darken($fu-accent, 8%); } }
&.danger { background: $fu-status-blocked; border-color: $fu-status-blocked; color: white; }
}
}
.fu-status-badge {
padding: $fu-space-1 $fu-space-2;
border-radius: $fu-border-radius;
font-size: $fu-font-size-xs;
font-weight: 500;
text-transform: uppercase;
&[data-status="no_action"] { background: lighten($fu-status-no-action, 40%); color: $fu-status-no-action; }
&[data-status="action_due"] { background: lighten($fu-status-action-due, 35%); color: $fu-status-action-due; }
&[data-status="paused"] { background: lighten($fu-status-paused, 35%); color: $fu-status-paused; }
&[data-status="blocked"] { background: lighten($fu-status-blocked, 35%); color: $fu-status-blocked; }
&[data-status="with_credit_team"] { background: lighten($fu-status-with-credit, 35%); color: $fu-status-with-credit; }
}
.fu-risk-badge {
display: inline-flex;
align-items: center;
padding: $fu-space-1 $fu-space-2;
border-radius: $fu-border-radius;
font-weight: 600;
font-size: $fu-font-size-xs;
&[data-band="low"] { background: $fu-risk-low-bg; color: $fu-risk-low; }
&[data-band="medium"] { background: $fu-risk-medium-bg; color: $fu-risk-medium; }
&[data-band="high"] { background: $fu-risk-high-bg; color: $fu-risk-high; }
&[data-band="critical"] { background: $fu-risk-critical-bg; color: $fu-risk-critical; font-weight: 700; }
}
.fu-aging-strip {
display: flex;
gap: 2px;
height: 8px;
border-radius: $fu-border-radius;
overflow: hidden;
margin: $fu-space-2 0;
.bucket {
height: 100%;
&[data-name="current"] { background: $fu-bucket-current; }
&[data-name="1_30"] { background: $fu-bucket-1-30; }
&[data-name="31_60"] { background: $fu-bucket-31-60; }
&[data-name="61_90"] { background: $fu-bucket-61-90; }
&[data-name="91_120"] { background: $fu-bucket-91-120; }
&[data-name="120_plus"] { background: $fu-bucket-120-plus; }
}
}
.fu-ai-text-panel {
background: $fu-bg-primary;
border: 1px solid $fu-border;
border-radius: $fu-border-radius-md;
padding: $fu-space-4;
h5 { margin: 0 0 $fu-space-2; font-size: $fu-font-size-base; }
.ai-subject {
font-weight: 600;
margin-bottom: $fu-space-2;
padding: $fu-space-2;
background: $fu-accent-bg;
border-radius: $fu-border-radius;
}
.ai-body {
white-space: pre-wrap;
font-family: monospace;
font-size: $fu-font-size-sm;
padding: $fu-space-3;
background: $fu-bg-secondary;
border-radius: $fu-border-radius;
max-height: 300px;
overflow-y: auto;
}
.key-points {
margin-top: $fu-space-3;
font-size: $fu-font-size-sm;
color: $fu-text-secondary;
ul { margin: 0; padding-left: $fu-space-4; }
}
}
.fu-history-table {
width: 100%;
font-size: $fu-font-size-sm;
th {
background: $fu-bg-tertiary;
padding: $fu-space-2 $fu-space-3;
text-align: left;
font-weight: 600;
color: $fu-text-secondary;
}
td {
padding: $fu-space-2 $fu-space-3;
border-bottom: 1px solid lighten($fu-border, 5%);
}
}