@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&family=Noto+Kufi+Arabic:wght@500;600;700&display=swap');

:root {
    --ink: #1b3029;
    --soft-ink: #4c665a;
    --sub: #7c8e85;
    --green: #1769e0;
    --green2: #3b82f6;
    --mint: #eaf3ff;
    --bg: #f6f8f6;
    --line: #e4ebe5;
    --white: #fff;
    --gold: #b5823a;
    --radius: 18px;
    --shadow: 0 9px 33px rgba(22, 53, 34, .038)
}

* {
    box-sizing: border-box
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--ink);
    font: 14px/1.58 Inter, 'Segoe UI', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility
}

h1,
h2,
h3,
h4,
p {
    margin: 0
}

h1,
h2,
h3,
h4 {
    font-family: 'Plus Jakarta Sans', Inter, 'Segoe UI', sans-serif;
    line-height: 1.22;
    letter-spacing: -.55px
}

h1 {
    font-size: 30px
}

h2 {
    font-size: 25px
}

h3 {
    font-size: 16px
}

a {
    color: inherit;
    text-decoration: none
}

button,
input,
select,
textarea {
    font: inherit
}

button,
a,
select {
    transition: background .18s, border-color .18s, box-shadow .18s
}

button {
    cursor: pointer
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid #97c9ac;
    outline-offset: 2px
}

.muted {
    color: var(--sub)
}

.tiny {
    font-size: 11px
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.55px;
    font-weight: 800;
    text-transform: uppercase;
    color: #ff8a1f
}

.eyebrow.light {
    color: #b5ddd0
}

.nowrap {
    white-space: nowrap
}

.money {
    font-variant-numeric: tabular-nums;
    font-weight: 700
}

.grow {
    flex: 1;
    min-width: 0
}

.green-text {
    color: #1265cf
}

.red-text {
    color: #a94847
}

.visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0)
}

.app-layout {
    display: flex;
    min-height: 100vh
}

.sidebar {
    width: 252px;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    background: #fff;
    border-inline-end: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    padding: 25px 17px 19px;
    z-index: 12
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 13px 27px
}

.logo-mark {
    display: grid;
    place-items: center;
    border-radius: 13px;
    width: 42px;
    height: 42px;
    background: var(--green);
    color: white;
    font: 800 28px Manrope;
    box-shadow: 0 6px 20px #1769e032
}

.logo-words {
    display: flex;
    flex-direction: column;
    line-height: 1.15
}

.logo-words strong {
    font: 800 20px Manrope;
    letter-spacing: 1px
}

.logo-words small {
    font-size: 8px;
    letter-spacing: 1.2px;
    color: var(--sub);
    font-weight: 800
}

.nav-caption {
    padding: 5px 18px 14px;
    color: #a0aea7;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.8px
}

.nav-links {
    display: flex;
    flex-direction: column;
    gap: 6px
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 11px;
    color: #566c60;
    font-size: 12px;
    font-weight: 700
}

.nav-links a:hover {
    background: #f3f7f3;
    color: var(--green)
}

.nav-links a.active {
    background: #e9f4ed;
    color: var(--green)
}

.nav-icon {
    font-size: 19px;
    width: 25px;
    text-align: center;
    font-weight: 400
}

.sidebar-bottom {
    margin-top: auto
}

.brand-insight {
    background: #f0f8f2;
    border: 1px solid #e4efe7;
    padding: 17px;
    border-radius: 13px;
    margin: 0 4px 17px;
    font-size: 11px
}

.brand-insight p {
    color: #769186;
    margin-top: 5px
}

.insight-dot {
    display: block;
    background: #18aa77;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 12px
}

.sidebar-profile {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 5px;
    border-top: 1px solid var(--line)
}

.sidebar-profile>span:nth-child(2) {
    display: flex;
    flex: 1;
    flex-direction: column;
    overflow: hidden
}

.sidebar-profile b {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.sidebar-profile small {
    color: var(--sub);
    font-size: 10px
}

.avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    background: #d7eee0;
    color: #17674c;
    font-weight: 800;
    width: 35px;
    height: 35px;
    border-radius: 12px
}

.avatar.mini {
    width: 36px;
    height: 36px
}

.workspace {
    margin-inline-start: 252px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0
}

.topbar {
    height: 74px;
    background: rgba(255, 255, 255, .86);
    border-bottom: 1px solid var(--line);
    padding: 0 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(12px)
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 13px;
    font-size: 12px
}

.breadcrumb .sep {
    color: #c5cec8
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 15px
}

.language-form select {
    background: white;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 12px;
    color: var(--ink)
}

.user-chip {
    font-size: 11px;
    color: var(--soft-ink);
    font-weight: 700
}

.icon-button {
    border: 1px solid var(--line);
    color: var(--soft-ink);
    background: white;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    font-size: 18px
}

.inline {
    display: inline;
    margin: 0
}

.menu-toggle {
    display: none;
    border: 0;
    background: transparent;
    font-size: 22px;
    color: var(--ink)
}

.main-content {
    padding: 30px 36px 55px;
    flex: 1;
    max-width: 1620px;
    width: 100%;
    margin: 0 auto
}

.footer {
    padding: 18px 35px;
    color: #a0aca4;
    font-size: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 8px
}

.page-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 26px
}

.page-heading .eyebrow {
    display: block;
    margin-bottom: 7px
}

.page-heading h1 {
    margin-bottom: 7px
}

.page-heading p {
    font-size: 12px
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 10px;
    border: 1px solid #dbe5dc;
    background: #fff;
    padding: 10px 15px;
    font-size: 11px;
    font-weight: 800;
    color: #344b3f;
    min-height: 39px;
    white-space: nowrap
}

.button:hover {
    background: #edf7ef;
    border-color: #b9d5c1
}

.button.primary {
    background: var(--green);
    color: white;
    border-color: var(--green)
}

.button.primary:hover {
    background: #084e3d
}

.button.wide {
    width: 100%;
    justify-content: space-between;
    padding: 13px 16px
}

.button.tiny-button {
    padding: 5px 9px;
    min-height: 29px;
    font-size: 10px;
    border-radius: 8px
}

.text-link {
    color: var(--green);
    font-size: 11px;
    font-weight: 800
}

.text-link:hover {
    text-decoration: underline
}

.toolbar {
    display: flex;
    gap: 12px;
    align-items: center;
    margin: 0 0 20px;
    flex-wrap: wrap
}

.toolbar-right {
    margin-inline-start: auto;
    color: var(--sub);
    font-size: 11px
}

.segmented {
    display: flex;
    border: 1px solid var(--line);
    background: white;
    padding: 4px;
    border-radius: 11px
}

.segmented a {
    border-radius: 8px;
    padding: 7px 16px;
    color: #829589;
    font-size: 11px;
    font-weight: 800
}

.segmented a.on {
    background: var(--green);
    color: white
}

.search-row {
    display: flex;
    gap: 9px
}

.search-row input {
    width: min(360px, 60vw)
}

.stat-grid {
    display: grid;
    gap: 14px;
    margin-bottom: 18px
}

.stat-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.stat-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr))
}

.stat-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 20px 21px;
    box-shadow: var(--shadow);
    min-width: 0
}

.stat-card.stat-highlight {
    background: linear-gradient(135deg, #1769e0, #3b82f6);
    color: white;
    border-color: #14715d
}

.stat-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #829488;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 19px
}

.stat-highlight .stat-top {
    color: #d4eee1
}

.round-icon {
    border: 1px solid #e1ebe4;
    border-radius: 9px;
    width: 25px;
    height: 25px;
    display: grid;
    place-items: center;
    color: #769183
}

.stat-highlight .round-icon {
    color: #e0f4eb;
    border-color: #4d9580
}

.stat-value {
    font: 800 24px Manrope;
    letter-spacing: -1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-variant-numeric: tabular-nums
}

.stat-value small {
    display: inline-block;
    margin-inline-start: 5px;
    font: 700 10px 'DM Sans';
    letter-spacing: 0;
    color: #9ead9e
}

.stat-highlight .stat-value small {
    color: #d1e9df
}

.stat-caption {
    font-size: 10px;
    color: #8c9d92;
    margin-top: 6px
}

.stat-highlight .stat-caption {
    color: #cae3d6
}

.compact-stat .stat-card {
    padding: 15px 20px
}

.compact-stat .stat-top {
    margin-bottom: 8px
}

.small-value {
    font-size: 19px
}

.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 22px;
    min-width: 0
}

.panel-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px
}

.panel-heading .eyebrow {
    display: block;
    margin-bottom: 4px
}

.panel-heading h3 {
    font-size: 15px
}

.two-column {
    display: grid;
    grid-template-columns: 1.55fr 1fr;
    gap: 16px;
    margin-bottom: 17px
}

.dashboard-panels {
    grid-template-columns: 1.6fr 1fr
}

