.receipt-dialog,
.receipt-dialog * {
  font-family: Arial, Helvetica, sans-serif !important;
}

.receipt-dialog {
  background: linear-gradient(145deg, #f8efdf 0%, #ead9bc 100%);
  border: 1px solid #d8c19f;
  border-radius: 22px;
  box-shadow: 0 34px 95px rgba(67, 36, 25, .34);
}

.receipt-modal-content {
  padding: 20px;
  background: linear-gradient(145deg, #f8efdf 0%, #ead9bc 100%);
  font-family: Arial, Helvetica, sans-serif;
}

.receipt-sheet {
  background: #fffdfa;
  border: 1px solid #dfccb0;
  border-radius: 14px;
  box-shadow: 0 13px 32px rgba(91, 51, 31, .11);
}

.receipt-sheet,
.receipt-sheet * {
  font-family: Arial, Helvetica, sans-serif !important;
}

.receipt-head { border-bottom-color: #b61928; }
.receipt-brand-copy strong,
.receipt-title h2 { color: #981521; font-family: Arial, Helvetica, sans-serif; font-weight: 800; }
.receipt-logo { filter: drop-shadow(0 6px 10px rgba(151, 20, 32, .15)); }
.receipt-amount { background: linear-gradient(145deg, #c92334, #94131f); box-shadow: 0 10px 24px rgba(151, 20, 32, .22); }
.receipt-amount strong { font-family: Arial, Helvetica, sans-serif; }
.receipt-grid { border-color: #e3d4bf; background: #fffefa; }
.receipt-grid > div { border-bottom-color: #e8dccb; }
.receipt-grid > div:nth-child(odd) { border-right-color: #e8dccb; }
.receipt-grid small { color: #805f55; }
.receipt-grid strong { color: #65111a; }
.receipt-foot { border-top-color: #e3d4bf; color: #805f55; }
.receipt-actions { gap: 11px; margin-top: 17px; }
.receipt-actions button { min-width: 96px; border-radius: 10px; font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease; }
.receipt-actions button:hover { transform: translateY(-1px); }
#download-receipt { background: linear-gradient(145deg, #cb2636, #971521); color: #fff; border: 1px solid #8f111e; box-shadow: 0 8px 19px rgba(151, 20, 32, .27); }
#download-receipt:hover { background: linear-gradient(145deg, #d62d3f, #a41724); box-shadow: 0 11px 24px rgba(151, 20, 32, .34); }
#print-receipt,
#close-receipt { background: #fff; color: #981521; border: 1px solid rgba(151, 20, 32, .3); box-shadow: 0 5px 14px rgba(91, 51, 31, .08); }
#print-receipt:hover,
#close-receipt:hover { background: #fff8f4; border-color: #981521; box-shadow: 0 7px 17px rgba(151, 20, 32, .14); }

.dues-layout [data-receipt-payment] {
  background: linear-gradient(145deg, #c92334, #981521);
  color: #fff;
  border: 1px solid #8f111e;
  font: 800 13px Arial, Helvetica, sans-serif;
  box-shadow: 0 6px 15px rgba(151, 20, 32, .2);
}

.dues-layout [data-receipt-payment]:hover {
  background: #86131e;
  color: #fff;
}

.dues-layout [data-edit-payment] {
  background: #fff;
  color: #981521;
  border: 1px solid rgba(151, 20, 32, .3);
  font: 800 13px Arial, Helvetica, sans-serif;
  box-shadow: 0 5px 14px rgba(91, 51, 31, .08);
}

.dues-layout [data-edit-payment]:hover {
  background: #fff8f4;
  color: #86131e;
  border-color: #981521;
}

#edit-payment-dialog,
#edit-payment-dialog * {
  font-family: Arial, Helvetica, sans-serif !important;
}

#edit-payment-dialog {
  background: linear-gradient(145deg, #fffdfa, #f8efdf);
  border: 1px solid #d8c19f;
  box-shadow: 0 30px 90px rgba(67, 36, 25, .3);
}

#edit-payment-dialog .dialog-head h2,
#edit-payment-dialog label {
  color: #981521;
}

#edit-payment-dialog .dialog-head h2 {
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .02em;
}

#edit-payment-dialog input,
#edit-payment-dialog select {
  border-color: #dfccb0;
  background: #fff;
}

#edit-payment-dialog .dialog-actions .primary {
  background: linear-gradient(145deg, #c92334, #981521);
  color: #fff;
  border: 1px solid #8f111e;
  box-shadow: 0 7px 17px rgba(151, 20, 32, .24);
}

#edit-payment-dialog .dialog-actions .primary:hover {
  background: linear-gradient(145deg, #d12b3c, #a41724);
}

#edit-payment-dialog #cancel-edit-payment {
  background: #fff;
  color: #981521;
  border: 1px solid rgba(151, 20, 32, .3);
  box-shadow: 0 5px 14px rgba(91, 51, 31, .08);
}

#edit-payment-dialog #cancel-edit-payment:hover {
  background: #fff8f4;
  border-color: #981521;
}

#new-member-dialog,
#new-member-dialog * {
  font-family: Arial, Helvetica, sans-serif !important;
}

#new-member-dialog {
  background: linear-gradient(145deg, #fffdfa, #f8efdf);
  border: 1px solid #d8c19f;
  box-shadow: 0 30px 90px rgba(67, 36, 25, .3);
}

#new-member-dialog .dialog-head h2,
#new-member-dialog label {
  color: #981521;
}

#new-member-dialog .dialog-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .02em;
}

#new-member-dialog label small {
  color: #805f55;
  font-weight: 500;
  line-height: 1.45;
}

#new-member-dialog input,
#new-member-dialog select {
  min-width: 0;
  border-color: #dfccb0;
  background: #fff;
}

#new-member-dialog .dialog-actions .primary {
  background: linear-gradient(145deg, #c92334, #981521);
  color: #fff;
  border: 1px solid #8f111e;
  box-shadow: 0 7px 17px rgba(151, 20, 32, .24);
}

#new-member-dialog #cancel-new-member {
  background: #fff;
  color: #981521;
  border: 1px solid rgba(151, 20, 32, .3);
}

.application-layout .application-filters {
  gap: 8px;
  padding: 6px;
  background: linear-gradient(145deg, #f3e7d3, #e8d6ba);
  border: 1px solid #dcc6a2;
  box-shadow: 0 8px 20px rgba(91, 51, 31, .09);
}

.application-layout .application-filters button,
.application-layout .application-filters button.active {
  background: #fff;
  color: #981521;
  border: 1px solid rgba(151, 20, 32, .2);
  font: 800 12px Arial, Helvetica, sans-serif;
  box-shadow: 0 4px 11px rgba(91, 51, 31, .07);
}

.application-layout .application-filters button:hover,
.application-layout .application-filters button.active {
  border-color: #981521;
  box-shadow: 0 6px 15px rgba(151, 20, 32, .15);
}

.application-layout .application-filters button.active {
  outline: 2px solid rgba(151, 20, 32, .09);
}

.application-layout .table-panel {
  border-color: #dcc6a2;
  box-shadow: 0 12px 28px rgba(91, 51, 31, .1);
}

.application-layout .table-panel thead,
.application-layout .table-panel th {
  background: linear-gradient(145deg, #fbf3e6, #efdfc7);
}

.application-layout .table-panel th {
  color: #981521;
  border-bottom: 1px solid #dcc6a2;
  font: 800 11px Arial, Helvetica, sans-serif;
  letter-spacing: .07em;
}

.announcement-layout .announcement h3 {
  color: #981521;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 800;
}

.members-layout .table-panel,
.dues-layout .table-panel {
  border-color: #dcc6a2;
  box-shadow: 0 12px 28px rgba(91, 51, 31, .1);
}

.members-layout .table-panel thead,
.members-layout .table-panel th,
.dues-layout .table-panel thead,
.dues-layout .table-panel th {
  background: linear-gradient(145deg, #fbf3e6, #efdfc7);
}

.members-layout .table-panel th,
.dues-layout .table-panel th {
  color: #981521;
  border-bottom: 1px solid #dcc6a2;
  font: 800 11px Arial, Helvetica, sans-serif;
  letter-spacing: .07em;
}

.application-layout .application-actions [data-save-plan],
.application-layout .application-actions [data-review="pending"] {
  background: #fff;
  color: #981521;
  border: 1px solid rgba(151, 20, 32, .34);
  box-shadow: 0 5px 13px rgba(91, 51, 31, .08);
  font-family: Arial, Helvetica, sans-serif;
}

.application-layout .application-actions [data-save-plan],
.application-layout .application-actions [data-review="pending"] {
  font-size: 0;
}

.application-layout .application-actions [data-save-plan]::after {
  content: "Kaydet";
  font-size: 11px;
}

.application-layout .application-actions [data-save-plan] {
  background: linear-gradient(145deg, #eef8f1, #d5ecd9);
  color: #176448;
  border-color: #acd4ba;
  box-shadow: 0 6px 15px rgba(34, 112, 76, .14), inset 0 1px 0 rgba(255, 255, 255, .85);
}

.application-layout .application-actions [data-save-plan]:hover {
  background: linear-gradient(145deg, #e3f4e8, #c4e4cd);
  color: #0f553b;
  border-color: #78b790;
  box-shadow: 0 8px 18px rgba(34, 112, 76, .2);
}

.application-layout .application-actions [data-review="pending"]::after {
  content: "Beklet";
  font-size: 11px;
}

.application-layout .application-actions [data-review="pending"]:hover {
  background: #fff8f4;
  border-color: #981521;
}

.application-layout .application-actions [data-review="rejected"] {
  background: linear-gradient(145deg, #c92334, #981521);
  color: #fff;
  border: 1px solid #8f111e;
  box-shadow: 0 6px 15px rgba(151, 20, 32, .2);
  font-family: Arial, Helvetica, sans-serif;
}

.application-layout .application-actions [data-review="rejected"]:hover {
  background: #86131e;
}

/* Shared premium table header: applications, members and dues use one exact style. */
.application-layout .table-panel,
.members-layout .table-panel,
.dues-layout .table-panel {
  overflow: hidden;
  border: 1px solid #d8bd92;
  box-shadow: 0 12px 28px rgba(91, 51, 31, .13);
}

.application-layout .table-panel thead,
.members-layout .table-panel thead,
.dues-layout .table-panel thead {
  background: linear-gradient(135deg, #fff8ed 0%, #ead4b2 100%) !important;
  box-shadow: 0 5px 14px rgba(91, 51, 31, .14);
}

.application-layout .table-panel th,
.members-layout .table-panel th,
.dues-layout .table-panel th {
  background: linear-gradient(135deg, #fff8ed 0%, #ead4b2 100%) !important;
  color: #981521 !important;
  border-bottom: 1px solid #d5b98d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), inset -1px 0 0 rgba(171, 129, 78, .12);
  font: 800 11px Arial, Helvetica, sans-serif !important;
  letter-spacing: .07em;
}

.members-layout .table-panel th {
  padding-top: 11px;
  padding-bottom: 11px;
}

.members-layout .member-search-box {
  min-height: 48px;
  padding: 4px 13px 4px 7px;
  background: #fff;
  border: 1.5px solid #b61928;
  border-radius: 13px;
  box-shadow: 0 7px 18px rgba(151, 20, 32, .12), inset 0 1px 0 rgba(255, 255, 255, .9);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.members-layout .member-search-box:focus-within {
  border-color: #8f111e;
  box-shadow: 0 9px 22px rgba(151, 20, 32, .18), 0 0 0 3px rgba(182, 25, 40, .09);
}

.members-layout .member-search-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, #ca2637, #94131f);
  color: #fff;
  box-shadow: 0 6px 14px rgba(151, 20, 32, .24), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.members-layout .member-search-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.members-layout .member-search-box input {
  color: #65111a;
  font-family: Arial, Helvetica, sans-serif;
}

.members-layout .member-search-box input::placeholder {
  color: #98736e;
}

#profile-dialog,
#profile-dialog * {
  font-family: Arial, Helvetica, sans-serif !important;
}

#profile-dialog {
  background: linear-gradient(145deg, #fffdfa 0%, #f8efdf 100%);
  border: 1px solid #d8c19f;
  box-shadow: 0 30px 90px rgba(67, 36, 25, .3);
}

#profile-dialog form {
  background: linear-gradient(145deg, rgba(255, 253, 250, .96), rgba(248, 239, 223, .96));
}

#profile-dialog .dialog-head {
  margin-bottom: 16px;
}

#profile-dialog .dialog-head h2 {
  margin: 0;
  color: #981521;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: .02em;
}

#profile-dialog label {
  color: #981521;
  font-weight: 800;
}

#profile-dialog label small {
  color: #805f55;
  font-weight: 500;
  line-height: 1.45;
}

#profile-dialog input {
  background: #fff;
  border-color: #dfccb0;
  color: #65111a;
}

#profile-dialog input:focus {
  outline: 0;
  border-color: #b61928;
  box-shadow: 0 0 0 3px rgba(182, 25, 40, .09);
}

#profile-dialog .close {
  background: #fff;
  color: #981521;
  border: 1px solid rgba(151, 20, 32, .18);
}

#import-members-dialog {
  width: min(980px, calc(100vw - 32px));
  max-width: 980px;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

#import-members-dialog .member-import-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

#import-members-dialog .dialog-head > div {
  min-width: 0;
}

