:root {
  color-scheme: light;
  --bg: #eef2f3;
  --surface: #ffffff;
  --surface-2: #f4f7f7;
  --text: #14262c;
  --muted: #617178;
  --line: #d3dddf;
  --primary: #08786d;
  --primary-strong: #075e57;
  --good: #247a5b;
  --warn: #a76417;
  --danger: #b83f45;
  --shadow: 0 12px 32px rgba(35, 55, 62, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.app {
  min-height: 100vh;
}

.shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 42px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.brand h1,
.login-brand h1 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.05;
}

.brand p,
.login-brand p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.top-actions,
.tabs,
.row,
.module-actions,
.form-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tabs {
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 4px 10px;
}

.btn,
.tab,
.quiet-button {
  min-height: 40px;
  border-radius: 7px;
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 750;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.btn:hover,
.tab:hover,
.quiet-button:hover {
  transform: translateY(-1px);
  background: var(--primary-strong);
  box-shadow: 0 6px 16px rgba(8, 120, 109, 0.14);
}

.btn.secondary,
.tab,
.quiet-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

.tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn.good {
  background: var(--good);
}

.btn.warn {
  background: var(--warn);
}

.btn.danger {
  background: var(--danger);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #e8eeee;
}

.login-panel {
  width: min(420px, 100%);
}

.login-card,
.panel,
.module-board,
.user-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: none;
}

.login-card,
.panel {
  padding: 20px;
}

.login-brand {
  margin-bottom: 16px;
  padding: 0 4px;
}

.login-card {
  box-shadow: var(--shadow);
}

.stack {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #4f636a;
  font-size: 0.92rem;
  font-weight: 700;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--surface);
  outline: none;
}

input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 120, 109, 0.14);
}

.error {
  color: var(--danger);
  min-height: 1.25em;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.module-card {
  min-height: 176px;
  display: grid;
  align-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: var(--surface);
  box-shadow: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.module-card:hover {
  transform: translateY(-2px);
  border-color: #a8c7c3;
  box-shadow: var(--shadow);
}

.module-card .btn {
  justify-self: start;
  min-width: 88px;
}

.module-card h2,
.panel h2,
.module-board h2,
.user-card h3 {
  margin: 0;
  font-size: 1.08rem;
  color: var(--text);
}

.module-card p,
.panel p,
.module-board p {
  color: var(--muted);
  line-height: 1.55;
}

.module-board {
  padding: 18px;
}

.module-layout {
  display: grid;
  gap: 16px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.stat strong {
  display: block;
  font-size: 1.5rem;
}

.stat span {
  color: var(--muted);
  font-size: 0.84rem;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
}

.memory-card {
  aspect-ratio: 1;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 2rem;
  font-weight: 850;
}

.memory-card.open,
.memory-card.matched {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line);
}

.reaction-stage {
  min-height: 260px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  text-align: center;
  padding: 22px;
}

.reaction-stage.waiting {
  background: #f2e7d6;
}

.reaction-stage.ready {
  background: #dff1e8;
}

.reaction-stage.too-soon {
  background: #f2dede;
}

.reaction-stage strong {
  display: block;
  font-size: 2rem;
}

.scramble-word {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  min-width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 18px;
  background: var(--surface-2);
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.masraf-module {
  display: grid;
  gap: 16px;
}

.uyap-module {
  display: grid;
  gap: 14px;
}

.vpn-module {
  display: grid;
  gap: 14px;
}

.masraf-header,
.uyap-header,
.vpn-header,
.project-tabs,
.project-strip,
.entry-card,
.summary-card,
.ledger-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.masraf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.uyap-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.vpn-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.uyap-header h2 {
  margin: 0;
}

.vpn-header h2 {
  margin: 0;
}

.uyap-header p:last-child {
  margin-bottom: 0;
}

.vpn-header p:last-child {
  margin-bottom: 0;
}

.uyap-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 14px;
  align-items: stretch;
}

.vpn-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: stretch;
}

.vpn-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vpn-actions .quiet-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
}

.vpn-detail-list {
  display: grid;
  gap: 8px;
}

.vpn-detail-list div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface-2);
}