.table-scroll {
    overflow: auto;
    max-width: 100%
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px
}

th {
    color: #91a095;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
    font-size: 9px;
    text-align: start;
    padding: 12px 12px;
    background: #f8faf8
}

td {
    padding: 13px 12px;
    border-bottom: 1px solid #edf1ec;
    vertical-align: top
}

tbody tr:last-child td {
    border-bottom: 0
}

tbody tr:hover {
    background: #fdfefd
}

.table-link {
    font-weight: 800;
    color: var(--ink)
}

.table-link:hover {
    color: var(--green)
}

.empty {
    text-align: center;
    padding: 24px !important;
    font-size: 12px
}

.account-stack {
    display: flex;
    flex-direction: column;
    gap: 0
}

.account-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ee;
    font-size: 12px
}

.account-line strong {
    font-variant-numeric: tabular-nums
}

.account-line:last-child {
    border-bottom: 0
}

.account-line.emphasis {
    color: var(--green);
    font-weight: 800;
    font-size: 13px
}

.account-marker {
    width: 9px;
    height: 9px;
    border-radius: 50%
}

.account-marker.green {
    background: #0e7760
}

.account-marker.lime {
    background: #93bb9f
}

.account-marker.gold {
    background: #dfbf7d
}

.account-marker.muted-marker {
    background: #ccd5cd
}

.info-note {
    border-radius: 10px;
    background: #eff7f2;
    color: #688673;
    font-size: 11px;
    padding: 12px 14px;
    margin-top: 17px;
    line-height: 1.7
}

.panel-action {
    margin-top: 14px
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    background: #eaf2ec;
    color: #657c6f;
    white-space: nowrap
}

.badge.green {
    background: #e2f3e8;
    color: #18724c
}

.badge.gold {
    background: #fff3dc;
    color: #a36e2f
}

.badge.red {
    background: #fae9e7;
    color: #b4554d
}

.badge.gray {
    background: #eff0ef;
    color: #687e72
}

.activity-list {
    display: flex;
    flex-direction: column
}

.activity {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 0;
    border-bottom: 1px solid #f0f3f0
}

.activity:last-child {
    border: 0
}

.activity-symbol {
    flex-shrink: 0;
    border-radius: 11px;
    background: #eaf5ee;
    color: #18815f;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    font-size: 17px
}

.activity>div {
    flex: 1;
    min-width: 0
}

.activity strong {
    font-size: 11px
}

.activity time {
    font-size: 10px;
    color: #8ba094;
    white-space: nowrap
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px
}

.project-card {
    display: block;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    overflow: hidden;
    box-shadow: var(--shadow)
}

.project-card:hover {
    border-color: #b3d1be;
    transform: translateY(-2px)
}

.project-image {
    position: relative;
    height: 155px;
    background: #e0e8df
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.architecture-placeholder {
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(120deg, #c6d7ca, #edf1e9);
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #739080
}

.architecture-placeholder>span:first-child {
    font-size: 70px;
    color: #8ca99a;
    font-weight: 300
}

.status-badge {
    position: absolute;
    bottom: 12px;
    inset-inline-start: 14px;
    padding: 5px 9px;
    border-radius: 8px;
    background: #fff;
    font-size: 9px;
    color: var(--green);
    font-weight: 800
}

.project-card-content {
    padding: 19px
}

.project-card h3 {
    margin: 7px 0 10px
}

.project-meta {
    display: flex;
    justify-content: space-between;
    color: var(--sub);
    font-size: 10px
}

.project-financials {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    border-top: 1px solid var(--line);
    margin-top: 16px;
    padding-top: 14px
}

.project-financials>div {
    display: flex;
    flex-direction: column;
    gap: 3px
}

.project-financials small {
    color: var(--sub);
    font-size: 9px
}

.project-financials strong {
    font-size: 13px
}

.empty-panel {
    grid-column: 1/-1;
    text-align: center;
    padding: 55px
}

.project-hero {
    height: 198px;
    display: flex;
    align-items: stretch;
    overflow: hidden;
    border-radius: 19px;
    background: linear-gradient(115deg, #174d40, #0d725a);
    color: #fff;
    position: relative;
    margin-bottom: 18px
}

.project-hero-art {
    position: absolute;
    inset: 0;
    opacity: .42
}

.project-hero-art img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75)
}

.project-hero-art::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0b4fae 10%, #1769e0 65%, transparent)
}

.building-art {
    position: absolute;
    inset-inline-end: 15%;
    top: -60px;
    font-size: 245px;
    color: #b8d9c2;
    line-height: 1
}

.project-hero-content {
    z-index: 1;
    position: relative;
    padding: 32px 36px
}

.project-hero h1 {
    margin: 7px 0 10px
}

.project-hero p {
    color: #d5e7db;
    font-size: 12px
}

.hero-meta {
    display: flex;
    gap: 8px;
    margin-top: 15px
}

.tag-white {
    background: #ffffff28;
    color: #fff;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 10px
}

.project-tabs {
    display: flex;
    gap: 5px;
    overflow: auto;
    border-bottom: 1px solid var(--line);
    margin: 0 0 24px
}

.project-tabs a {
    font-size: 12px;
    font-weight: 800;
    padding: 12px 18px;
    color: #819187;
    white-space: nowrap;
    border-bottom: 3px solid transparent
}

.project-tabs a.selected {
    color: var(--green);
    border-color: var(--green)
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    margin: 22px 0 22px
}

.tab-header h2 {
    margin: 5px 0
}

.tab-header p {
    font-size: 12px
}

.form-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin: 15px 0
}

.partner-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0
}

.partner-row:last-child {
    border: 0
}

.partner-row strong {
    font-size: 12px
}

.site-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 18px
}

.site-card {
    display: flex;
    flex-direction: column;
    gap: 14px
}

.site-card p {
    font-size: 12px;
    color: #52675c;
    white-space: pre-wrap
}

.site-card .flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px
}

.site-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    border-top: 1px solid var(--line);
    padding-top: 13px
}

.site-details small {
    font-size: 10px;
    color: var(--sub)
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 15px 0
}

.photo-grid img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 9px;
    background: #eef2ee
}

.photo-grid figure {
    margin: 0
}

.photo-grid figcaption {
    color: var(--sub);
    font-size: 10px
}

.photo-grid-small {
    grid-template-columns: repeat(4, minmax(0, 1fr))
}

.photo-grid-small img {
    height: 88px
}

.engineer-pills {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 12px 0
}

.bare-x {
    border: 0;
    background: transparent;
    color: #ab6659;
    font-size: 17px;
    padding: 0 2px
}

.inset-fold {
    border-top: 1px solid var(--line);
    padding-top: 10px;
    margin-top: 12px
}

.form-page {
    max-width: 850px
}

.form-stack {
    display: flex;
    flex-direction: column;
    gap: 16px
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px
}

.form-grid>.field:has(textarea) {
    grid-column: 1/-1
}

.field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0
}

.field label {
    font-size: 11px;
    font-weight: 800;
    color: #3d594a
}

.field small {
    font-size: 10px;
    color: #87968d
}

.input,
.field input,
.field select,
.field textarea {
    width: 100%;
    background: #fff;
    color: var(--ink);
    border: 1px solid #dfe7e0;
    border-radius: 9px;
    min-height: 40px;
    padding: 9px 11px;
    outline: none;
    max-width: 100%
}

.field textarea {
    min-height: 95px;
    resize: vertical
}

.field input[type='checkbox'] {
    width: auto;
    min-height: 0
}

.input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: #80bc9e;
    box-shadow: 0 0 0 3px #eaf6ed
}

.field-error,
.required {
    color: #aa554b
}

.form-footer {
    padding-top: 10px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end
}

.action-fold {
    margin-bottom: 16px
}

.action-fold>summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
    cursor: pointer
}

.action-fold>summary::-webkit-details-marker {
    display: none
}

.action-fold>summary span {
    color: var(--green);
    font-size: 19px
}

.action-fold[open]>summary {
    margin-bottom: 18px
}

.form-card-grid .form-grid {
    grid-template-columns: 1fr
}

.form-card-grid .form-grid>.field {
    grid-column: auto !important
}

.form-card-grid .field textarea {
    min-height: 70px
}

.check-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px
}

.sale-total-box {
    border: 1px solid #dbe9e0;
    background: #eef7f1;
    padding: 11px;
    border-radius: 9px;
    font-size: 12px
}

.sale-total-box strong {
    font-size: 15px;
    color: var(--green)
}

.inline-form {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 7px 0
}

.inline-form .input {
    max-width: 190px
}

.correction-form {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px
}

.small-input {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 10px;
    max-width: 130px
}

.flash-stack {
    display: grid;
    gap: 7px;
    margin-bottom: 18px
}

.flash {
    border-radius: 10px;
    padding: 10px 14px;
    background: #e9f7ef;
    color: #286646;
    font-weight: 700;
    font-size: 12px;
    border: 1px solid #cde8d6
}

