:root {
--navy-900: #071428;
--navy-800: #0B1F3A;
--navy-700: #0F2546;
--navy-600: #122A4D;
--navy-500: #183561;
--border: #1F3A63;
--border-soft: rgba(31, 58, 99, 0.6);
--gold: #C9A227;
--gold-light: #E8CB6B;
--gold-dark: #9A7B1A;
--cream: #F7F2E6;
--muted: #8FA3BF;
--muted-2: #5F7592;
--green: #2E9E6B;
--red: #D64545;
--amber: #E09F1F;
--blue: #3B82F6;
--purple: #8B5CF6;
--text: var(--cream);
--bg: var(--navy-900);
--surface: var(--navy-800);
--surface-2: var(--navy-700);
--surface-3: var(--navy-600);
--radius: 18px;
--radius-sm: 12px;
--radius-xs: 8px;
--shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
--shadow-soft: 0 4px 14px rgba(0, 0, 0, 0.25);
--gold-glow: 0 0 0 3px rgba(201, 162, 39, 0.25);
--font: 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
--sidebar-w: 264px;
--bottom-nav-h: 68px;
--ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-size: 16px;
-webkit-text-size-adjust: 100%;
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: var(--font);
color: var(--text);
background:
radial-gradient(1200px 500px at 85% -10%, rgba(201, 162, 39, 0.10), transparent 60%),
radial-gradient(900px 400px at 10% 110%, rgba(59, 130, 246, 0.08), transparent 60%),
var(--bg);
min-height: 100vh;
line-height: 1.55;
}
.sprite {
position: absolute;
width: 0;
height: 0;
overflow: hidden;
}
.icon {
width: 20px;
height: 20px;
fill: none;
stroke: currentColor;
stroke-width: 1.75;
stroke-linecap: round;
stroke-linejoin: round;
flex-shrink: 0;
vertical-align: middle;
transition: transform 0.25s var(--ease);
}
.skip-link {
position: absolute;
top: -60px;
right: 16px;
z-index: 100;
background: var(--gold);
color: var(--navy-900);
padding: 10px 16px;
border-radius: var(--radius-xs);
font-weight: 700;
}
.skip-link:focus {
top: 12px;
}
.visually-hidden {
position: absolute !important;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0 0 0 0);
white-space: nowrap;
border: 0;
}
.app {
display: flex;
min-height: 100vh;
}
.sidebar {
width: var(--sidebar-w);
flex-shrink: 0;
position: sticky;
top: 0;
height: 100vh;
display: flex;
flex-direction: column;
gap: 18px;
padding: 22px 18px;
background: linear-gradient(180deg, var(--navy-800), var(--navy-900));
border-left: 1px solid var(--border);
}
.brand {
display: flex;
align-items: center;
gap: 12px;
text-decoration: none;
color: var(--text);
padding: 6px 8px;
}
.brand-mark {
width: 48px;
height: 48px;
border-radius: 14px;
display: grid;
place-items: center;
background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
color: var(--navy-900);
box-shadow: 0 8px 20px rgba(201, 162, 39, 0.35);
}
.brand-text {
display: flex;
flex-direction: column;
}
.brand-name {
font-size: 1.35rem;
font-weight: 800;
letter-spacing: 0.3px;
color: var(--gold-light);
}
.brand-sub {
font-size: 0.8rem;
color: var(--muted);
}
.side-nav {
flex: 1;
}
#nav {
display: flex;
flex-direction: column;
gap: 4px;
}
#nav a,
.sheet-panel a {
display: flex;
align-items: center;
gap: 12px;
padding: 11px 14px;
border-radius: var(--radius-sm);
color: var(--muted);
text-decoration: none;
font-weight: 500;
border: 1px solid transparent;
transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
#nav a:hover,
.sheet-panel a:hover {
background: var(--surface-2);
color: var(--text);
}
#nav a:hover .icon {
transform: translateX(-2px) scale(1.08);
}
#nav a[aria-current="page"],
.sheet-panel a[aria-current="page"] {
background: linear-gradient(90deg, rgba(201, 162, 39, 0.18), rgba(201, 162, 39, 0.04));
color: var(--gold-light);
border-color: rgba(201, 162, 39, 0.35);
font-weight: 700;
}
.side-note {
font-size: 0.78rem;
color: var(--muted-2);
margin: 0;
padding: 12px;
border-radius: var(--radius-sm);
background: rgba(255, 255, 255, 0.02);
border: 1px dashed var(--border);
}
.main-col {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
}
.topbar {
position: sticky;
top: 0;
z-index: 20;
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
padding: 14px 28px;
background: rgba(7, 20, 40, 0.82);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border-bottom: 1px solid var(--border-soft);
}
.topbar h1 {
margin: 0;
font-size: 1.45rem;
font-weight: 800;
}
.topbar-sub {
margin: 0;
font-size: 0.85rem;
color: var(--muted);
}
.topbar-tools {
display: flex;
align-items: center;
gap: 14px;
}
.today {
margin: 0;
font-size: 0.85rem;
color: var(--muted);
padding: 8px 14px;
border-radius: 999px;
border: 1px solid var(--border);
background: var(--surface);
white-space: nowrap;
}
.icon-btn {
position: relative;
width: 42px;
height: 42px;
border-radius: 12px;
display: grid;
place-items: center;
color: var(--gold-light);
background: var(--surface);
border: 1px solid var(--border);
text-decoration: none;
transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease);
}
.icon-btn:hover {
transform: translateY(-2px);
box-shadow: var(--shadow-soft);
background: var(--surface-2);
}
.icon-btn:hover .icon {
transform: rotate(-12deg);
}
.icon-badge {
position: absolute;
top: -6px;
left: -6px;
min-width: 20px;
height: 20px;
padding: 0 6px;
border-radius: 999px;
background: var(--red);
color: #fff;
font-size: 0.72rem;
font-weight: 700;
display: grid;
place-items: center;
border: 2px solid var(--navy-900);
}
.icon-badge[hidden] {
display: none;
}
main {
padding: 24px 28px 48px;
display: flex;
flex-direction: column;
gap: 20px;
outline: none;
}
.view {
display: flex;
flex-direction: column;
gap: 20px;
animation: view-in 0.35s var(--ease);
}
.view[hidden] {
display: none;
}
@keyframes view-in {
from {
opacity: 0;
transform: translateY(8px);
}
to {
opacity: 1;
transform: none;
}
}
.note {
margin: 0;
padding: 12px 16px;
border-radius: var(--radius-sm);
background: rgba(201, 162, 39, 0.08);
border: 1px solid rgba(201, 162, 39, 0.3);
color: var(--gold-light);
font-size: 0.9rem;
}
.card {
background: linear-gradient(160deg, var(--surface), var(--surface-2));
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 20px 22px;
box-shadow: var(--shadow-soft);
display: flex;
flex-direction: column;
gap: 14px;
min-width: 0;
}
.card > p {
margin: 0;
color: var(--muted);
font-size: 0.92rem;
}
.card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 12px;
}
.card-head > div {
min-width: 0;
}
.card-title {
margin: 0;
font-size: 1.05rem;
font-weight: 700;
color: var(--text);
display: flex;
align-items: center;
gap: 8px;
}
.card-title .icon {
color: var(--gold);
}
.card-sub {
margin: 2px 0 0;
font-size: 0.82rem;
color: var(--muted);
}
details.form-card > summary {
cursor: pointer;
list-style: none;
user-select: none;
display: flex;
align-items: center;
gap: 8px;
}
details.form-card > summary::-webkit-details-marker {
display: none;
}
details.form-card > summary::after {
content: '';
margin-right: auto;
width: 9px;
height: 9px;
border-left: 2px solid var(--gold);
border-bottom: 2px solid var(--gold);
transform: rotate(-45deg);
transition: transform 0.25s var(--ease);
}
details.form-card[open] > summary::after {
transform: rotate(135deg);
}
.grid-2,
.grid-3,
.dash-grid {
display: grid;
gap: 20px;
}
.grid-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-grid {
grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}
.kpis {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 14px;
}
.kpis-5 {
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.kpi {
position: relative;
overflow: hidden;
background: linear-gradient(160deg, var(--surface), var(--surface-2));
border: 1px solid var(--border);
border-radius: var(--radius);
padding: 16px 18px;
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.kpi::before {
content: '';
position: absolute;
inset: 0 0 auto;
height: 3px;
background: linear-gradient(90deg, var(--gold-light), var(--gold-dark));
opacity: 0.8;
}
.kpi-amber::before {
background: linear-gradient(90deg, #F4C867, var(--amber));
}
.kpi-green::before {
background: linear-gradient(90deg, #5FD39B, var(--green));
}
.kpi-red::before {
background: linear-gradient(90deg, #F28B8B, var(--red));
}
.kpi:hover {
transform: translateY(-3px);
box-shadow: var(--shadow);
border-color: rgba(201, 162, 39, 0.45);
}
.kpi:hover .icon-tile .icon {
transform: scale(1.15) rotate(-6deg);
}
.kpi-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
}
.kpi-label {
font-size: 0.85rem;
color: var(--muted);
font-weight: 500;
}
.kpi-value {
font-size: 1.75rem;
font-weight: 800;
color: var(--gold-light);
line-height: 1.2;
font-variant-numeric: tabular-nums;
word-break: break-word;
}
.kpi-amber .kpi-value {
color: #F4C867;
}
.kpi-green .kpi-value {
color: #5FD39B;
}
.kpi-red .kpi-value {
color: #F28B8B;
}
.kpi-hint {
font-size: 0.78rem;
color: var(--muted-2);
}
.icon-tile {
--tile: 40px;
width: var(--tile);
height: var(--tile);
border-radius: calc(var(--tile) * 0.3);
display: inline-grid;
place-items: center;
flex-shrink: 0;
color: var(--gold-light);
background: rgba(201, 162, 39, 0.14);
border: 1px solid rgba(201, 162, 39, 0.3);
}
.icon-tile.tone-red {
color: #F28B8B;
background: rgba(214, 69, 69, 0.16);
border-color: rgba(214, 69, 69, 0.4);
}
.icon-tile.tone-amber {
color: #F4C867;
background: rgba(224, 159, 31, 0.16);
border-color: rgba(224, 159, 31, 0.4);
}
.icon-tile.tone-green {
color: #5FD39B;
background: rgba(46, 158, 107, 0.16);
border-color: rgba(46, 158, 107, 0.4);
}
.icon-tile.tone-blue {
color: #8AB4FF;
background: rgba(59, 130, 246, 0.16);
border-color: rgba(59, 130, 246, 0.4);
}
.icon-tile.tone-purple {
color: #B79BFF;
background: rgba(139, 92, 246, 0.16);
border-color: rgba(139, 92, 246, 0.4);
}
.icon-tile.tone-muted,
.icon-tile.tone-navy {
color: var(--muted);
background: rgba(143, 163, 191, 0.12);
border-color: rgba(143, 163, 191, 0.3);
}
.pill {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 3px 10px 3px 12px;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 700;
white-space: nowrap;
border: 1px solid;
line-height: 1.5;
}
.pill-dot {
width: 7px;
height: 7px;
border-radius: 50%;
background: currentColor;
}
.pill.tone-gold {
color: var(--gold-light);
background: rgba(201, 162, 39, 0.14);
border-color: rgba(201, 162, 39, 0.4);
}
.pill.tone-green {
color: #5FD39B;
background: rgba(46, 158, 107, 0.14);
border-color: rgba(46, 158, 107, 0.4);
}
.pill.tone-red {
color: #F28B8B;
background: rgba(214, 69, 69, 0.14);
border-color: rgba(214, 69, 69, 0.4);
}
.pill.tone-amber {
color: #F4C867;
background: rgba(224, 159, 31, 0.16);
border-color: rgba(224, 159, 31, 0.45);
}
.pill.tone-blue {
color: #8AB4FF;
background: rgba(59, 130, 246, 0.14);
border-color: rgba(59, 130, 246, 0.4);
}
.pill.tone-purple {
color: #B79BFF;
background: rgba(139, 92, 246, 0.14);
border-color: rgba(139, 92, 246, 0.4);
}
.pill.tone-navy,
.pill.tone-muted {
color: var(--muted);
background: rgba(143, 163, 191, 0.1);
border-color: rgba(143, 163, 191, 0.3);
}
.pill-pulse .pill-dot {
animation: pulse 1.6s infinite;
}
@keyframes pulse {
0% {
box-shadow: 0 0 0 0 rgba(244, 200, 103, 0.6);
}
70% {
box-shadow: 0 0 0 7px rgba(244, 200, 103, 0);
}
100% {
box-shadow: 0 0 0 0 rgba(244, 200, 103, 0);
}
}
.badge {
display: inline-block;
padding: 2px 10px;
border-radius: 999px;
font-size: 0.78rem;
font-weight: 700;
border: 1px solid;
white-space: nowrap;
}
.badge-green {
color: #5FD39B;
background: rgba(46, 158, 107, 0.14);
border-color: rgba(46, 158, 107, 0.4);
}
.badge-yellow {
color: #F4C867;
background: rgba(224, 159, 31, 0.16);
border-color: rgba(224, 159, 31, 0.45);
}
.badge-red {
color: #F28B8B;
background: rgba(214, 69, 69, 0.14);
border-color: rgba(214, 69, 69, 0.4);
}
.badge-neutral {
color: var(--muted);
background: rgba(143, 163, 191, 0.1);
border-color: rgba(143, 163, 191, 0.3);
}
.form-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
gap: 14px 16px;
}
.form-grid-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.field {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.field-wide,
.form-grid > .preview,
.form-grid > .form-actions {
grid-column: 1 / -1;
}
label {
font-size: 0.86rem;
color: var(--muted);
font-weight: 500;
}
.req {
color: var(--gold);
}
input,
select,
textarea,
button {
font-family: inherit;
font-size: 1rem;
}
input:not([type="file"]):not([type="checkbox"]):not([type="radio"]),
select,
textarea {
width: 100%;
background: var(--navy-900);
color: var(--text);
border: 1px solid var(--border);
border-radius: var(--radius-sm);
padding: 10px 12px;
min-height: 44px;
transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
textarea {
resize: vertical;
min-height: 64px;
}
select {
appearance: none;
-webkit-appearance: none;
background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
background-position: 12px calc(50% + 1px), 17px calc(50% + 1px);
background-size: 5px 5px, 5px 5px;
background-repeat: no-repeat;
padding-left: 30px;
}
select option {
background: var(--navy-800);
color: var(--text);
}
input[type="date"] {
direction: ltr;
text-align: right;
color-scheme: dark;
}
input[type="number"],
input[type="search"] {
direction: ltr;
text-align: right;
}
input[type="file"] {
color: var(--muted);
font-size: 0.9rem;
padding: 8px 0;
}
input[type="file"]::file-selector-button {
font-family: inherit;
background: var(--surface-3);
color: var(--text);
border: 1px solid var(--border);
border-radius: var(--radius-xs);
padding: 8px 12px;
margin-left: 10px;
cursor: pointer;
}
input[aria-invalid="true"] {
border-color: var(--red);
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
outline: none;
box-shadow: var(--gold-glow);
border-color: var(--gold);
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
outline: 2px solid var(--gold);
outline-offset: 2px;
}
.muted {
color: var(--muted);
}
.hint {
margin: 0;
font-size: 0.8rem;
color: var(--muted-2);
}
.field-error {
color: #F28B8B;
font-size: 0.82rem;
margin: 0;
}
.preview {
margin: 0;
color: var(--gold-light);
font-size: 0.92rem;
min-height: 1.4em;
}
.preview-box {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
gap: 10px;
padding: 12px 14px;
border-radius: var(--radius-sm);
background: rgba(201, 162, 39, 0.06);
border: 1px solid rgba(201, 162, 39, 0.25);
}
.preview-row {
display: flex;
justify-content: space-between;
gap: 8px;
font-size: 0.9rem;
}
.preview-row span:last-child {
font-weight: 700;
color: var(--gold-light);
}
.form-actions {
display: flex;
justify-content: flex-start;
gap: 10px;
flex-wrap: wrap;
margin-top: 4px;
}
.btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
padding: 10px 18px;
border-radius: var(--radius-sm);
border: 1px solid transparent;
font-weight: 700;
cursor: pointer;
text-decoration: none;
min-height: 44px;
transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), filter 0.18s var(--ease);
}
.btn:active {
transform: scale(0.97);
}
.btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.btn-primary {
background: linear-gradient(135deg, var(--gold-light), var(--gold));
color: var(--navy-900);
box-shadow: 0 6px 18px rgba(201, 162, 39, 0.3);
}
.btn-primary:hover {
filter: brightness(1.07);
transform: translateY(-1px);
box-shadow: 0 10px 24px rgba(201, 162, 39, 0.4);
}
.btn-secondary {
background: var(--surface-3);
color: var(--text);
border-color: var(--border);
}
.btn-secondary:hover {
background: var(--navy-500);
border-color: rgba(201, 162, 39, 0.4);
}
.btn-danger {
background: rgba(214, 69, 69, 0.14);
color: #F28B8B;
border-color: rgba(214, 69, 69, 0.45);
}
.btn-danger:hover {
background: rgba(214, 69, 69, 0.26);
}
.btn-small {
padding: 6px 12px;
min-height: 34px;
font-size: 0.85rem;
border-radius: var(--radius-xs);
}
.btn-block {
width: 100%;
}
.btn-ghost {
background: transparent;
color: var(--gold-light);
border-color: rgba(201, 162, 39, 0.35);
}
.btn-ghost:hover {
background: rgba(201, 162, 39, 0.1);
}
.link-btn {
background: none;
border: none;
padding: 0;
color: var(--gold-light);
font-weight: 700;
cursor: pointer;
text-decoration: underline dotted;
text-underline-offset: 3px;
}
.link-btn:hover {
color: #fff;
}
a {
color: var(--gold-light);
}
.toolbar {
display: flex;
align-items: flex-end;
gap: 12px;
flex-wrap: wrap;
}
.toolbar .field {
min-width: 170px;
}
.field-search {
flex: 1 1 260px;
}
.search-wrap {
position: relative;
display: block;
}
.search-wrap .icon {
position: absolute;
right: 12px;
top: 50%;
transform: translateY(-50%);
color: var(--muted);
pointer-events: none;
}
.search-wrap input {
padding-right: 40px;
}
.toolbar-count {
margin: 0 auto 10px 0;
font-size: 0.85rem;
color: var(--muted);
font-weight: 500;
}
.table-wrap {
overflow-x: auto;
border-radius: var(--radius-sm);
border: 1px solid var(--border);
-webkit-overflow-scrolling: touch;
}
table {
width: 100%;
border-collapse: collapse;
font-size: 0.92rem;
min-width: 480px;
}
td,
th {
padding: 11px 12px;
text-align: right;
vertical-align: middle;
border-bottom: 1px solid var(--border-soft);
}
thead th {
background: var(--navy-900);
color: var(--muted);
font-weight: 700;
font-size: 0.8rem;
white-space: nowrap;
position: sticky;
top: 0;
}
tbody tr {
transition: background 0.15s var(--ease);
}
tbody tr:hover {
background: rgba(201, 162, 39, 0.06);
}
tbody tr:last-child td {
border-bottom: none;
}
tfoot .totals-row td {
font-weight: 800;
color: var(--gold-light);
background: var(--navy-900);
}
.wrap-cell {
white-space: normal;
min-width: 160px;
color: var(--muted);
}
.nowrap-cell {
white-space: nowrap;
}
.empty-row td {
text-align: center;
color: var(--muted);
padding: 28px 12px;
}
.row-inactive {
opacity: 0.55;
}
.positive {
color: #5FD39B;
font-weight: 700;
}
.negative {
color: #F28B8B;
font-weight: 700;
}
.actions {
white-space: nowrap;
}
.actions .btn + .btn {
margin-right: 6px;
}
.inline-select,
.cell-input {
min-height: 36px !important;
padding: 4px 8px !important;
font-size: 0.88rem;
min-width: 120px;
}
.cell-input {
max-width: 110px;
direction: ltr;
text-align: right;
}
.thumb {
width: 44px;
height: 44px;
border-radius: 12px;
object-fit: cover;
display: inline-grid;
place-items: center;
background: var(--navy-900);
border: 1px solid var(--border);
color: var(--muted-2);
}
.alerts {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.alerts .empty {
color: var(--muted);
padding: 20px;
text-align: center;
border: 1px dashed var(--border);
border-radius: var(--radius-sm);
}
.alert {
display: flex;
align-items: center;
gap: 12px;
padding: 12px 14px;
border-radius: var(--radius-sm);
background: var(--navy-900);
border: 1px solid var(--border);
border-right-width: 4px;
transition: transform 0.2s var(--ease);
}
.alert:hover {
transform: translateX(-3px);
}
.alert-danger {
border-right-color: var(--red);
}
.alert-warning {
border-right-color: var(--amber);
}
.alert-info {
border-right-color: var(--blue);
}
.alert-body {
flex: 1;
min-width: 0;
display: flex;
flex-direction: column;
gap: 2px;
}
.alert-text {
font-weight: 500;
}
.alert-detail {
font-size: 0.8rem;
color: var(--muted);
}
.alert-side {
display: flex;
align-items: center;
gap: 8px;
flex-shrink: 0;
}
.alert-link {
font-size: 0.85rem;
font-weight: 700;
color: var(--gold-light);
text-decoration: none;
padding: 6px 10px;
border-radius: var(--radius-xs);
border: 1px solid rgba(201, 162, 39, 0.35);
}
.alert-link:hover {
background: rgba(201, 162, 39, 0.12);
}
.donut-wrap {
display: flex;
align-items: center;
gap: 18px;
}
.donut {
width: 150px;
height: 150px;
flex-shrink: 0;
}
.donut-center {
font-size: 26px;
font-weight: 800;
fill: var(--gold-light);
}
.donut-center-sub {
font-size: 11px;
fill: var(--muted);
}
.legend {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
flex: 1;
}
.legend li {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
}
.legend-dot {
width: 10px;
height: 10px;
border-radius: 50%;
flex-shrink: 0;
}
.legend-count {
margin-right: auto;
font-weight: 800;
color: var(--text);
font-variant-numeric: tabular-nums;
}
.chart {
width: 100%;
height: auto;
display: block;
overflow: visible;
}
.chart-axis {
font-size: 11px;
fill: var(--muted);
}
.chart-grid {
stroke: var(--border);
stroke-dasharray: 3 4;
}
.chart-line {
fill: none;
stroke: var(--gold-light);
stroke-width: 2.5;
stroke-linecap: round;
stroke-linejoin: round;
}
.chart-area {
fill: url(#chart-fill);
opacity: 0.9;
}
.chart-point {
fill: var(--navy-900);
stroke: var(--gold-light);
stroke-width: 2.5;
}
.chart-value {
font-size: 11px;
font-weight: 700;
fill: var(--gold-light);
}
.chart-empty {
text-align: center;
color: var(--muted);
padding: 28px 12px;
border: 1px dashed var(--border);
border-radius: var(--radius-sm);
font-size: 0.9rem;
}
.plain-list {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 8px;
}
.plain-list li {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
border-radius: var(--radius-sm);
background: var(--navy-900);
border: 1px solid var(--border-soft);
}
.plain-list a {
text-decoration: none;
color: var(--text);
font-weight: 700;
}
.plain-list .meta {
font-size: 0.8rem;
color: var(--muted);
margin-right: auto;
white-space: nowrap;
}
.profile {
display: flex;
flex-direction: column;
gap: 20px;
}
.profile-hero {
display: grid;
grid-template-columns: 140px minmax(0, 1fr);
gap: 22px;
align-items: center;
background:
radial-gradient(500px 180px at 100% 0%, rgba(201, 162, 39, 0.16), transparent 70%),
linear-gradient(160deg, var(--surface), var(--surface-2));
}
.profile-avatar {
width: 140px;
height: 140px;
border-radius: 28px;
object-fit: cover;
border: 2px solid rgba(201, 162, 39, 0.5);
box-shadow: var(--shadow);
background: var(--navy-900);
display: grid;
place-items: center;
color: var(--muted-2);
}
.profile-main {
display: flex;
flex-direction: column;
gap: 10px;
min-width: 0;
}
.profile-top {
display: flex;
align-items: center;
gap: 12px;
flex-wrap: wrap;
}
.profile-num {
margin: 0;
font-size: 2rem;
font-weight: 800;
color: var(--gold-light);
line-height: 1.1;
}
.profile-meta {
margin: 0;
color: var(--muted);
font-size: 0.92rem;
}
.profile-actions {
display: flex;
gap: 8px;
flex-wrap: wrap;
}
.profile-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 20px;
}
.facts {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 10px;
margin: 0;
}
.facts div {
padding: 10px 12px;
border-radius: var(--radius-sm);
background: var(--navy-900);
border: 1px solid var(--border-soft);
}
.facts dt {
font-size: 0.76rem;
color: var(--muted);
}
.facts dd {
margin: 2px 0 0;
font-weight: 700;
}
.progress {
height: 12px;
border-radius: 999px;
background: var(--navy-900);
border: 1px solid var(--border);
overflow: hidden;
}
.progress-bar {
height: 100%;
border-radius: 999px;
background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
transition: width 0.6s var(--ease);
}
.progress-due .progress-bar {
background: linear-gradient(90deg, var(--amber), #F4C867);
}
.progress-labels {
display: flex;
justify-content: space-between;
font-size: 0.82rem;
color: var(--muted);
}
.big-number {
font-size: 2.2rem;
font-weight: 800;
color: var(--gold-light);
line-height: 1.1;
}
.checklist {
list-style: none;
margin: 0;
padding: 0;
display: flex;
flex-direction: column;
gap: 6px;
}
.checklist li {
display: flex;
align-items: center;
gap: 8px;
font-size: 0.9rem;
color: var(--muted);
}
.checklist li.done {
color: #5FD39B;
}
.checklist li.todo .icon {
color: var(--muted-2);
}
.gallery {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
gap: 10px;
}
.gallery figure {
margin: 0;
position: relative;
border-radius: var(--radius-sm);
overflow: hidden;
border: 1px solid var(--border);
background: var(--navy-900);
}
.gallery figure.main {
border-color: var(--gold);
box-shadow: var(--gold-glow);
}
.gallery img {
width: 100%;
aspect-ratio: 1;
object-fit: cover;
display: block;
}
.gallery figcaption {
padding: 6px 8px;
font-size: 0.75rem;
color: var(--muted);
display: flex;
align-items: center;
justify-content: space-between;
gap: 4px;
}
.gallery .tiny {
background: none;
border: none;
color: var(--gold-light);
cursor: pointer;
padding: 2px;
display: inline-grid;
place-items: center;
}
.gallery .tiny.danger {
color: #F28B8B;
}
.gallery-empty {
grid-column: 1 / -1;
}
.timeline {
list-style: none;
margin: 0;
padding: 0 14px 0 0;
position: relative;
display: flex;
flex-direction: column;
gap: 14px;
}
.timeline::before {
content: '';
position: absolute;
right: 31px;
top: 10px;
bottom: 10px;
width: 2px;
background: var(--border);
}
.timeline li {
display: flex;
gap: 12px;
align-items: flex-start;
position: relative;
}
.timeline .icon-tile {
position: relative;
z-index: 1;
}
.timeline-body {
flex: 1;
min-width: 0;
padding: 8px 12px;
border-radius: var(--radius-sm);
background: var(--navy-900);
border: 1px solid var(--border-soft);
}
.timeline-title {
font-weight: 700;
display: flex;
justify-content: space-between;
gap: 8px;
flex-wrap: wrap;
}
.timeline-date {
font-size: 0.78rem;
color: var(--muted);
font-weight: 500;
}
.timeline-detail {
font-size: 0.84rem;
color: var(--muted);
margin-top: 2px;
}
.bcs-picker {
display: flex;
gap: 6px;
}
.bcs-picker button {
flex: 1;
min-height: 40px;
border-radius: var(--radius-xs);
border: 1px solid var(--border);
background: var(--navy-900);
color: var(--muted);
font-weight: 800;
cursor: pointer;
transition: background 0.15s var(--ease), color 0.15s var(--ease), transform 0.15s var(--ease);
}
.bcs-picker button:hover {
transform: translateY(-2px);
color: var(--text);
}
.bcs-picker button[aria-pressed="true"] {
background: linear-gradient(135deg, var(--gold-light), var(--gold));
color: var(--navy-900);
border-color: transparent;
}
.insights {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
gap: 10px;
}
.insight {
padding: 12px;
border-radius: var(--radius-sm);
background: var(--navy-900);
border: 1px solid var(--border-soft);
display: flex;
flex-direction: column;
gap: 4px;
}
.insight-label {
font-size: 0.78rem;
color: var(--muted);
}
.insight-value {
font-size: 1.25rem;
font-weight: 800;
color: var(--gold-light);
}
.insight-value.up {
color: #5FD39B;
}
.insight-value.down {
color: #F28B8B;
}
.notes-box {
white-space: pre-wrap;
color: var(--muted);
font-size: 0.92rem;
margin: 0;
}
.toast-root {
position: fixed;
bottom: calc(var(--bottom-nav-h) + 16px);
left: 50%;
transform: translateX(-50%);
z-index: 60;
display: flex;
flex-direction: column;
gap: 8px;
width: min(92vw, 420px);
pointer-events: none;
}
.toast {
padding: 12px 16px;
border-radius: var(--radius-sm);
background: var(--navy-700);
color: var(--text);
border: 1px solid var(--border);
border-right: 4px solid var(--gold);
box-shadow: var(--shadow);
font-weight: 500;
animation: toast-in 0.3s var(--ease);
}
.toast-success {
border-right-color: var(--green);
}
.toast-error {
border-right-color: var(--red);
}
.toast-info {
border-right-color: var(--blue);
}
.toast-hide {
opacity: 0;
transition: opacity 0.4s var(--ease);
}
@keyframes toast-in {
from {
opacity: 0;
transform: translateY(10px);
}
to {
opacity: 1;
transform: none;
}
}
.modal-backdrop {
position: fixed;
inset: 0;
z-index: 70;
background: rgba(2, 8, 20, 0.7);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
display: grid;
place-items: center;
padding: 16px;
}
.modal {
width: min(100%, 460px);
background: linear-gradient(160deg, var(--surface), var(--surface-2));
border: 1px solid rgba(201, 162, 39, 0.35);
border-radius: var(--radius);
padding: 22px;
box-shadow: var(--shadow);
display: flex;
flex-direction: column;
gap: 14px;
animation: view-in 0.25s var(--ease);
}
.modal-title {
margin: 0;
font-size: 1.15rem;
font-weight: 800;
color: var(--gold-light);
}
.modal-body p {
margin: 0;
color: var(--muted);
}
.modal-actions {
display: flex;
justify-content: flex-start;
gap: 10px;
flex-wrap: wrap;
}
.bottom-nav {
display: none;
}
.sheet {
position: fixed;
inset: 0;
z-index: 50;
background: rgba(2, 8, 20, 0.6);
backdrop-filter: blur(4px);
-webkit-backdrop-filter: blur(4px);
display: flex;
align-items: flex-end;
}
.sheet[hidden] {
display: none;
}
.sheet-panel {
width: 100%;
background: var(--navy-800);
border-top: 1px solid rgba(201, 162, 39, 0.4);
border-radius: 22px 22px 0 0;
padding: 14px 14px calc(var(--bottom-nav-h) + 14px);
display: flex;
flex-direction: column;
gap: 4px;
animation: sheet-in 0.3s var(--ease);
}
.sheet-panel::before {
content: '';
width: 44px;
height: 4px;
border-radius: 999px;
background: var(--border);
margin: 0 auto 10px;
}
@keyframes sheet-in {
from {
transform: translateY(40px);
opacity: 0;
}
to {
transform: none;
opacity: 1;
}
}
@media (max-width: 1180px) {
.kpis-5 {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.dash-grid {
grid-template-columns: 1fr;
}
.grid-3 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
@media (max-width: 1023px) {
.sidebar {
display: none;
}
.bottom-nav {
position: fixed;
bottom: 0;
right: 0;
left: 0;
z-index: 55;
height: var(--bottom-nav-h);
display: grid;
grid-template-columns: repeat(5, 1fr);
align-items: center;
background: rgba(7, 20, 40, 0.92);
backdrop-filter: blur(14px);
-webkit-backdrop-filter: blur(14px);
border-top: 1px solid var(--border);
padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a,
.bottom-nav button {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 3px;
height: 100%;
color: var(--muted);
text-decoration: none;
font-size: 0.7rem;
font-weight: 500;
background: none;
border: none;
cursor: pointer;
transition: color 0.2s var(--ease);
}
.bottom-nav a[aria-current="page"],
.bottom-nav button[aria-expanded="true"] {
color: var(--gold-light);
}
.bottom-nav a[aria-current="page"] .icon {
transform: translateY(-2px) scale(1.1);
}
.bottom-nav .fab {
width: 58px;
height: 58px;
margin: 0 auto;
transform: translateY(-14px);
border-radius: 50%;
background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
color: var(--navy-900);
box-shadow: 0 10px 24px rgba(201, 162, 39, 0.45);
border: 3px solid var(--navy-900);
}
.bottom-nav .fab:active {
transform: translateY(-14px) scale(0.95);
}
main {
padding: 16px 16px calc(var(--bottom-nav-h) + 28px);
}
.topbar {
padding: 12px 16px;
}
.grid-2,
.profile-grid {
grid-template-columns: 1fr;
}
}
@media (max-width: 640px) {
.kpis-5,
.kpis {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.kpi-value {
font-size: 1.4rem;
}
.grid-3,
.form-grid,
.form-grid-2 {
grid-template-columns: 1fr;
}
.topbar h1 {
font-size: 1.2rem;
}
.today {
display: none;
}
.profile-hero {
grid-template-columns: 1fr;
justify-items: center;
text-align: center;
}
.profile-top,
.profile-actions {
justify-content: center;
}
.donut-wrap {
flex-direction: column;
}
.form-actions .btn {
width: 100%;
}
.card {
padding: 16px;
}
}
@media (prefers-reduced-motion: reduce) {
*,
*::before,
*::after {
animation: none !important;
transition: none !important;
}
}
.booting .app,
.booting .bottom-nav,
.booting .fab {
visibility: hidden;
}
.login {
position: fixed;
inset: 0;
z-index: 80;
display: flex;
align-items: center;
justify-content: center;
padding: 24px 16px;
background:
radial-gradient(900px 500px at 85% -10%, rgba(201, 162, 39, 0.16), transparent 60%),
radial-gradient(700px 400px at 10% 110%, rgba(59, 130, 246, 0.12), transparent 60%),
var(--navy-900);
overflow: auto;
}
.login[hidden] {
display: none;
}
.login-card {
width: 100%;
max-width: 440px;
padding: 28px 26px 22px;
border-radius: var(--radius);
background: linear-gradient(180deg, var(--navy-800), var(--navy-700));
border: 1px solid var(--border);
box-shadow: var(--shadow);
}
.login-brand {
justify-content: center;
margin-bottom: 18px;
}
.login-form {
display: grid;
gap: 12px;
}
.login-form[hidden] {
display: none;
}
.login-title {
margin: 0;
font-size: 1.3rem;
color: var(--gold-light);
text-align: center;
}
.login-sub {
margin: 0;
color: var(--muted);
text-align: center;
line-height: 1.7;
}
.login-foot {
margin: 20px 0 0;
font-size: 0.78rem;
color: var(--muted-2);
text-align: center;
}
.farm-box {
margin: 10px 14px 14px;
padding: 12px 14px;
border-radius: var(--radius-sm);
background: var(--navy-900);
border: 1px solid var(--border-soft);
display: grid;
gap: 4px;
}
.farm-label {
font-size: 0.74rem;
color: var(--muted-2);
}
.farm-name {
font-weight: 800;
color: var(--cream);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.sync-state {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.76rem;
color: var(--muted);
}
.sync-dot {
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--muted-2);
box-shadow: 0 0 0 3px rgba(95, 117, 146, 0.2);
}
.sync-state[data-state="online"] .sync-dot {
background: var(--green);
box-shadow: 0 0 0 3px rgba(46, 158, 107, 0.25);
}
.sync-state[data-state="syncing"] .sync-dot {
background: var(--gold);
box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.25);
animation: sync-pulse 1s infinite alternate;
}
.sync-state[data-state="error"] .sync-dot {
background: var(--red);
box-shadow: 0 0 0 3px rgba(214, 69, 69, 0.25);
}
@keyframes sync-pulse {
from { opacity: 0.4; }
to { opacity: 1; }
}
.pill-inline {
margin-inline-start: 6px;
vertical-align: middle;
}
body.role-worker .cell-cost,
body.role-worker #nav a[data-view="sales"],
body.role-worker #nav a[data-view="purchases"],
body.role-worker #nav a[data-view="costs"],
body.role-worker .sheet a[data-view="sales"],
body.role-worker .sheet a[data-view="purchases"],
body.role-worker .sheet a[data-view="costs"],
body.role-vet .cell-cost,
body.role-vet #nav a[data-view="sales"],
body.role-vet #nav a[data-view="purchases"],
body.role-vet #nav a[data-view="costs"],
body.role-vet #nav a[data-view="backup"],
body.role-vet .sheet a[data-view="sales"],
body.role-vet .sheet a[data-view="purchases"],
body.role-vet .sheet a[data-view="costs"],
body.role-vet .sheet a[data-view="backup"] {
display: none !important;
}
.card[hidden] {
display: none;
}
@media (max-width: 900px) {
.farm-box {
margin: 8px 12px 12px;
}
}