.vpn-detail-list span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.vpn-detail-list strong {
  overflow-wrap: anywhere;
}

.vpn-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.vpn-steps article {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface-2);
}

.vpn-steps span {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  font-weight: 850;
}

.vpn-steps strong {
  display: block;
}

.vpn-steps p {
  margin: 5px 0 0;
}

.vpn-usage-table {
  min-width: 920px;
}

.vpn-devices-table {
  min-width: 880px;
}

.sync-badge {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.sync-badge.synced {
  border-color: rgba(36, 122, 91, 0.3);
  background: #dff1e8;
  color: var(--good);
}

.sync-badge.pending,
.sync-badge.needs_google,
.sync-badge.ready_for_google {
  border-color: rgba(173, 107, 22, 0.28);
  background: #f2e7d6;
  color: var(--warn);
}

.sync-badge.ignored {
  color: var(--muted);
}

.source-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  border: 1px solid color-mix(in srgb, var(--source-color) 32%, transparent);
  border-radius: 999px;
  padding: 4px 10px;
  background: color-mix(in srgb, var(--source-color) 12%, white);
  color: var(--source-color);
  font-size: 0.78rem;
  font-weight: 850;
  white-space: nowrap;
}

.source-badge::before,
.source-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--source-color);
  content: "";
  display: inline-block;
}

.source-badge.avukat,
.source-dot.avukat {
  --source-color: #2563EB;
}

.source-badge.taraf,
.source-dot.taraf {
  --source-color: #16A34A;
}

.uyap-table {
  min-width: 1260px;
}

.kicker {
  margin: 0 0 6px;
  color: var(--primary);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.status-pill {
  min-width: 96px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  text-align: center;
}

.project-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
}

.project-tab {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 16px;
  background: transparent;
  color: var(--text);
}

.project-tab span {
  font-weight: 850;
}

.project-tab small {
  color: var(--muted);
  font-weight: 750;
}

.project-tab.active {
  background: var(--primary);
  color: #fff;
}

.project-tab.active small {
  color: rgba(255, 255, 255, 0.82);
}

.project-strip {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.project-strip h2,
.masraf-header h2 {
  margin: 0;
}

.project-strip p:last-child {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  text-align: right;
}

.masraf-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.9fr);
  gap: 14px;
  align-items: start;
}

.entry-card,
.summary-card,
.ledger-card {
  padding: 18px;
}

.card-heading,
.ledger-heading,
.subsection-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.card-heading {
  margin-bottom: 18px;
}

.card-heading small,
.subsection-title span {
  color: var(--muted);
  font-weight: 750;
  text-align: right;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wide {
  grid-column: 1 / -1;
}

select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  min-height: 82px;
  padding: 11px 12px;
  resize: vertical;
}

select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8, 120, 109, 0.14);
}

.subsection {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--surface-2);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.amount-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.attachment-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  background: var(--surface);
}

.attachment-item strong,
.attachment-item span {
  display: block;
  overflow-wrap: anywhere;
}

.attachment-item span,
.muted-line,
.muted {
  color: var(--muted);
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--text);
}

.form-actions,
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.form-actions {
  margin-top: 18px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--primary-strong);
  font-weight: 800;
}

.text-button.danger {
  color: var(--danger);
}

.partner-cards {
  display: grid;
  gap: 10px;
}

.partner-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--surface);
}

.partner-card span,
.partner-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
}

.partner-card strong {
  display: block;
  margin: 7px 0 4px;
  font-size: 1.18rem;
}

.category-box {
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.category-box summary {
  padding: 14px;
  cursor: pointer;
  font-weight: 850;
}

.category-summary {
  display: grid;
  padding: 0 14px 14px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 11px 0;
}

.category-row span,
.category-row small {
  color: var(--muted);
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 1060px;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 11px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.description-cell strong,
.description-cell small,
.money-cell small,
.rate-cell small {
  display: block;
}

.description-cell small,
.money-cell small,
.rate-cell small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
}

.money-cell {
  white-space: nowrap;
}

.document-list {
  display: grid;
  gap: 6px;
}

.document-button {
  color: var(--primary-strong);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.empty-state {
  margin: 16px 0 0;
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  color: var(--muted);
  font-weight: 750;
  text-align: center;
}

.admin-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}

.users-list {
  display: grid;
  gap: 12px;
}

.activity-panel {
  margin-top: 16px;
}

.module-settings {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.setting-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--surface-2);
}