.flash.error {
    background: #fff0ed;
    color: #9a493d;
    border-color: #f4d5ce
}

.flash.warning {
    background: #fff7e5;
    color: #80621e
}

.mono {
    font-family: monospace
}

.login-body {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #fff
}

.login-visual {
    min-height: 100vh;
    background: radial-gradient(circle at 75% 15%, #3b82f6, #0b4fae 43%, #072f6b 95%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px 60px
}

.login-brand {
    display: flex;
    gap: 14px;
    align-items: center;
    font: 800 23px Manrope;
    letter-spacing: 1.5px
}

.login-copy h1 {
    font-size: 49px;
    line-height: 1.25;
    margin: 16px 0
}

.login-copy h1 em {
    font-style: normal;
    color: #b7e4c7
}

.login-copy p {
    font-size: 15px;
    max-width: 430px;
    color: #bfdace
}

.login-foot {
    font-size: 10px;
    color: #c5d8cc
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 30px
}

.login-card {
    width: min(430px, 100%)
}

.login-card h2 {
    font-size: 29px;
    margin: 7px 0 12px
}

.login-card>p {
    font-size: 12px;
    margin-bottom: 27px
}

.login-hint {
    font-size: 11px;
    color: var(--sub);
    margin-top: 25px
}

.login-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px
}

.login-card .field {
    margin-bottom: 12px
}

html[dir=rtl] .breadcrumb,
html[dir=rtl] .topbar {
    direction: rtl
}

html[dir=rtl] table th,
html[dir=rtl] table td {
    text-align: right
}

html[dir=rtl] .logo-words small {
    letter-spacing: 0
}

html[dir=rtl] .eyebrow {
    letter-spacing: .2px
}

html[dir=rtl] .project-hero-art::after {
    background: linear-gradient(270deg, #0b4fae 10%, #1769e0 65%, transparent)
}

@media(max-width:1250px) {
    .stat-grid-four {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .form-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .main-content {
        padding: 24px
    }
}

@media(max-width:900px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s;
        box-shadow: 6px 0 25px #173c2520
    }

    .menu-open .sidebar {
        transform: translateX(0)
    }

    html[dir=rtl] .sidebar {
        transform: translateX(100%)
    }

    html[dir=rtl].menu-open .sidebar {
        transform: translateX(0)
    }

    .workspace {
        margin: 0
    }

    .menu-toggle {
        display: block
    }

    .topbar {
        padding: 0 20px
    }

    .two-column,
    .dashboard-panels {
        grid-template-columns: 1fr
    }

    .project-hero {
        height: 205px
    }

    .login-visual {
        padding: 24px;
        min-height: 300px
    }

    .login-body {
        grid-template-columns: 1fr
    }

    .login-copy h1 {
        font-size: 32px
    }

    .login-panel {
        padding: 55px 24px
    }

    .login-foot {
        display: none
    }

    .site-grid {
        grid-template-columns: 1fr
    }
}

@media(max-width:650px) {
    .main-content {
        padding: 18px 13px 35px
    }

    .topbar {
        height: 64px;
        padding: 0 13px
    }

    .breadcrumb .muted,
    .breadcrumb .sep,
    .user-chip {
        display: none
    }

    .page-heading {
        align-items: flex-start
    }

    .page-heading h1 {
        font-size: 24px
    }

    .page-heading .button {
        font-size: 10px;
        padding: 7px
    }

    .stat-grid,
    .stat-grid-four,
    .stat-grid-three {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px
    }

    .stat-card {
        padding: 14px
    }

    .stat-value {
        font-size: 17px
    }

    .stat-value small {
        font-size: 9px
    }

    .stat-caption {
        font-size: 9px
    }

    .stat-top {
        font-size: 10px;
        margin-bottom: 11px
    }

    .panel {
        padding: 16px
    }

    .form-card-grid,
    .project-grid,
    .form-grid {
        grid-template-columns: 1fr
    }

    .project-hero {
        height: 180px
    }

    .project-hero-content {
        padding: 22px
    }

    .project-hero h1 {
        font-size: 23px
    }

    .project-tabs a {
        font-size: 10px;
        padding: 10px 12px
    }

    .photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr))
    }

    .site-details {
        grid-template-columns: 1fr
    }

    .login-visual {
        min-height: 235px
    }

    .login-copy p {
        display: none
    }

    .language-form select {
        padding: 5px
    }

    .login-copy h1 {
        font-size: 25px
    }
}

.partner-dashboard-row {
    padding-bottom: 9px;
    margin-bottom: 8px
}

.mini-progress {
    height: 7px;
    background: #eef4ef;
    border-radius: 99px;
    overflow: hidden
}

.mini-progress span {
    height: 100%;
    display: block;
    background: linear-gradient(90deg, #0f7055, #91d3a9);
    border-radius: 99px
}

.investor-directory {
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, .85fr)
}

.investor-search {
    margin-bottom: 18px
}

.investor-search .input {
    flex: 1
}

.investor-form-panel {
    align-self: start;
    position: sticky;
    top: 88px
}

.form-intro {
    font-size: 11px;
    line-height: 1.7;
    margin: -6px 0 18px
}

.table-note {
    display: block;
    color: var(--sub);
    font-size: 10px;
    line-height: 1.45;
    margin-top: 4px;
    max-width: 360px
}

@media(max-width:900px) {
    .investor-directory {
        grid-template-columns: 1fr
    }

    .investor-form-panel {
        position: static
    }
}

.backend-search {
    position: relative
}

.search-combobox {
    position: relative
}

.search-combobox-input {
    padding-inline-end: 38px !important;
    min-height: 44px !important
}

.search-spinner {
    position: absolute;
    inset-inline-end: 13px;
    top: 50%;
    width: 15px;
    height: 15px;
    margin-top: -8px;
    border: 2px solid #d7e5dc;
    border-top-color: var(--green);
    border-radius: 50%;
    opacity: 0
}

.search-spinner.on {
    opacity: 1;
    animation: search-spin .65s linear infinite
}

.search-results {
    position: absolute;
    z-index: 40;
    inset-inline: 0;
    top: calc(100% - 23px);
    max-height: 290px;
    overflow: auto;
    background: #fff;
    border: 1px solid #cbdcd1;
    border-radius: 11px;
    box-shadow: 0 16px 35px #183a2924;
    padding: 6px
}

.search-result {
    display: flex;
    width: 100%;
    min-height: 52px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: 8px 10px;
    text-align: start;
    color: var(--ink);
    cursor: pointer
}

.search-result:hover,
.search-result.active {
    background: #eaf5ee
}

.search-result strong {
    font-size: 12px
}

.search-result small {
    color: var(--sub);
    font-size: 10px;
    line-height: 1.35
}

.search-empty {
    padding: 18px 12px;
    text-align: center;
    color: var(--sub);
    font-size: 11px
}

.search-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #bcdac8;
    background: #eef8f1;
    border-radius: 10px;
    padding: 9px 10px;
    margin-top: 7px
}

.search-selection>div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0
}

.search-selection strong {
    font-size: 12px
}

.search-selection small {
    font-size: 10px;
    color: var(--sub)
}

.search-clear {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: #fff;
    color: #8a4b45;
    font-size: 19px;
    cursor: pointer
}

.search-clear:hover {
    background: #fcecea
}

.investor-profile-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, .7fr)
}

.profile-notes {
    font-size: 12px;
    line-height: 1.75;
    color: #52675c
}

.investor-contact-value {
    font-size: 18px !important;
    overflow-wrap: anywhere
}

@keyframes search-spin {
    to {
        transform: rotate(360deg)
    }
}

@media(prefers-reduced-motion:reduce) {
    .search-spinner.on {
        animation-duration: 1.5s
    }
}

@media(max-width:900px) {
    .investor-profile-grid {
        grid-template-columns: 1fr
    }
}

/* Premium interaction layer */
:root {
    --shadow: 0 1px 2px rgba(17, 45, 33, .03), 0 12px 34px rgba(17, 45, 33, .055);
    --shadow-hover: 0 3px 8px rgba(17, 45, 33, .05), 0 18px 44px rgba(17, 45, 33, .09)
}

.panel,
.stat-card,
.project-card {
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease
}

.panel:hover,
.stat-card:hover {
    border-color: #d5e2d8;
    box-shadow: var(--shadow-hover)
}

.button {
    min-height: 42px;
    padding: 10px 17px;
    font-size: 12px;
    letter-spacing: .01em;
    box-shadow: 0 1px 2px rgba(17, 45, 33, .04)
}

.button.primary {
    box-shadow: 0 6px 16px rgba(11, 101, 80, .16)
}

.button:active {
    transform: translateY(1px)
}

.field label {
    font-size: 11.5px
}

.input,
.field input,
.field select,
.field textarea {
    min-height: 44px;
    border-color: #d8e3da;
    border-radius: 11px;
    padding: 10px 12px;
    transition: border-color .18s, box-shadow .18s, background .18s
}

