@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --navy: #111a2f;
  --navy-soft: #17233d;
  --navy-muted: #6c7893;
  --ink: #172033;
  --muted: #798399;
  --line: #e8ebf0;
  --paper: #f6f8fb;
  --white: #fff;
  --lime: #cbf36e;
  --lime-deep: #a1d63a;
  --green: #2b9c74;
  --green-soft: #eaf8f2;
  --orange: #d38a3a;
  --orange-soft: #fff5e8;
  --red: #d06060;
  --red-soft: #fff0f0;
  --shadow: 0 18px 60px rgba(22, 31, 53, .08);
  --radius: 18px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: 'Cairo', 'Manrope', Tahoma, Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 1.8; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { border: 0; cursor: pointer; }
::selection { color: var(--navy); background: var(--lime); }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 256px; z-index: 20; display: flex; flex-direction: column; padding: 30px 18px 22px; background: var(--navy); color: #eef2fb; direction: rtl; }
.brand-block, .login-brand { display: flex; align-items: center; gap: 12px; direction: ltr; }
.brand-block { padding: 0 14px 38px; }
.brand-symbol { width: 38px; height: 38px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 12px; background: var(--lime); color: var(--navy); font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500; letter-spacing: -.08em; box-shadow: 0 8px 24px rgba(203,243,110,.16); }
.brand-block strong, .login-brand strong { display: block; font-family: 'Manrope', sans-serif; font-size: 14px; letter-spacing: -.04em; line-height: 1.1; }
.brand-block span, .login-brand span { display: block; color: #7d89a5; font-family: 'Manrope', sans-serif; font-size: 9px; letter-spacing: .14em; line-height: 1.5; text-transform: uppercase; }
.sidebar-label { padding: 0 14px 12px; color: #6e7b9a; font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .06em; text-transform: uppercase; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link { width: 100%; display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; color: #98a3ba; font-size: 11px; transition: color .25s ease, background .25s ease, transform .25s var(--ease); }
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.06); transform: translateX(-2px); }
.sidebar-link.is-active { color: var(--navy); background: var(--lime); box-shadow: 0 10px 24px rgba(203,243,110,.11); }
.nav-icon { width: 17px; color: inherit; font-size: 16px; line-height: 1; text-align: center; }
.sidebar-spacer { flex: 1; }
.team-card { display: flex; gap: 10px; align-items: center; padding: 13px 12px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.07); border-radius: 15px; background: rgba(255,255,255,.035); }
.team-card-mark { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 10px; background: rgba(203,243,110,.15); color: var(--lime); font-family: 'DM Mono', monospace; font-size: 10px; }
.team-card strong { display: block; color: #e8edf8; font-size: 10px; font-weight: 600; }
.team-card span { display: block; margin-top: 1px; color: #74809b; font-size: 8px; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.07); padding-top: 15px; }
.logout-form { margin: 4px 0 0; }
.sidebar-button { background: transparent; text-align: right; }
.app-main { width: calc(100% - 256px); min-height: 100vh; margin-left: 256px; }
.topbar { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 clamp(24px, 4vw, 62px); border-bottom: 1px solid var(--line); background: rgba(246,248,251,.86); backdrop-filter: blur(14px); }
.topbar-context, .topbar-user { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.status-pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(43,156,116,.12); }
.topbar-user { color: var(--ink); gap: 12px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--navy); color: var(--lime); font-family: 'DM Mono', monospace; font-size: 10px; direction: ltr; }
.avatar-large { width: 52px; height: 52px; border-radius: 16px; font-size: 13px; }
.mobile-menu { display: none; color: var(--navy); background: transparent; font-size: 21px; }
.page-content { max-width: 1480px; padding: clamp(28px, 5vw, 66px) clamp(24px, 4vw, 62px) 70px; margin: 0 auto; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.eyebrow { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; letter-spacing: .04em; text-transform: uppercase; }
.page-header h1, .detail-heading h1 { margin: 6px 0 2px; color: var(--navy); font-family: 'Cairo', 'Manrope', sans-serif; font-size: clamp(27px, 3vw, 42px); font-weight: 700; letter-spacing: -.04em; line-height: 1.35; }
.page-header p { max-width: 600px; margin: 8px 0 0; color: var(--muted); font-size: 11px; }
.button { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 17px; padding: 0 17px; border-radius: 10px; font-size: 10px; font-weight: 700; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s ease, background .3s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(17,26,47,.12); }
.button span { font-size: 17px; font-weight: 400; line-height: 0; }
.button-primary { background: var(--navy); color: var(--lime); }
.button-primary:hover { background: var(--navy-soft); }
.button-secondary { background: var(--white); color: var(--navy); border: 1px solid var(--line); }
.button-secondary:hover { border-color: #cdd4e1; }
.button-small { min-height: 34px; padding: 0 12px; gap: 8px; font-size: 9px; }
.button-wide { width: 100%; }
.text-link { color: var(--navy); font-size: 10px; font-weight: 700; }
.text-link span, .text-button span { margin-right: 6px; color: var(--lime-deep); font-size: 16px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--navy); font-size: 17px; transition: transform .3s var(--ease); }
.icon-button:hover { transform: translateY(-2px); }

.alert { margin-bottom: 22px; padding: 12px 16px; border-radius: 12px; font-size: 10px; }
.alert-success { color: #1d7658; background: var(--green-soft); border: 1px solid #cceee0; }
.alert-error { color: #a34747; background: var(--red-soft); border: 1px solid #f7d7d7; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric-card { min-height: 172px; display: flex; flex-direction: column; padding: 21px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 4px 20px rgba(22,31,53,.02); }
.metric-card.metric-dark { background: var(--navy); color: #fff; border-color: var(--navy); }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 10px; }
.metric-dark .metric-top { color: #a4aec1; }
.metric-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--paper); color: var(--navy); font-family: 'DM Mono', monospace; font-size: 10px; }
.metric-icon.accent { background: #f0f7dc; color: #779c24; }
.metric-icon.success { background: var(--green-soft); color: var(--green); }
.metric-icon.warning { background: var(--orange-soft); color: var(--orange); }
.metric-dark .metric-icon { color: var(--navy); background: var(--lime); }
.metric-card > strong { margin-top: 20px; color: var(--navy); font-family: 'Manrope', sans-serif; font-size: clamp(21px, 2.1vw, 29px); letter-spacing: -.06em; line-height: 1.2; direction: ltr; text-align: right; }
.metric-dark > strong { color: var(--lime); }
.metric-card > small { margin-top: auto; color: var(--muted); font-size: 9px; }
.metric-dark > small { color: #8996b0; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, .75fr); gap: 22px; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 4px 20px rgba(22,31,53,.02); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading h2 { margin: 3px 0 0; color: var(--navy); font-size: 16px; font-weight: 700; letter-spacing: -.04em; }
.panel-projects, .panel-next { overflow: hidden; }
.panel-projects > .panel-heading, .panel-next > .panel-heading { padding: 24px 25px 20px; }
.data-table { width: 100%; border-collapse: collapse; text-align: right; }
.data-table th { padding: 11px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--muted); font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 400; white-space: nowrap; }
.data-table td { padding: 14px 22px; border-bottom: 1px solid #f0f2f5; color: #4f5a70; font-size: 10px; vertical-align: middle; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr { transition: background .2s ease; }
.data-table tbody tr:hover { background: #fbfcfd; }
.table-primary { display: block; color: var(--navy); font-weight: 700; }
.table-primary:hover { color: #698a23; }
.table-meta { display: block; margin-top: 2px; color: #9aa4b7; font-family: 'DM Mono', monospace; font-size: 8px; direction: rtl; }
.amount-cell { color: var(--navy) !important; font-family: 'Manrope', sans-serif; font-weight: 700; direction: ltr; text-align: right; white-space: nowrap; }
.row-arrow { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: var(--navy); background: var(--paper); font-size: 15px; transition: background .2s ease, transform .2s ease; }
.row-arrow:hover { background: var(--lime); transform: translateX(-2px); }
.status-pill { display: inline-flex; align-items: center; min-height: 23px; padding: 0 8px; border-radius: 99px; font-size: 8px; white-space: nowrap; }
.status-success { color: #1c8664; background: var(--green-soft); }
.status-warning { color: #a66b2b; background: var(--orange-soft); }
.status-pending { color: #65718a; background: #f0f2f6; }
.status-muted { color: #7c8596; background: #edf0f3; }
.upcoming-list { padding: 0 18px 17px; }
.upcoming-item { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 11px; padding: 12px 7px; border-bottom: 1px solid #f0f2f5; }
.upcoming-item:last-child { border-bottom: 0; }
.upcoming-item:hover strong { color: #789b28; }
.date-tile { display: grid; place-items: center; width: 42px; height: 44px; border-radius: 11px; background: var(--paper); line-height: 1.1; }
.date-tile strong { color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 16px; direction: ltr; }
.date-tile span { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 7px; text-transform: uppercase; }
.upcoming-item > div:nth-child(2) strong, .upcoming-item > div:nth-child(2) span { display: block; }
.upcoming-item > div:nth-child(2) strong { color: var(--navy); font-size: 9px; font-weight: 700; transition: color .2s; }
.upcoming-item > div:nth-child(2) span { margin-top: 2px; color: var(--muted); font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upcoming-item > b { color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 10px; direction: ltr; white-space: nowrap; }
.empty-state { padding: 58px 24px; text-align: center; }
.empty-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 0 auto 15px; border-radius: 50%; background: #f2f7df; color: #81a72c; font-size: 22px; }
.empty-state h3 { margin: 0; color: var(--navy); font-size: 15px; }
.empty-state p { margin: 5px 0 19px; color: var(--muted); font-size: 10px; }
.small-empty { padding: 48px 20px; color: var(--muted); font-size: 10px; line-height: 2; text-align: center; }
.small-empty span { color: var(--green); }
.listing-panel { overflow: hidden; }
.listing-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 17px 22px; border-bottom: 1px solid var(--line); }
.search-form { width: min(380px, 100%); display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); color: #a0aabd; }
.search-form input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: 10px; }
.search-form button { padding: 5px 10px; border-radius: 7px; background: var(--navy); color: var(--lime); font-size: 9px; }
.result-count { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 9px; }
.type-dot { display: inline-block; width: 5px; height: 5px; margin-left: 4px; border-radius: 50%; background: var(--lime-deep); }
.share-mini { display: flex; gap: 5px; flex-wrap: wrap; }
.share-chip { padding: 3px 6px; border-radius: 6px; font-family: 'DM Mono', monospace; font-size: 8px; }
.share-chip.dh { color: #557e92; background: #eaf4f8; }
.share-chip.gi { color: #847035; background: #fbf3d9; }

.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 292px; gap: 22px; align-items: start; }
.form-main { display: grid; gap: 16px; }
.form-panel { padding: 25px; }
.form-section-title { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 22px; }
.step-number { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 9px; background: var(--navy); color: var(--lime); font-family: 'DM Mono', monospace; font-size: 9px; }
.form-section-title h2 { margin: -2px 0 2px; color: var(--navy); font-size: 15px; }
.form-section-title p, .panel-note { margin: 0; color: var(--muted); font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
label { display: block; color: #5f6a7f; font-size: 9px; font-weight: 600; }
label input, label select, label textarea { width: 100%; margin-top: 7px; padding: 0 12px; height: 42px; border: 1px solid #e2e6ee; border-radius: 9px; outline: 0; color: var(--navy); background: #fbfcfd; font-size: 10px; font-weight: 400; transition: border .2s ease, box-shadow .2s ease; }
label textarea { height: auto; padding-top: 10px; resize: vertical; line-height: 1.9; }
label input:focus, label select:focus, label textarea:focus { border-color: var(--lime-deep); box-shadow: 0 0 0 3px rgba(161,214,58,.12); }
label input::placeholder, label textarea::placeholder { color: #adb5c2; }
label.full { grid-column: 1 / -1; }
.price-preview { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 20px; padding: 15px 17px; border: 1px dashed #c9d69e; border-radius: 11px; background: #fbfdea; color: #6e7f37; font-size: 10px; }
.price-preview strong { color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 18px; direction: ltr; }
.sticky-panel { position: sticky; top: 25px; padding: 25px; overflow: hidden; background: var(--navy); color: #fff; border-color: var(--navy); }
.side-summary-label { color: #8190ad; font-family: 'DM Mono', monospace; font-size: 9px; text-transform: uppercase; }
.side-summary-icon { width: 46px; height: 46px; display: grid; place-items: center; margin: 24px 0 15px; border-radius: 50%; color: var(--navy); background: var(--lime); font-size: 22px; }
.sticky-panel h3 { color: #f9fbff; font-size: 19px; line-height: 1.5; letter-spacing: -.04em; }
.sticky-panel > p { margin: 7px 0 24px; color: #9ba7be; font-size: 10px; }
.summary-list { display: grid; gap: 12px; margin-bottom: 25px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.summary-list div { display: flex; justify-content: space-between; gap: 10px; color: #8d99b1; font-size: 9px; }
.summary-list b { color: #e9eef6; font-size: 9px; font-weight: 500; }
.sticky-panel .button-primary { background: var(--lime); color: var(--navy); }

.detail-back { margin-bottom: 22px; color: var(--muted); font-size: 10px; }
.detail-back a:hover { color: var(--navy); }
.detail-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 30px; }
.project-title-line { display: flex; align-items: center; gap: 10px; }
.project-type-badge { padding: 4px 7px; border-radius: 6px; background: #eff7d6; color: #709329; font-family: 'DM Mono', monospace; font-size: 8px; }
.detail-heading p { margin: 8px 0 0; color: var(--muted); font-size: 10px; }
.heading-actions { display: flex; align-items: center; gap: 9px; }
.detail-overview { display: grid; grid-template-columns: 1.1fr 1.4fr 1fr; gap: 0; margin-bottom: 22px; overflow: hidden; border: 1px solid var(--navy); border-radius: var(--radius); background: var(--navy); color: #fff; }
.detail-overview > div { min-height: 132px; padding: 24px; border-left: 1px solid rgba(255,255,255,.12); }
.detail-overview > div:last-child { border-left: 0; }
.detail-total span, .detail-client > span { display: block; color: #8794ae; font-family: 'DM Mono', monospace; font-size: 9px; }
.detail-total strong { display: block; margin-top: 10px; color: var(--lime); font-family: 'Manrope', sans-serif; font-size: 29px; letter-spacing: -.07em; direction: ltr; }
.detail-total small { display: block; margin-top: 5px; color: #8490a9; font-size: 8px; }
.detail-progress { display: flex; flex-direction: column; justify-content: center; }
.progress-header, .progress-meta { display: flex; justify-content: space-between; gap: 10px; color: #d9e0ec; font-size: 9px; }
.progress-header strong { color: var(--lime); font-family: 'Manrope', sans-serif; direction: ltr; }
.progress-track { height: 7px; margin: 13px 0 9px; overflow: hidden; border-radius: 10px; background: rgba(255,255,255,.1); }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.progress-meta { color: #8390a9; font-size: 8px; }
.detail-client { display: flex; flex-direction: column; justify-content: center; }
.detail-client strong { margin: 8px 0 1px; color: #f4f7fc; font-size: 12px; }
.detail-client a { color: #a5b1c7; font-family: 'Manrope', sans-serif; font-size: 9px; direction: ltr; text-align: right; }
.detail-client a:hover { color: var(--lime); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .8fr); gap: 22px; align-items: start; }
.detail-panel { padding: 24px; }
.detail-panel:nth-child(3) { grid-column: 1 / -1; }
.split-badge { padding: 5px 8px; border-radius: 7px; background: #f0f7dc; color: #729629; font-family: 'DM Mono', monospace; font-size: 9px; }
.panel-note { margin: 15px 0 21px; }
.installment-list { margin-top: 20px; }
.installment-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 22px; gap: 11px; align-items: center; padding: 14px 0; border-top: 1px solid #f0f2f5; }
.installment-marker { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; font-size: 12px; }
.installment-info strong, .installment-info span { display: block; }
.installment-info strong { color: var(--navy); font-size: 10px; }
.installment-info span { color: var(--muted); font-size: 8px; }
.installment-amount { text-align: left; }
.installment-amount strong { display: block; color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 10px; direction: ltr; white-space: nowrap; }
.installment-amount strong small { color: #a3adbc; font-size: 8px; font-weight: 400; }
.installment-amount .status-pill { margin-top: 3px; }
.row-edit { width: 22px; height: 28px; color: var(--muted); background: transparent; font-size: 17px; }
.row-edit:hover { color: var(--navy); }
.inline-edit { display: none; padding: 0 0 13px 39px; }
.inline-edit.is-open { display: block; }
.inline-form { display: flex; align-items: flex-end; gap: 9px; padding: 12px; border-radius: 10px; background: var(--paper); }
.inline-form label { flex: 1; }
.inline-form label input, .inline-form label select { height: 35px; margin-top: 4px; }
.shares-list { display: grid; gap: 7px; margin: 21px 0; }
.share-row { display: grid; grid-template-columns: 35px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px solid #f0f2f5; }
.share-row:last-child { border-bottom: 0; }
.share-avatar { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 11px; font-family: 'DM Mono', monospace; font-size: 9px; }
.share-avatar.dh { color: #557e92; background: #eaf4f8; }
.share-avatar.gi { color: #847035; background: #fbf3d9; }
.share-team strong, .share-team span, .share-balance strong, .share-balance span { display: block; }
.share-team strong { color: var(--navy); font-size: 10px; }
.share-team span { color: var(--muted); font-size: 8px; }
.share-balance { text-align: left; }
.share-balance strong { color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 10px; direction: ltr; }
.share-balance span { color: var(--muted); font-size: 8px; }
.text-button { padding: 0; background: transparent; color: var(--navy); font-size: 9px; font-weight: 700; }
.notes-content { min-height: 75px; margin-top: 18px; padding: 14px; border-radius: 10px; color: #59657a; background: var(--paper); font-size: 10px; line-height: 2; }
.image-upload-label { margin-top: 18px; }
.image-upload-label input[type="file"] { height: auto; padding: 10px 12px; cursor: pointer; }
.field-hint { display: block; margin-top: 6px; color: var(--muted); font-size: 8px; font-weight: 400; line-height: 1.8; }
.project-images { margin-top: 20px; padding-top: 17px; border-top: 1px solid var(--line); }
.project-images-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--navy); font-size: 10px; }
.project-images-heading span { color: var(--muted); font-family: 'DM Mono', monospace; font-size: 8px; }
.project-images-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 12px; }
.project-image { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); transition: transform .25s var(--ease), box-shadow .25s ease; }
.project-image:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22,31,53,.1); }
.project-image img { display: block; width: 100%; height: 112px; object-fit: cover; background: #edf1f5; }
.project-image span { display: block; overflow: hidden; padding: 7px 8px; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; direction: ltr; text-align: right; }
.muted-text { color: #a7afbd; }
.project-link-box { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 12px; align-items: center; margin-top: 12px; padding: 11px 13px; border: 1px solid #e7ebf1; border-radius: 10px; color: var(--muted); font-size: 8px; }
.project-link-box strong { overflow: hidden; color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 9px; font-weight: 500; direction: ltr; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.project-link-box > span:last-child { color: var(--lime-deep); font-size: 16px; }

.modal { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 20px; background: rgba(17,26,47,.55); backdrop-filter: blur(5px); }
.modal.is-open { display: grid; }
.modal-card { width: min(520px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 26px; border-radius: 18px; background: var(--white); box-shadow: 0 25px 80px rgba(17,26,47,.25); }
.modal-heading { display: flex; justify-content: space-between; gap: 18px; margin-bottom: 24px; }
.modal-heading h2 { margin: 4px 0 0; color: var(--navy); font-size: 17px; }
.modal-close { width: 30px; height: 30px; border-radius: 8px; background: var(--paper); color: var(--navy); font-size: 20px; line-height: 1; }
.modal-hint { margin: -8px 0 20px; color: var(--muted); font-size: 9px; }
.modal-card form > .button { margin-top: 19px; }
.share-edit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.share-edit-card { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.share-edit-title { display: flex; align-items: center; gap: 8px; margin-bottom: 15px; color: var(--navy); font-size: 9px; }
.share-edit-title .share-avatar { width: 28px; height: 28px; }

.report-summary { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.report-summary > div { padding: 18px; border-radius: 15px; background: var(--navy); color: #fff; }
.report-summary span { display: block; color: #94a1ba; font-size: 9px; }
.report-summary strong { display: block; margin-top: 9px; color: var(--lime); font-family: 'Manrope', sans-serif; font-size: 17px; direction: ltr; text-align: right; }
.report-summary .green-text { color: #83e2bd; }
.report-summary .orange-text { color: #f4bd77; }
.report-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.report-panel { padding: 24px; }
.bar-report { margin-top: 28px; }
.bar-label { display: flex; justify-content: space-between; gap: 15px; color: var(--navy); font-size: 10px; }
.bar-label b { padding: 2px 5px; margin-right: 3px; border-radius: 5px; background: var(--paper); color: var(--muted); font-family: 'DM Mono', monospace; font-size: 8px; font-weight: 400; }
.bar-label strong { color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 10px; direction: ltr; }
.bar-track { height: 9px; margin: 9px 0 21px; overflow: hidden; border-radius: 20px; background: var(--paper); }
.bar-track span { display: block; height: 100%; border-radius: inherit; }
.bar-dh { background: #96c3d2; }
.bar-gi { background: #ddc66d; }
.donut-wrap { display: flex; align-items: center; gap: 23px; margin-top: 25px; }
.donut { width: 126px; height: 126px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(var(--lime-deep) calc(var(--value) * 1%), #edf1f5 0); }
.donut::before { content: ''; position: absolute; width: 94px; height: 94px; border-radius: 50%; background: var(--white); }
.donut > div { position: relative; z-index: 1; text-align: center; }
.donut strong, .donut span { display: block; }
.donut strong { color: var(--navy); font-family: 'Manrope', sans-serif; font-size: 19px; direction: ltr; }
.donut span { color: var(--muted); font-size: 8px; }
.donut-wrap p { margin: 0; color: var(--muted); font-size: 9px; }
.green-text { color: var(--green) !important; }
.orange-text { color: var(--orange) !important; }
.mini-progress { width: 90px; height: 6px; display: inline-block; overflow: hidden; vertical-align: middle; border-radius: 20px; background: #eef1f5; }
.mini-progress span { display: block; height: 100%; border-radius: inherit; background: var(--lime-deep); }
.data-table td small { margin-right: 7px; color: var(--muted); font-family: 'DM Mono', monospace; font-size: 8px; }
.settings-panel { max-width: 760px; padding: 28px; }
.settings-profile { display: flex; align-items: center; gap: 16px; }
.settings-profile h2 { margin: 2px 0; color: var(--navy); font-size: 17px; }
.settings-profile p { margin: 0; color: var(--muted); font-family: 'Manrope', sans-serif; font-size: 10px; direction: ltr; text-align: right; }
.settings-panel hr { margin: 28px 0; border: 0; border-top: 1px solid var(--line); }
.settings-form h3 { margin: 0 0 18px; color: var(--navy); font-size: 14px; }

.login-body { min-height: 100vh; display: grid; place-items: center; overflow: hidden; padding: 20px; background: var(--navy); }
.login-card { position: relative; z-index: 1; width: min(430px, 100%); padding: 39px 42px 31px; border: 1px solid rgba(255,255,255,.1); border-radius: 21px; background: rgba(20,31,55,.84); box-shadow: 0 25px 90px rgba(0,0,0,.2); }
.login-brand { margin-bottom: 58px; }
.login-brand .brand-symbol { box-shadow: 0 8px 30px rgba(203,243,110,.25); }
.login-heading .eyebrow { color: #8290ac; }
.login-heading h1 { margin: 16px 0 9px; color: #f7f9fd; font-family: 'Cairo', 'Manrope', sans-serif; font-size: 34px; font-weight: 700; letter-spacing: -.04em; line-height: 1.45; }
.login-heading h1 em { color: var(--lime); font-style: normal; }
.login-heading p { margin: 0; color: #8c99b2; font-size: 10px; }
.login-form { display: grid; gap: 15px; margin-top: 32px; }
.login-form label { color: #a4afc5; }
.login-form label input { border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); color: #fff; }
.login-form label input:focus { border-color: var(--lime); box-shadow: 0 0 0 3px rgba(203,243,110,.12); }
.password-field { position: relative; }
.password-field input { padding-left: 56px; }
.password-field button { position: absolute; left: 9px; top: 14px; color: var(--lime); background: transparent; font-size: 8px; }
.login-form .button { margin-top: 7px; min-height: 47px; background: var(--lime); color: var(--navy); }
.login-note { display: flex; align-items: center; gap: 6px; margin-top: 27px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,.08); }
.login-note > span { padding: 3px 5px; border-radius: 5px; font-family: 'DM Mono', monospace; font-size: 8px; }
.login-note > span:first-child { color: #80a4b3; background: rgba(128,164,179,.14); }
.login-note > span:nth-child(2) { color: #ddc66d; background: rgba(221,198,109,.14); }
.login-note p { margin: 0 0 0 3px; color: #77849f; font-size: 8px; }
.login-decoration { position: fixed; width: 50vw; height: 50vw; border: 1px solid rgba(203,243,110,.1); border-radius: 50%; pointer-events: none; }
.decoration-one { top: -28vw; right: -12vw; box-shadow: 0 0 0 70px rgba(203,243,110,.02), 0 0 0 140px rgba(203,243,110,.018); }
.decoration-two { bottom: -38vw; left: -20vw; border-color: rgba(255,255,255,.05); }

@media (max-width: 1120px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .detail-overview { grid-template-columns: 1fr 1fr; }
  .detail-client { grid-column: 1 / -1; min-height: 105px !important; border-top: 1px solid rgba(255,255,255,.12); }
  .detail-overview > div:nth-child(2) { border-left: 0; }
  .form-layout { grid-template-columns: minmax(0, 1fr) 265px; }
}

@media (max-width: 860px) {
  .sidebar { transform: translateX(105%); right: 0; left: auto; transition: transform .35s var(--ease); box-shadow: -10px 0 40px rgba(0,0,0,.14); }
  .sidebar.is-open { transform: translateX(0); }
  .app-main { width: 100%; margin-left: 0; }
  .mobile-menu { display: block; }
  .topbar { flex-direction: row-reverse; }
  .topbar-context { margin-right: auto; margin-left: 15px; }
  .form-layout, .detail-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .detail-panel:nth-child(3) { grid-column: auto; }
  .report-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .page-content { padding: 28px 16px 45px; }
  .topbar { height: 65px; padding: 0 17px; }
  .topbar-user > span { display: none; }
  .page-header, .detail-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .page-header { margin-bottom: 25px; }
  .page-header h1, .detail-heading h1 { font-size: 28px; }
  .page-header .button { align-self: stretch; }
  .metric-grid { gap: 9px; }
  .metric-card { min-height: 145px; padding: 15px; border-radius: 14px; }
  .metric-card > strong { font-size: 19px; }
  .metric-card > small { font-size: 8px; }
  .panel-projects > .panel-heading, .panel-next > .panel-heading, .detail-panel, .form-panel, .report-panel, .settings-panel { padding: 18px 15px; }
  .table-wrap { overflow-x: auto; }
  .data-table { min-width: 680px; }
  .projects-table { min-width: 820px; }
  .listing-toolbar { align-items: stretch; flex-direction: column; }
  .search-form { width: 100%; }
  .detail-overview { grid-template-columns: 1fr; }
  .detail-overview > div { min-height: 108px; border-left: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .detail-overview > div:last-child { border-bottom: 0; }
  .detail-client { grid-column: auto; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .form-grid, .share-edit-grid { grid-template-columns: 1fr; }
  .form-grid label.full { grid-column: auto; }
  .inline-form { align-items: stretch; flex-direction: column; padding: 10px; }
  .inline-form .button { width: 100%; }
  .report-summary { gap: 8px; }
  .report-summary > div { padding: 13px; }
  .report-summary strong { font-size: 13px; }
  .donut-wrap { align-items: flex-start; flex-direction: column; }
  .login-card { padding: 31px 23px 25px; }
  .login-brand { margin-bottom: 40px; }
}