.setting-card span,
.setting-card strong {
  display: block;
}

.setting-card span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.setting-card strong {
  margin-top: 6px;
  font-size: 1.35rem;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(187, 62, 62, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: #f2dede;
}

.danger-zone p {
  margin: 5px 0 0;
  color: var(--muted);
}

.activity-heading,
.activity-item {
  display: grid;
  gap: 10px;
}

.activity-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.activity-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.activity-list {
  display: grid;
  gap: 8px;
  max-height: 520px;
  overflow: auto;
  padding-right: 4px;
}

.activity-item {
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--surface);
}

.activity-item strong,
.activity-item span,
.activity-item time,
.activity-item small {
  display: block;
}

.activity-item span,
.activity-item time,
.activity-item small,
.activity-item p {
  color: var(--muted);
}

.activity-item time,
.activity-item small {
  text-align: right;
}

.activity-item p {
  grid-column: 1 / -1;
  margin: 0;
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.user-card {
  padding: 18px;
  background: var(--surface);
}

.user-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  color: var(--text);
}

.check input {
  width: 18px;
  min-height: 18px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  max-width: min(380px, calc(100vw - 36px));
  transform: translateY(140%);
  transition: transform 180ms ease;
  border-radius: 8px;
  padding: 13px 15px;
  background: var(--text);
  color: var(--surface);
  box-shadow: var(--shadow);
}

.toast.show {
  transform: translateY(0);
}

/* Masraf Takip has its own denser, project-led workspace. */
.masraf-module {
  --masraf-ink: #143d42;
  --masraf-accent: #08786d;
  --masraf-accent-soft: #e3f4ee;
  --masraf-gold: #b86c16;
  gap: 18px;
}

.masraf-header,
.project-browser,
.project-overview,
.entry-card,
.summary-card,
.ledger-card {
  border-color: #cddde0;
  box-shadow: none;
}

.masraf-header {
  padding: 24px;
  border-top: 4px solid var(--masraf-accent);
  background: #f6fbfa;
}

.masraf-header h2,
.project-overview h2 {
  color: var(--masraf-ink);
}

.masraf-header-copy > p:last-child {
  margin: 7px 0 0;
  color: var(--muted);
}

.masraf-header-side,
.ledger-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-stat {
  min-width: 76px;
  display: grid;
  gap: 1px;
  text-align: right;
}

.header-stat strong {
  color: var(--masraf-ink);
  font-size: 1.5rem;
  line-height: 1;
}

.header-stat span,
.record-count {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill {
  border-color: #b7d6cf;
  background: var(--masraf-accent-soft);
  color: var(--masraf-ink);
}

.project-browser {
  padding: 18px;
  background: var(--surface);
}

.section-intro {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 13px;
}

.section-intro p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.project-tabs {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.project-tab {
  min-height: 154px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: start;
  gap: 8px;
  border: 1px solid #d7e4e5;
  padding: 14px;
  background: #fbfdfd;
  text-align: left;
}

.project-tab:hover {
  border-color: #8abdb6;
  background: #f2faf7;
}

.project-tab-title {
  color: var(--masraf-ink);
  font-size: 0.98rem;
  font-weight: 850;
}

.project-tab small {
  grid-column: 1 / -1;
  min-height: 34px;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.3;
}

.project-tab strong {
  color: var(--masraf-ink);
  font-size: 0.92rem;
}

.project-tab em {
  align-self: end;
  color: var(--muted);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.project-tab-real {
  grid-column: 1 / -1;
  border-top: 1px solid #d7e4e5;
  padding-top: 8px;
  color: var(--masraf-accent);
  font-size: 0.78rem;
  font-weight: 850;
}

.project-tab.active {
  border-color: var(--masraf-accent);
  background: var(--masraf-ink);
}

.project-tab.active .project-tab-title,
.project-tab.active strong {
  color: #fff;
}

.project-tab.active small,
.project-tab.active em,
.project-tab.active .project-tab-real {
  color: #cce8e0;
}

.project-tab.active .project-tab-real {
  border-top-color: #416a6e;
}

.project-overview {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  padding: 22px 24px;
  background: var(--masraf-accent-soft);
}

.project-address,
.project-note {
  margin: 7px 0 0;
  color: #315d60;
  font-weight: 700;
}

.project-note {
  display: inline-block;
  border-left: 3px solid var(--masraf-gold);
  padding-left: 9px;
  color: #75430d;
}

.project-overview-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(104px, 1fr));
  gap: 18px;
}

.project-overview-metrics div {
  display: grid;
  gap: 5px;
}

.project-overview-metrics span,
.summary-total span {
  color: #4d7375;
  font-size: 0.74rem;
  font-weight: 850;
  text-transform: uppercase;
}

.project-overview-metrics strong {
  color: var(--masraf-ink);
  font-size: 0.94rem;
  white-space: nowrap;
}

.entry-card,
.summary-card,
.ledger-card {
  padding: 22px;
}

.entry-card .card-heading,
.summary-card .card-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe7e7;
}