.field small {
    font-size: 10.5px;
    line-height: 1.5
}

.panel {
    border-radius: 18px;
    padding: 23px
}

.stat-card {
    border-radius: 18px
}

.partner-row {
    padding: 14px 0
}

.partner-actions {
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    gap: 3px
}

.ownership-edit {
    position: relative
}

.ownership-edit>summary {
    list-style: none;
    color: var(--green);
    font-size: 10px;
    font-weight: 800;
    cursor: pointer
}

.ownership-edit>summary::-webkit-details-marker {
    display: none
}

.ownership-edit form {
    display: flex;
    gap: 6px;
    position: absolute;
    z-index: 8;
    inset-inline-end: 0;
    top: 25px;
    width: 225px;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 38px rgba(17, 45, 33, .16)
}

.ownership-edit .small-input {
    flex: 1;
    max-width: none;
    min-height: 34px
}

.ownership-edit .button {
    min-height: 34px
}

.allocation-total {
    padding: 6px 10px;
    border-radius: 999px;
    background: #e8f5ed;
    color: #147052;
    font-size: 10px;
    font-weight: 800
}

.allocation-total.danger {
    background: #fff0ed;
    color: #a8473e
}

.allocation-summary {
    margin-top: 17px;
    border-radius: 13px;
    background: #f3f8f4;
    border: 1px solid #e0ece3;
    padding: 13px
}

.allocation-summary.overallocated {
    background: #fff4f1;
    border-color: #f1d2cb
}

.allocation-copy {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px
}

.allocation-copy strong {
    font-size: 11px
}

.allocation-copy span {
    color: var(--sub);
    font-size: 10px;
    text-align: end
}

.allocation-track {
    height: 7px;
    background: #dde9e0;
    border-radius: 99px;
    overflow: hidden
}

.allocation-track span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #1769e0, #ff9b3d);
    transition: width .5s ease
}

.overallocated .allocation-track span {
    background: linear-gradient(90deg, #c75b4f, #e69268)
}

.flash {
    position: relative;
    padding: 13px 16px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(17, 45, 33, .06);
    animation: flash-in .24s ease both
}

.flash:before {
    content: '✓';
    display: inline-grid;
    place-items: center;
    width: 20px;
    height: 20px;
    margin-inline-end: 9px;
    border-radius: 50%;
    background: #ccebd8
}

.flash.error:before {
    content: '!';
    background: #f6d2ca
}

.backend-search .search-results {
    top: calc(100% + 7px);
    padding: 7px;
    border-radius: 13px;
    box-shadow: 0 20px 50px rgba(17, 45, 33, .17)
}

.search-result {
    min-height: 58px;
    padding: 9px 11px
}

.search-result:hover,
.search-result.active {
    background: #e8f5ed;
    box-shadow: inset 3px 0 0 var(--green)
}

.search-selection {
    padding: 11px 12px;
    border-radius: 12px
}

.search-selection:before {
    content: '✓';
    display: grid;
    place-items: center;
    flex: 0 0 29px;
    width: 29px;
    height: 29px;
    border-radius: 9px;
    background: #d4ecdd;
    color: var(--green);
    font-weight: 900
}

button[data-loading='true'] {
    opacity: .72;
    cursor: wait;
    pointer-events: none
}

@keyframes flash-in {
    from {
        opacity: 0;
        transform: translateY(-5px)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@media(max-width:650px) {
    .allocation-copy {
        flex-direction: column
    }

    .allocation-copy span {
        text-align: start
    }

    .partner-row {
        align-items: flex-start
    }

    .ownership-edit form {
        position: fixed;
        inset-inline: 14px;
        top: auto;
        bottom: 18px;
        width: auto
    }

    .panel {
        padding: 17px
    }
}

@media(prefers-reduced-motion:reduce) {

    .panel,
    .stat-card,
    .project-card,
    .allocation-track span,
    .flash {
        transition: none;
        animation: none
    }
}

/* Fixed snackbar notifications */
.flash-stack {
    position: fixed;
    z-index: 1000;
    top: 92px;
    inset-inline-end: 24px;
    width: min(420px, calc(100vw - 28px));
    display: grid;
    gap: 10px;
    margin: 0;
    pointer-events: none
}

.flash {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    overflow: hidden;
    border-radius: 14px;
    padding: 14px 46px 14px 15px;
    background: rgba(242, 251, 246, .97);
    color: #225e42;
    font-size: 12px;
    border: 1px solid #c9e7d4;
    box-shadow: 0 18px 50px rgba(17, 45, 33, .18), 0 3px 10px rgba(17, 45, 33, .08);
    backdrop-filter: blur(16px);
    pointer-events: auto
}

.flash.error {
    background: rgba(255, 246, 244, .98);
    color: #913f37;
    border-color: #efcdc7
}

.flash.warning {
    background: rgba(255, 250, 237, .98);
    color: #765a19;
    border-color: #eedda9
}

.toast-content {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px
}

.toast-content strong {
    font: 800 12px Manrope;
    letter-spacing: -.1px
}

.toast-content span {
    color: inherit;
    opacity: .86;
    line-height: 1.5;
    overflow-wrap: anywhere
}

.toast-close {
    position: absolute;
    inset-inline-end: 10px;
    top: 10px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: currentColor;
    font-size: 19px;
    opacity: .6
}

.toast-close:hover {
    background: rgba(0, 0, 0, .06);
    opacity: 1
}

.toast-timer {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    height: 3px;
    background: #3fa678;
    transform-origin: left;
    animation: toast-timer 6s linear forwards
}

.flash.error .toast-timer {
    background: #d66a5e;
    animation-duration: 9s
}

.flash.is-leaving {
    animation: toast-out .22s ease forwards
}

@keyframes toast-timer {
    to {
        transform: scaleX(0)
    }
}

@keyframes toast-out {
    to {
        opacity: 0;
        transform: translateX(18px)
    }
}

@media(max-width:650px) {
    .flash-stack {
        top: 76px;
        inset-inline: 14px;
        width: auto
    }

    .flash {
        border-radius: 13px
    }
}

@media(prefers-reduced-motion:reduce) {
    .toast-timer {
        animation: none
    }

    .flash.is-leaving {
        animation: none;
        opacity: 0
    }
}

.input-invalid {
    border-color: #d86b60 !important;
    background: #fff9f8 !important;
    box-shadow: 0 0 0 3px rgba(216, 107, 96, .12) !important
}

.inline-field-error {
    display: block !important;
    color: #ad483f !important;
    font-size: 10.5px !important;
    font-weight: 700 !important;
    margin-top: 2px
}

.field:has(.input-invalid) label {
    color: #9e443c
}

/* Finance workspace: calm forms, scan-friendly ledgers, progressive actions */
.finance-workflows {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 24px
}

.finance-workflow {
    padding: 0;
    overflow: hidden;
    margin: 0
}

.finance-workflow>summary {
    min-height: 76px;
    padding: 20px 22px;
    font-size: 13px
}

.finance-workflow>summary span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: #edf7f1
}

.finance-workflow[open]>summary {
    margin: 0;
    border-bottom: 1px solid var(--line);
    background: #fbfdfb
}

.finance-workflow>form {
    padding: 20px 22px
}

.finance-workflow .button.primary {
    width: 100%
}

.finance-ledger {
    padding: 0;
    margin-bottom: 18px;
    overflow: visible
}

.finance-ledger .panel-heading {
    min-height: 68px;
    margin: 0;
    padding: 18px 22px;
    border-bottom: 1px solid #e8eee9
}

.finance-ledger .table-scroll {
    overflow: visible;
    padding: 0 22px 14px
}

.data-table {
    table-layout: fixed;
    font-size: 12px
}

.data-table th {
    height: 44px;
    padding: 12px 12px;
    color: #71877a;
    background: #f6f9f7;
    font-size: 9.5px;
    letter-spacing: .75px
}

.data-table td {
    height: 68px;
    padding: 15px 12px;
    vertical-align: middle;
    color: #2b4136
}

.data-table tbody tr {
    transition: background .16s
}

.data-table tbody tr:hover {
    background: #f8fbf9
}

.data-table .money {
    text-align: right;
    font-size: 12.5px
}

.finance-table th:nth-child(4),
.finance-table td:nth-child(4) {
    text-align: right
}

.finance-table th:last-child,
.finance-table td:last-child {
    width: 210px
}

.actions-cell {
    position: relative
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px
}

.quiet-button {
    min-height: 36px;
    padding: 7px 11px;
    background: #fff;
    box-shadow: none;
    font-size: 10.5px
}

.action-menu {
    position: relative
}

.action-menu>summary {
    list-style: none
}

.action-menu>summary::-webkit-details-marker {
    display: none
}

.action-menu[open]>summary {
    border-color: #9fc5ad;
    background: #edf7f1;
    color: var(--green)
}

.action-menu-panel {
    position: absolute;
    z-index: 30;
    inset-inline-end: 0;
    top: 43px;
    width: 340px;
    padding: 14px;
    background: #fff;
    border: 1px solid #d6e2d9;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(17, 45, 33, .18)
}

.row-action-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px
}

.row-action-form+.row-action-form {
    margin-top: 13px;
    padding-top: 13px;
    border-top: 1px solid var(--line)
}

.row-action-form .button {
    min-height: 44px
}

.danger-action {
    border-color: #f1d9d4
}

.danger-button {
    color: #a3433b;
    border-color: #e9c8c2;
    background: #fff7f5
}

.danger-button:hover {
    color: #8e3029;
    border-color: #dda49a;
    background: #ffefec
}

.empty-row:hover {
    background: transparent !important
}

.empty-row .empty {
    height: 130px
}

.empty-row .empty strong,
.empty-row .empty span {
    display: block
}

.empty-row .empty strong {
    font: 700 13px Manrope;
    color: #52695d;
    margin-bottom: 4px
}

.empty-row .empty span {
    font-size: 11px;
    color: #8a9b91
}

.finance-ledger .badge {
    font-size: 10px;
    padding: 6px 10px
}

@media(max-width:1100px) {
    .finance-workflows {
        grid-template-columns: 1fr
    }

    .finance-workflow>summary {
        min-height: 62px
    }

    .finance-ledger .table-scroll {
        overflow-x: auto
    }

    .data-table {
        min-width: 850px
    }

    .action-menu-panel {
        position: static;
        width: 320px;
        margin-top: 8px
    }

    .actions-cell {
        vertical-align: top !important
    }
}

@media(max-width:650px) {
    .finance-ledger .panel-heading {
        padding: 16px
    }

    .finance-ledger .table-scroll {
        padding: 0 0 10px
    }

    .finance-ledger table {
        min-width: 780px
    }

    .finance-workflow>form,
    .finance-workflow>summary {
        padding-inline: 16px
    }
}

.finance-ledger:has(.action-menu[open]) {
    position: relative;
    z-index: 20
}

/* Finance creation dialogs */
.finance-action-launchers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 18px 0 24px
}