#import-members-dialog .dialog-head p,
#import-members-dialog .import-member-help,
#import-members-dialog .import-summary {
  overflow-wrap: anywhere;
}

#import-members-dialog .import-member-toolbar {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto;
}

#import-members-dialog .import-file-label,
#import-members-dialog #member-import-file {
  min-width: 0;
  max-width: 100%;
  width: 100%;
}

#import-members-dialog .import-preview-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

#import-members-dialog .import-preview-wrap table {
  width: 100%;
  min-width: 720px;
}

#import-members-dialog .import-preview-wrap th,
#import-members-dialog .import-preview-wrap td {
  padding-left: 14px;
  padding-right: 14px;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  #import-members-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
  }

  #import-members-dialog .member-import-content {
    padding: 19px 14px;
    max-height: calc(100vh - 20px);
  }

  #import-members-dialog .import-member-toolbar {
    grid-template-columns: 1fr;
  }

  #import-members-dialog .import-member-toolbar .secondary,
  #import-members-dialog .dialog-actions button {
    width: 100%;
  }

  #import-members-dialog .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .receipt-actions button { min-width: 0; }
  .receipt-dialog { border-radius: 17px; }
  .receipt-modal-content { padding: 11px; }
}

@media print {
  .receipt-dialog,
  .receipt-modal-content { background: #fff !important; }
  .receipt-sheet { box-shadow: none; border-radius: 0; }
}