.subsection {
  border-color: #dce9e8;
  background: #f7fbfa;
}

.subsection-title h3 {
  margin: 2px 0 0;
  color: var(--masraf-ink);
  font-size: 1rem;
}

.subsection-title > strong {
  color: var(--masraf-accent);
  font-size: 1.05rem;
  white-space: nowrap;
}

.amount-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.amount-field input {
  border-color: #cadcdb;
  background: #fff;
}

.summary-total {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe7e7;
}

.summary-total strong {
  color: var(--masraf-ink);
  font-size: 1.85rem;
  line-height: 1.1;
}

.summary-total small {
  color: var(--muted);
  font-weight: 800;
}

.interest-summary-total {
  border: 1px solid #b7d6cf;
  border-radius: 8px;
  padding: 14px;
  background: var(--masraf-accent-soft);
}

.interest-summary-total strong,
.partner-card .interest-value,
.category-row .interest-value {
  color: var(--masraf-accent);
}

.partner-card .interest-value {
  margin-top: 7px;
}

.category-row .interest-value {
  grid-column: 2 / -1;
  text-align: right;
}

.partner-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.partner-card {
  border-color: #d4e5e1;
  background: #f8fcfb;
}

.category-box {
  border-color: #d6e5e3;
}

.ledger-heading {
  padding-bottom: 16px;
  border-bottom: 1px solid #dbe7e7;
}

.record-count {
  min-width: 58px;
  text-align: right;
}

.ledger-card table {
  min-width: 980px;
}

.ledger-card th {
  color: #527477;
}

.ledger-card tbody tr:hover {
  background: #f8fcfb;
}

@media (max-width: 1100px) {
  .project-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .project-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-overview,
  .section-intro {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-overview-metrics {
    width: 100%;
  }
}

@media (max-width: 580px) {
  .masraf-header,
  .masraf-header-side,
  .ledger-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .masraf-header-side {
    width: 100%;
  }

  .header-stat,
  .record-count {
    text-align: left;
  }

  .project-tabs,
  .project-overview-metrics,
  .partner-cards,
  .amount-grid {
    grid-template-columns: 1fr;
  }

  .project-tab {
    min-height: 116px;
  }
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .dashboard-grid,
  .admin-grid,
  .masraf-workspace,
  .uyap-grid,
  .vpn-grid,
  .vpn-steps {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .activity-heading,
  .activity-item {
    grid-template-columns: 1fr;
  }

  .activity-item time,
  .activity-item small {
    text-align: left;
  }
}

@media (max-width: 580px) {
  .shell {
    width: min(100% - 22px, 1220px);
    padding-top: 16px;
  }

  .dashboard-grid,
  .stats,
  .checks,
  .project-tabs,
  .form-grid,
  .amount-grid,
  .module-settings,
  .vpn-actions {
    grid-template-columns: 1fr;
  }

  .masraf-header,
  .uyap-header,
  .vpn-header,
  .project-strip,
  .card-heading,
  .ledger-heading,
  .subsection-title,
  .danger-zone {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-strip p:last-child {
    text-align: left;
  }

  .memory-grid {
    gap: 7px;
  }
}