.finance-launcher {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 78px;
    padding: 17px 20px;
    text-align: start;
    border: 1px solid #dce6de;
    border-radius: 17px;
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow)
}

.finance-launcher>span:first-child {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px
}

.finance-launcher strong {
    font: 700 12.5px Manrope
}

.finance-launcher small {
    color: var(--sub);
    font-size: 10.5px
}

.finance-launcher:hover {
    border-color: #a9cdb6;
    box-shadow: var(--shadow-hover);
    transform: translateY(-1px)
}

.launcher-icon {
    display: grid;
    place-items: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #eaf5ee;
    color: var(--green);
    font-size: 20px;
    font-weight: 600
}

.finance-modal {
    width: min(560px, calc(100vw - 32px));
    max-height: min(760px, calc(100dvh - 40px));
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: 20px;
    background: transparent;
    color: var(--ink);
    overflow: visible
}

.finance-modal.modal-wide {
    width: min(720px, calc(100vw - 32px))
}

.finance-modal::backdrop {
    background: rgba(8, 25, 19, .55);
    backdrop-filter: blur(5px);
    animation: modal-backdrop-in .18s ease-out
}

.finance-modal[open] {
    animation: modal-in .22s cubic-bezier(.2, .8, .2, 1)
}

.modal-shell {
    display: flex;
    max-height: min(760px, calc(100dvh - 40px));
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 30px 90px rgba(7, 31, 21, .3)
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--line)
}

.modal-header h3 {
    margin: 5px 0 5px;
    font-size: 20px
}

.modal-header p {
    max-width: 490px;
    color: var(--sub);
    font-size: 11.5px
}

.modal-close {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #f8faf8;
    color: #61766a;
    font-size: 22px
}

.modal-close:hover {
    background: #eef5f0;
    color: var(--ink)
}

.modal-form {
    min-height: 0;
    gap: 0
}

.modal-body {
    min-height: 0;
    overflow-y: auto;
    padding: 24px 26px
}

.modal-body>.form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr))
}

.finance-modal:not(.modal-wide) .modal-body>.form-grid {
    grid-template-columns: 1fr
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 26px;
    border-top: 1px solid var(--line);
    background: #fafcfb
}

.modal-footer .button {
    min-width: 110px
}

.optional-label {
    margin-inline-start: 6px;
    color: var(--sub);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px
}

.modal-open {
    overflow: hidden
}

@keyframes modal-in {
    from {
        opacity: 0;
        transform: translateY(14px) scale(.98)
    }

    to {
        opacity: 1;
        transform: none
    }
}

@keyframes modal-backdrop-in {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@media(max-width:900px) {
    .finance-action-launchers {
        grid-template-columns: 1fr
    }

    .finance-launcher {
        min-height: 68px
    }
}

@media(max-width:650px) {

    .finance-modal,
    .finance-modal.modal-wide {
        width: 100%;
        max-width: none;
        max-height: calc(100dvh - 18px);
        margin: auto 0 0;
        border-radius: 20px 20px 0 0
    }

    .modal-shell {
        max-height: calc(100dvh - 18px);
        border-radius: 20px 20px 0 0
    }

    .modal-header,
    .modal-body {
        padding-inline: 18px
    }

    .modal-footer {
        padding: 14px 18px calc(14px + env(safe-area-inset-bottom))
    }

    .modal-footer .button {
        flex: 1;
        min-width: 0
    }

    .modal-body>.form-grid {
        grid-template-columns: 1fr !important
    }

    .finance-modal[open] {
        animation-name: modal-sheet-in
    }

    @keyframes modal-sheet-in {
        from {
            opacity: 0;
            transform: translateY(28px)
        }

        to {
            opacity: 1;
            transform: none
        }
    }
}

@media(prefers-reduced-motion:reduce) {

    .finance-modal[open],
    .finance-modal::backdrop {
        animation: none
    }
}

.modal-info-note {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 18px;
    padding: 13px 14px;
    border: 1px solid #dbe9df;
    border-radius: 12px;
    background: #f3f8f5
}

.modal-info-note strong {
    font-size: 11px;
    color: #345649
}

.modal-info-note span {
    font-size: 10.5px;
    line-height: 1.55;
    color: var(--sub)
}

.modal-footer-split {
    justify-content: space-between
}

.modal-footer-split>div {
    display: flex;
    gap: 9px
}

.modal-footer-split>div .button {
    min-width: 0
}

@media(max-width:650px) {
    .modal-footer-split {
        align-items: stretch;
        flex-direction: column-reverse
    }

    .modal-footer-split>div {
        display: grid;
        grid-template-columns: 1fr
    }

    .modal-footer-split>div .button {
        width: 100%
    }
}

/* Language-aware typography */
.logo-mark,
.logo-words strong,
.stat-value,
.login-brand,
.login-copy h1,
.login-card h2,
.empty-row .empty strong,
.toast-content strong {
    font-family: 'Plus Jakarta Sans', Inter, 'Segoe UI', sans-serif
}

.stat-value,
.money,
.account-line strong {
    font-variant-numeric: tabular-nums lining-nums
}

html[dir=rtl] body,
html[dir=rtl] button,
html[dir=rtl] input,
html[dir=rtl] select,
html[dir=rtl] textarea {
    font-family: 'Noto Sans Arabic', 'Segoe UI', Tahoma, sans-serif
}

html[dir=rtl] h1,
html[dir=rtl] h2,
html[dir=rtl] h3,
html[dir=rtl] h4,
html[dir=rtl] .logo-words strong,
html[dir=rtl] .stat-value {
    font-family: 'Noto Kufi Arabic', 'Noto Sans Arabic', Tahoma, sans-serif;
    letter-spacing: 0
}

html[dir=rtl] .eyebrow {
    text-transform: none
}


/* KHUSHKYAR BRAND LOGO */

.logo-mark.logo-image {
    width: 48px;
    height: 48px;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    overflow: hidden;
    flex-shrink: 0;
}

.logo-mark.logo-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.project-currency-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-7px 0 18px;padding:13px 16px;border:1px solid #dce8df;border-radius:13px;background:#f3f8f5}.project-currency-strip>div{display:flex;align-items:center;gap:10px}.project-currency-strip span{color:var(--sub);font-size:11px}.project-currency-strip strong{font-size:12px}.project-currency-strip a{color:var(--green);font-size:11px;font-weight:800}.project-hero-art{opacity:1}.project-hero-art::after{background:linear-gradient(90deg,rgba(13,67,53,.94) 6%,rgba(11,101,80,.78) 58%,rgba(11,101,80,.3))}.project-hero-art img{filter:saturate(.9) contrast(1.03)}
@media(max-width:650px){.project-currency-strip{align-items:flex-start;flex-direction:column}.project-currency-strip>div{align-items:flex-start;flex-direction:column;gap:2px}}
.rate-direction{display:flex;align-items:center;justify-content:center;gap:13px;margin:5px 0 18px;padding:14px;border:1px solid #d6e7dc;border-radius:13px;background:#f1f8f4}.rate-direction span{min-width:90px;padding:9px 14px;border-radius:10px;background:#fff;text-align:center;font-weight:800;color:var(--green);box-shadow:0 1px 3px rgba(17,45,33,.06)}.rate-direction b{color:#6d887a;font-size:19px}
.project-hero:has(.project-hero-art img){height:260px;background:#123f34}.project-hero-art img{object-position:center 45%;filter:saturate(1.02) contrast(1.04)}.project-hero-art::after{background:linear-gradient(90deg,rgba(8,48,38,.9) 0%,rgba(8,65,50,.68) 31%,rgba(8,65,50,.2) 64%,rgba(8,65,50,.06) 100%)}
html[dir=rtl] .project-hero-art::after{background:linear-gradient(270deg,rgba(8,48,38,.9) 0%,rgba(8,65,50,.68) 31%,rgba(8,65,50,.2) 64%,rgba(8,65,50,.06) 100%)}
/* Client-facing audit timeline and record view */
.audit-heading{align-items:flex-end}.audit-panel{padding:0;overflow:hidden}.audit-panel .panel-heading{padding:24px 26px;border-bottom:1px solid var(--border)}
.audit-list{display:flex;flex-direction:column}.audit-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;border-bottom:1px solid var(--border);transition:background .18s ease}.audit-row:last-child{border-bottom:0}.audit-row:hover{background:#f6faf8}
.audit-row-main{display:grid;grid-template-columns:12px minmax(0,1fr) 110px;gap:16px;align-items:center;padding:20px 12px 20px 26px;color:inherit;text-decoration:none}.audit-status-dot{width:9px;height:9px;border-radius:50%;background:#ff8a1f;box-shadow:0 0 0 5px #fff0df}.audit-row-failed .audit-status-dot{background:#c95858;box-shadow:0 0 0 5px #fbecec}
.audit-copy{display:flex;flex-direction:column;gap:4px;min-width:0}.audit-copy strong{font-size:14px}.audit-copy small{color:var(--muted);line-height:1.45}.audit-context{font-size:12px;font-weight:650;color:#527065}.audit-row time{text-align:right;font-size:12px;font-weight:700;color:#304e43}.audit-row time small{display:block;color:var(--muted);margin-top:3px}.audit-row-actions{display:flex;align-items:center;gap:14px;padding-right:26px}.audit-details-link{font-size:12px;font-weight:750;color:var(--green);white-space:nowrap}
.button-small{min-height:36px!important;padding:8px 12px!important;font-size:12px!important;white-space:nowrap}.audit-detail-top{margin-bottom:18px}.back-link{font-size:13px;font-weight:750;color:var(--green)}.audit-detail-hero{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px;border-left:4px solid #16a679}.audit-detail-hero h1{margin:6px 0;font-size:28px}.audit-detail-hero p{margin:0;color:var(--muted)}.audit-detail-failed{border-left-color:#c95858}.audit-detail-actions{display:flex;align-items:center;gap:12px}.audit-detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:18px 0}.audit-facts{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:0 24px}.audit-facts>div{padding:14px 0;border-bottom:1px solid var(--border);min-width:0}.audit-facts dt{font-size:11px;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);font-weight:750}.audit-facts dd{margin:5px 0 0;font-size:13px;font-weight:700;overflow-wrap:anywhere}.change-columns{display:grid;grid-template-columns:1fr 1fr;gap:18px}.change-columns>div{background:#f7faf8;border:1px solid var(--border);border-radius:14px;padding:18px}.change-columns h4{margin:0 0 10px}.change-row{display:flex;justify-content:space-between;gap:18px;padding:11px 0;border-bottom:1px solid var(--border);font-size:13px}.change-row:last-child{border-bottom:0}.change-row span{color:var(--muted)}.change-row strong{text-align:right;overflow-wrap:anywhere}
@media(max-width:900px){.audit-row{grid-template-columns:1fr}.audit-row-actions{padding:0 20px 18px 48px}.audit-detail-grid,.change-columns{grid-template-columns:1fr}.audit-detail-hero{align-items:flex-start;flex-direction:column}.audit-facts{grid-template-columns:1fr}}
@media(max-width:600px){.audit-row-main{grid-template-columns:10px minmax(0,1fr);padding:18px}.audit-row time{grid-column:2;text-align:left}.audit-row-actions{padding:0 18px 18px 44px;flex-wrap:wrap}}
/* Finance workspace sub-navigation and paged ledgers */
.finance-subnav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:20px 0 22px;padding:7px;background:#eaf1ed;border:1px solid #d9e5de;border-radius:16px}.finance-subnav a{display:flex;flex-direction:column;gap:3px;padding:13px 15px;border-radius:11px;color:#456157;text-decoration:none;transition:background .18s ease,box-shadow .18s ease,color .18s ease}.finance-subnav a span{font-size:13px;font-weight:800}.finance-subnav a small{font-size:11px;color:#789087}.finance-subnav a:hover{background:rgba(255,255,255,.65)}.finance-subnav a.selected{background:#fff;color:var(--green);box-shadow:0 5px 15px rgba(25,65,51,.1)}
.finance-actions-advances .finance-launcher:not(:first-child),.finance-actions-expenses .finance-launcher:not(:nth-child(2)),.finance-actions-returns .finance-launcher:not(:nth-child(3)){display:none}.finance-actions-advances,.finance-actions-expenses,.finance-actions-returns{grid-template-columns:minmax(280px,520px)}
.sales-actions-buyers .finance-launcher:not(:first-child),.sales-actions-contracts .finance-launcher:not(:nth-child(2)),.sales-actions-payments .finance-launcher:not(:nth-child(3)){display:none}.sales-actions-buyers,.sales-actions-contracts,.sales-actions-payments{grid-template-columns:minmax(280px,520px)}
.inventory-actions{grid-template-columns:repeat(3,minmax(240px,1fr))}.inventory-subnav{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:760px){.inventory-actions{grid-template-columns:1fr}}

/* Blue glass interface — shared across login and the complete workspace */
:root {
    --ink:#10233f;
    --soft-ink:#415a77;
    --sub:#6f8199;
    --green:#1769e0;
    --green2:#3b82f6;
    --mint:#eaf3ff;
    --bg:#eaf1fb;
    --line:rgba(113,145,184,.24);
    --border:rgba(113,145,184,.24);
    --white:#fff;
    --radius:20px;
    --glass:rgba(255,255,255,.68);
    --glass-strong:rgba(255,255,255,.82);
    --glass-border:rgba(255,255,255,.72);
    --shadow:0 2px 5px rgba(30,64,110,.05),0 18px 46px rgba(38,82,142,.11);
    --shadow-hover:0 8px 18px rgba(30,64,110,.09),0 24px 58px rgba(38,82,142,.16)
}

html,body{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",Inter,"Segoe UI",sans-serif;background:#dce9f8;color:var(--ink)}
body{background-image:linear-gradient(135deg,rgba(231,241,255,.86),rgba(220,235,253,.7)),url("../img/glass-architecture-bg.02ca9303ad6c.png");background-size:cover;background-position:center;background-attachment:fixed}
h1,h2,h3,h4{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display",Inter,"Segoe UI",sans-serif;letter-spacing:-.035em;font-weight:750}
.app-layout{background:linear-gradient(115deg,rgba(238,246,255,.68),rgba(229,240,253,.48));min-height:100vh}
.workspace{background:transparent}.main-content{position:relative}.footer{background:rgba(245,249,255,.42);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}

.sidebar{background:rgba(247,251,255,.72);border-inline-end:1px solid rgba(255,255,255,.74);box-shadow:10px 0 34px rgba(48,87,135,.08);backdrop-filter:blur(30px) saturate(150%);-webkit-backdrop-filter:blur(30px) saturate(150%)}
.topbar{background:rgba(247,251,255,.66);border-bottom:1px solid rgba(255,255,255,.74);box-shadow:0 8px 26px rgba(48,87,135,.06);backdrop-filter:blur(28px) saturate(150%);-webkit-backdrop-filter:blur(28px) saturate(150%)}
.nav-links a{border:1px solid transparent}.nav-links a:hover{background:rgba(255,255,255,.62);border-color:rgba(255,255,255,.78);box-shadow:0 6px 18px rgba(52,96,153,.08)}.nav-links a.active{background:linear-gradient(135deg,rgba(230,242,255,.94),rgba(255,255,255,.72));color:#0759c7;border-color:rgba(255,255,255,.9);box-shadow:0 7px 20px rgba(39,104,188,.12),inset 0 1px 0 #fff}
.logo-mark,.avatar{background:linear-gradient(145deg,#0d5dcc,#3d8dff);box-shadow:0 8px 22px rgba(25,105,214,.24)}.brand-insight,.sidebar-profile{background:rgba(255,255,255,.52);border-color:rgba(255,255,255,.75);backdrop-filter:blur(15px)}

.panel,.stat-card,.project-card,.finance-launcher,.project-currency-strip,.record-pagination,.audit-row,.change-columns>div,.finance-guide-grid a,.sale-total-box,.modal-info-note{background:var(--glass)!important;border:1px solid var(--glass-border)!important;box-shadow:var(--shadow);backdrop-filter:blur(22px) saturate(145%);-webkit-backdrop-filter:blur(22px) saturate(145%)}
.panel:hover,.stat-card:hover,.project-card:hover,.finance-launcher:hover{border-color:rgba(255,255,255,.94)!important;box-shadow:var(--shadow-hover)}
.stat-card.stat-highlight{background:linear-gradient(145deg,rgba(14,94,207,.94),rgba(48,132,246,.86))!important;color:#fff;border-color:rgba(255,255,255,.46)!important;box-shadow:0 18px 42px rgba(25,105,214,.24),inset 0 1px 0 rgba(255,255,255,.36)}
.stat-card.stat-highlight .stat-top,.stat-card.stat-highlight small{color:rgba(255,255,255,.78)}
.finance-subnav{background:rgba(221,235,252,.62);border-color:rgba(255,255,255,.76);box-shadow:inset 0 1px 0 rgba(255,255,255,.7);backdrop-filter:blur(18px)}.finance-subnav a.selected{color:#0759c7;background:rgba(255,255,255,.84);box-shadow:0 7px 18px rgba(39,104,188,.12),inset 0 1px 0 #fff}

.input,.field input,.field select,.field textarea,.language-form select,.icon-button,.search-input{background:rgba(255,255,255,.7)!important;border:1px solid rgba(255,255,255,.88)!important;color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.86),0 4px 12px rgba(44,87,143,.06);backdrop-filter:blur(16px)}
.input:hover,.field input:hover,.field select:hover,.field textarea:hover{border-color:rgba(111,167,239,.62)!important}.input:focus,.field input:focus,.field select:focus,.field textarea:focus{background:rgba(255,255,255,.9)!important;border-color:#5b9df3!important;box-shadow:0 0 0 4px rgba(52,132,235,.14),inset 0 1px 0 #fff!important}
.button.primary,.button:not(.quiet-button):not(.danger-button),button.primary{background:linear-gradient(145deg,#0d61d4,#3488f6);border-color:rgba(255,255,255,.34);color:#fff;box-shadow:0 9px 22px rgba(22,102,216,.22),inset 0 1px 0 rgba(255,255,255,.34)}.button.primary:hover,.button:not(.quiet-button):not(.danger-button):hover{background:linear-gradient(145deg,#0758c6,#277cea);box-shadow:0 12px 28px rgba(22,102,216,.3),inset 0 1px 0 rgba(255,255,255,.38)}
.quiet-button,.button-secondary{background:rgba(255,255,255,.66)!important;color:#164f95!important;border-color:rgba(255,255,255,.88)!important;box-shadow:0 5px 14px rgba(44,87,143,.08)}
.eyebrow,.text-link,.table-link,.back-link,.audit-details-link{color:#1265cf}.badge.green{background:#e4f0ff;color:#0759c7}.badge.gold{background:#fff0df;color:#c85b06}

table{border-collapse:separate;border-spacing:0}thead th,.data-table th{background:rgba(225,237,252,.7);color:#55708f;border-color:rgba(126,155,190,.16)}tbody td,.data-table td{border-color:rgba(126,155,190,.15)}tbody tr{transition:background .16s ease}tbody tr:hover,.data-table tbody tr:hover{background:rgba(255,255,255,.52)}
.finance-modal::backdrop{background:rgba(17,37,67,.34);backdrop-filter:blur(10px) saturate(120%)}.modal-shell,.action-menu-panel{background:rgba(248,251,255,.9);border:1px solid rgba(255,255,255,.86);box-shadow:0 32px 90px rgba(17,52,99,.26),inset 0 1px 0 #fff;backdrop-filter:blur(32px) saturate(150%);-webkit-backdrop-filter:blur(32px) saturate(150%)}
.modal-header,.modal-footer{background:rgba(240,247,255,.56);border-color:rgba(126,155,190,.18)}

.project-hero{background:linear-gradient(120deg,#0b4ca5,#3788ed);box-shadow:0 22px 55px rgba(25,87,168,.2),inset 0 1px 0 rgba(255,255,255,.22)}.project-hero-art::after{background:linear-gradient(90deg,rgba(7,47,105,.9),rgba(15,84,173,.58) 42%,rgba(15,84,173,.1) 82%)}

.login-body{background-image:linear-gradient(110deg,rgba(8,44,98,.2),rgba(232,242,255,.45)),url("../img/glass-architecture-bg.02ca9303ad6c.png");background-size:cover;background-position:center;background-attachment:fixed}
.login-visual{background:linear-gradient(135deg,rgba(8,48,108,.78),rgba(20,90,183,.46),rgba(225,239,255,.12));text-shadow:0 2px 18px rgba(5,31,72,.26);backdrop-filter:saturate(120%)}.login-copy h1 em{color:#bfe0ff}.login-copy p,.login-foot{color:rgba(241,247,255,.82)}
.login-panel{background:rgba(233,242,253,.3);backdrop-filter:blur(12px)}.login-card{padding:38px;border-radius:28px;background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.88);box-shadow:0 34px 90px rgba(25,67,124,.2),inset 0 1px 0 #fff;backdrop-filter:blur(30px) saturate(155%);-webkit-backdrop-filter:blur(30px) saturate(155%)}.login-card input{background:rgba(255,255,255,.72);border-color:rgba(255,255,255,.9);box-shadow:inset 0 1px 0 #fff,0 6px 16px rgba(44,87,143,.08)}

@media(max-width:900px){body{background-attachment:scroll}.sidebar{background:rgba(247,251,255,.9)}.panel,.stat-card,.project-card,.finance-launcher{backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
@media print{body{background:#fff!important}.panel,.stat-card,.project-card{background:#fff!important;box-shadow:none!important;backdrop-filter:none!important}}

/* Secondary controls stay light so every dialog keeps a clear single primary action. */
.button:not(.primary):not(.danger-button){background:rgba(255,255,255,.68)!important;color:#164f95!important;border-color:rgba(255,255,255,.88)!important;box-shadow:0 5px 14px rgba(44,87,143,.08)}
.button:not(.primary):not(.danger-button):hover{background:rgba(255,255,255,.9)!important;color:#0759c7!important;box-shadow:0 8px 20px rgba(44,87,143,.13)}

/* Blue + orange material palette: eliminate legacy green rendering. */
:root{--accent:#ff8a1f;--accent-soft:#fff0df;--accent-deep:#c85b06}
body{background-image:radial-gradient(circle at 88% 10%,rgba(255,138,31,.16),transparent 25%),linear-gradient(135deg,rgba(231,241,255,.88),rgba(220,235,253,.72)),url("../img/glass-architecture-bg.02ca9303ad6c.png")}
.login-body{background-image:radial-gradient(circle at 76% 15%,rgba(255,150,54,.2),transparent 24%),linear-gradient(110deg,rgba(8,44,98,.2),rgba(232,242,255,.45)),url("../img/glass-architecture-bg.02ca9303ad6c.png")}
.eyebrow,.panel-heading .eyebrow{color:var(--accent)!important}.eyebrow.light{color:#ffd1a5!important}.nav-caption{color:#47729f}.insight-dot,.audit-status-dot{background:var(--accent)!important;box-shadow:0 0 0 5px rgba(255,138,31,.14)!important}.audit-row-failed .audit-status-dot{background:#d65252!important;box-shadow:0 0 0 5px rgba(214,82,82,.12)!important}
.green-text,.text-link,.table-link,.back-link,.audit-details-link{color:#1265cf!important}.account-marker.green{background:#2680ed!important}.account-marker.orange,.account-marker.gold{background:var(--accent)!important}
.badge.green{background:#e4f0ff!important;color:#0759c7!important;border-color:#b9d7ff!important}.badge.gold{background:var(--accent-soft)!important;color:var(--accent-deep)!important;border-color:#ffd0a3!important}.badge.gray{background:rgba(231,238,248,.82);color:#526b88}
.launcher-icon{background:linear-gradient(145deg,#ff9b3d,#f4750e)!important;color:#fff!important;box-shadow:0 8px 18px rgba(232,105,5,.2),inset 0 1px 0 rgba(255,255,255,.4)}
.project-currency-strip,.rate-direction{background:rgba(255,255,255,.62)!important;border-color:rgba(255,255,255,.82)!important}.rate-direction span{color:#0b61cf!important;background:rgba(255,255,255,.76)!important;box-shadow:0 5px 15px rgba(38,82,142,.08)}
.audit-context,.audit-row time{color:#426484!important}.audit-detail-hero{border-left-color:var(--accent)!important}.audit-detail-failed{border-left-color:#d65252!important}.change-columns>div{background:rgba(255,255,255,.54)!important}
.finance-guide-grid a{background:rgba(255,255,255,.56)!important;border-color:rgba(255,255,255,.8)!important}.finance-guide-grid a:hover{border-color:rgba(255,164,79,.7)!important;box-shadow:0 12px 28px rgba(38,82,142,.11),0 0 0 1px rgba(255,138,31,.12)}.finance-guide-grid strong{color:#1265cf!important}
.stat-card:not(.stat-highlight){position:relative;overflow:hidden}.stat-card:not(.stat-highlight)::after{content:"";position:absolute;inset:0 auto auto 18px;width:38px;height:3px;border-radius:0 0 4px 4px;background:linear-gradient(90deg,#ff8a1f,#ffbd7b);box-shadow:0 4px 12px rgba(255,138,31,.2)}
.project-hero:has(.project-hero-art img){background:#0b4fae!important}.project-hero-art img{filter:saturate(.82) contrast(1.04) hue-rotate(18deg)!important}.project-hero-art::after{background:linear-gradient(90deg,rgba(5,43,98,.92),rgba(15,84,173,.62) 48%,rgba(255,138,31,.12) 100%)!important}
.login-copy h1 em{color:#ffc083}.login-brand .logo-mark{box-shadow:0 10px 28px rgba(15,93,201,.26),0 0 0 1px rgba(255,166,83,.35)}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline-color:#67a7f6}
.finance-overview-guide{margin-top:18px}.finance-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.finance-guide-grid a{display:flex;flex-direction:column;gap:7px;padding:20px;border:1px solid var(--border);border-radius:14px;background:#f8fbf9;color:inherit;text-decoration:none;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.finance-guide-grid a:hover{transform:translateY(-2px);border-color:#9bc8b7;box-shadow:0 10px 24px rgba(21,72,53,.08)}.finance-guide-grid strong{font-size:14px;color:var(--green)}.finance-guide-grid span{font-size:12px;line-height:1.5;color:var(--muted)}
.record-pagination{display:flex;align-items:center;justify-content:space-between;gap:18px;margin:18px 0 4px;padding:14px 18px;border:1px solid var(--border);border-radius:14px;background:#fff;color:var(--muted);font-size:12px}.record-pagination>div{display:flex;align-items:center;gap:10px}.page-indicator{font-weight:750;color:#405b52;white-space:nowrap}

/* Final glass/palette polish: clearer translucency and no legacy green UI. */
:root{
    --glass:rgba(247,251,255,.48);
    --glass-strong:rgba(247,251,255,.66);
    --glass-border:rgba(255,255,255,.68);
}
.panel,.stat-card:not(.stat-highlight),.project-card,.finance-launcher,.project-currency-strip,
.record-pagination,.audit-panel,.change-columns>div,.finance-guide-grid a,.sale-total-box,.modal-info-note{
    background:linear-gradient(145deg,rgba(255,255,255,.53),rgba(235,245,255,.38))!important;
    box-shadow:0 1px 0 rgba(255,255,255,.76) inset,0 16px 38px rgba(38,82,142,.10)!important;
    backdrop-filter:blur(20px) saturate(142%)!important;
    -webkit-backdrop-filter:blur(20px) saturate(142%)!important;
}
.nav-links a{color:#496783!important}.nav-links a:hover{color:#1265cf!important}
.nav-links a.active{color:#0759c7!important}
.brand-insight p,.sidebar-profile small{color:#69819d!important}
.stat-top{color:#667f9a!important}.stat-highlight .stat-top{color:rgba(255,255,255,.82)!important}
.round-icon{color:#1769e0!important;border-color:rgba(74,139,223,.25)!important;background:rgba(232,242,255,.62)}
.mini-progress{background:rgba(99,142,193,.13)!important}
.mini-progress span{background:linear-gradient(90deg,#1769e0,#65a9ff)!important;box-shadow:0 2px 8px rgba(23,105,224,.18)}
.activity{border-color:rgba(101,139,181,.14)!important}
.activity-symbol{background:rgba(222,237,255,.78)!important;color:#1265cf!important;border:1px solid rgba(255,255,255,.72)}
.activity time,.audit-row time{color:#6c84a0!important}
.activity strong,.activity a{color:#173454!important}
.info-note{background:rgba(229,239,252,.58)!important;color:#52708f!important;border-color:rgba(255,255,255,.68)!important}
.account-line.emphasis{color:#1265cf!important}
.account-marker.green{background:#1769e0!important}.account-marker.lime{background:#6aa9f6!important}
.account-marker.gold{background:#ff8a1f!important}.account-marker.muted-marker{background:#9aaec5!important}
.audit-row{background:rgba(247,251,255,.24)!important}.audit-row:hover{background:rgba(255,255,255,.42)!important}
.audit-context{color:#547493!important}
@media(max-width:900px){
    .panel,.stat-card:not(.stat-highlight),.project-card,.finance-launcher{background:rgba(247,251,255,.62)!important}
}
@media(max-width:900px){.finance-subnav{grid-template-columns:1fr 1fr}.finance-guide-grid{grid-template-columns:1fr}.record-pagination{align-items:flex-start;flex-direction:column}}
@media(max-width:560px){.finance-subnav{display:flex;overflow-x:auto;scroll-snap-type:x mandatory}.finance-subnav a{min-width:180px;scroll-snap-align:start}.record-pagination>div{width:100%;justify-content:space-between}.page-indicator{font-size:11px}}

/* Administrator-selected background with a clearer, less milky glass treatment. */
body.custom-workspace-background{
    background-image:linear-gradient(135deg,rgba(215,232,252,.40),rgba(205,226,250,.28)),var(--workspace-background)!important;
    background-size:cover!important;background-position:center!important;background-attachment:fixed!important;
}
.custom-workspace-background .app-layout{background:linear-gradient(115deg,rgba(229,240,253,.30),rgba(214,231,251,.18))}
.custom-workspace-background .panel,
.custom-workspace-background .stat-card:not(.stat-highlight),
.custom-workspace-background .project-card,
.custom-workspace-background .finance-launcher,
.custom-workspace-background .record-pagination{
    background:linear-gradient(145deg,rgba(255,255,255,.42),rgba(230,241,253,.27))!important;
}
.custom-workspace-background.login-body{background-image:linear-gradient(110deg,rgba(7,39,86,.34),rgba(218,234,252,.18)),var(--workspace-background)!important}
.appearance-settings{margin-top:18px}.appearance-layout{display:grid;grid-template-columns:minmax(300px,1.15fr) minmax(280px,.85fr);gap:24px;align-items:start}
.appearance-preview{min-height:250px;border-radius:18px;background-size:cover;background-position:center;display:flex;align-items:flex-end;padding:18px;border:1px solid rgba(255,255,255,.78);box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 14px 34px rgba(31,74,132,.14);overflow:hidden}
.appearance-preview-default{background-image:linear-gradient(135deg,rgba(215,232,252,.28),rgba(205,226,250,.18)),url("../img/glass-architecture-bg.02ca9303ad6c.png")}
.appearance-preview span{padding:8px 12px;border-radius:10px;background:rgba(12,42,79,.68);color:#fff;font-size:12px;font-weight:750;backdrop-filter:blur(10px)}
.appearance-controls{display:flex;flex-direction:column;gap:14px}.appearance-controls input[type=file]{padding:11px;min-height:48px}
@media(max-width:800px){.appearance-layout{grid-template-columns:1fr}.appearance-preview{min-height:190px}body.custom-workspace-background{background-attachment:scroll!important}}

/* Login brand uses the transparent artwork at a more confident scale. */
.login-brand .logo-mark.logo-image{
    width:84px;height:84px;background:transparent!important;border:0!important;border-radius:0!important;
    box-shadow:none!important;overflow:visible;
}
.login-brand .logo-mark.logo-image img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 14px rgba(4,31,74,.22))}
@media(max-width:650px){.login-brand .logo-mark.logo-image{width:70px;height:70px}}
.login-language{position:fixed;inset-block-start:20px;inset-inline-end:24px;z-index:20}.login-language select{min-height:42px;padding:8px 34px 8px 13px;background:rgba(255,255,255,.72)!important;border:1px solid rgba(255,255,255,.88)!important;border-radius:12px;color:#173454;box-shadow:0 8px 24px rgba(14,55,110,.14);backdrop-filter:blur(18px)}
html[dir=rtl] .login-language select{padding:8px 13px 8px 34px}@media(max-width:650px){.login-language{inset-block-start:12px;inset-inline-end:14px}}
