*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: Tahoma, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #050816;
  color: #f5f5f5;
}

a {
  text-decoration: none;
  color: inherit;
}

/* نوار بالا */
.topbar {
  width: 100%;
  padding: 0.75rem 1rem;
  background: linear-gradient(90deg, #1f2937, #111827);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.btn-small {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid #4b5563;
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.75rem;
}

.btn-small:hover {
  background: #4b5563;
}

/* محتوای اصلی */
.main-content {
  padding: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

/* لاگین */
.auth-wrapper {
  min-height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 380px;
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1rem;
  padding: 1.5rem 1.25rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(107, 114, 128, 0.4);
}

.auth-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 700;
}

.auth-subtitle {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: #9ca3af;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.form-group label {
  font-size: 0.8rem;
  color: #d1d5db;
}

.form-group input {
  padding: 0.55rem 0.7rem;
  border-radius: 0.6rem;
  border: 1px solid #4b5563;
  background: #020617;
  color: #f9fafb;
  font-size: 0.85rem;
}

.form-group input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.4);
}

.btn-primary {
  margin-top: 0.3rem;
  width: 100%;
  padding: 0.6rem 0.8rem;
  border-radius: 0.8rem;
  border: none;
  background: linear-gradient(135deg, #6366f1, #14b8a6);
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.btn-primary:hover {
  opacity: 0.95;
  box-shadow: 0 10px 25px rgba(79, 70, 229, 0.6);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: none;
}

.alert {
  padding: 0.5rem 0.7rem;
  border-radius: 0.6rem;
  font-size: 0.8rem;
  margin-bottom: 0.3rem;
}

.alert-error {
  background: rgba(220, 38, 38, 0.15);
  border: 1px solid rgba(248, 113, 113, 0.6);
  color: #fecaca;
}

.hint {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.hint code {
  direction: ltr;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.2rem 0.4rem;
  border-radius: 0.4rem;
  font-size: 0.75rem;
}

/* داشبورد */
.dashboard-header h1 {
  margin: 0 0 0.3rem 0;
  font-size: 1.1rem;
}

.dashboard-header p {
  margin: 0 0 1rem 0;
  font-size: 0.8rem;
  color: #9ca3af;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.8rem;
}

.dash-card {
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.35), rgba(15, 23, 42, 0.95));
  border-radius: 1rem;
  padding: 0.9rem 0.8rem;
  border: 1px solid rgba(75, 85, 99, 0.6);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  min-height: 90px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease, background 0.12s ease;
}

.dash-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.9);
  border-color: #6366f1;
}

.dash-icon {
  font-size: 1.4rem;
}

.dash-text h2 {
  margin: 0;
  font-size: 0.9rem;
}

.dash-text p {
  margin: 0.1rem 0 0 0;
  font-size: 0.75rem;
  color: #e5e7eb;
}

/* ریسپانسیو */
@media (max-width: 480px) {
  .auth-card {
    margin: 1rem 0.5rem;
  }

  .topbar-title {
    font-size: 0.85rem;
  }
}

.form-section {
  margin-top: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.85rem;
  color: #d1d5db;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid #4b5563;
  background: #020617;
  color: #f9fafb;
}

.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.perm-item label {
  font-size: 0.8rem;
  color: #e5e7eb;
}


.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.6);
  color: #a7f3d0;
  padding: 0.5rem 0.7rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.table-wrapper {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th,
.data-table td {
  border: 1px solid #4b5563;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.data-table th {
  background: rgba(15, 23, 42, 0.9);
}

.data-table tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.7);
}
.table-wrapper {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th,
.data-table td {
  border: 1px solid #4b5563;
  padding: 0.4rem 0.5rem;
  text-align: center;
}

.data-table th {
  background: rgba(15, 23, 42, 0.9);
}

.data-table tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.7);
}

/* دکمه شناور خانه پایین-راست */
.fab-home {
  position: fixed;
  right: 16px;
  bottom: 16px;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, #8b5cf6, #4c1d95);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #f9fafb;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(216, 180, 254, 0.7);
  cursor: pointer;
  z-index: 50;
  transition: transform 0.1s ease, box-shadow 0.1s ease, opacity 0.1s ease;
}

.fab-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 1);
  opacity: 0.96;
}

.fab-home:active {
  transform: translateY(0);
  box-shadow: none;
}
/* صفحه ثبت قرارداد – مبایعه‌نامه */

.contract-page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem 5rem;
}

.contract-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.contract-subtitle {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.contract-card {
  background: radial-gradient(circle at top left, rgba(96, 165, 250, 0.12), transparent),
              rgba(15, 23, 42, 0.9);
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 1.2rem 1.3rem 1.3rem;
  margin-bottom: 1.2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.85);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.card-header h2 {
  font-size: 1.05rem;
  margin: 0;
}

.card-header p {
  font-size: 0.75rem;
  color: #9ca3af;
  margin: 0.1rem 0 0;
}

.card-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #f9fafb;
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(129, 140, 248, 0.5);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.card-body.three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem 1rem;
}

.card-body.two-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.9rem 1.2rem;
}

/* فیلدها */
.contract-card .form-group label {
  font-size: 0.8rem;
  color: #e5e7eb;
  margin-bottom: 0.25rem;
}

.contract-card .form-group input,
.contract-card .form-group textarea {
  width: 100%;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.45rem 0.7rem;
  background-color: rgba(15, 23, 42, 0.8);
  color: #e5e7eb;
  font-size: 0.8rem;
}

.contract-card .form-group textarea {
  resize: vertical;
  min-height: 90px;
}

/* پِل‌ها (دکمه‌های لوکس انتخابی) */

.pill-group {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.pill-group-wrap {
  margin-top: 0.35rem;
}

.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.8);
  font-size: 0.75rem;
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.18s ease-out;
}

.pill:hover {
  border-color: rgba(129, 140, 248, 0.9);
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.4);
}

.pill input[type="checkbox"] {
  display: none;
}

.pill span {
  pointer-events: none;
}

.pill-option {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.65);
  padding: 0.35rem 0.85rem;
}

.pill-option:hover {
  border-color: rgba(129, 140, 248, 0.85);
  background: radial-gradient(circle at top left, rgba(129, 140, 248, 0.3), rgba(15,23,42,0.9));
}

.pill-selected {
  border-color: rgba(129, 140, 248, 1);
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #f9fafb;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.7), 0 12px 25px rgba(79, 70, 229, 0.5);
}

/* متن راهنما */
.hint-text {
  font-size: 0.7rem;
  color: #9ca3af;
  margin-top: 0.3rem;
}

/* دکمه‌های شناور پایین صفحه */

.fab-home {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4c1d95, #7c3aed);
  color: #f9fafb;
  box-shadow: 0 12px 30px rgba(88, 28, 135, 0.8);
  z-index: 40;
}

/* فلش مرحله بعد – کنار خانه */
.fab-next {
  position: fixed;
  right: 5.1rem; /* کمی چپ‌تر از خانه */
  bottom: 1.5rem;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  outline: none;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #f9fafb;
  font-size: 1.4rem;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(34, 197, 94, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 39;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}

.fab-next:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 35px rgba(34, 197, 94, 0.9);
}

/* ریسپانسیو */
@media (max-width: 640px) {
  .contract-page {
    padding-inline: 1rem;
  }
  .fab-next {
    right: 1.5rem;
    bottom: 4.3rem; /* زیر هم قرار بگیرند روی موبایل */
  }
}
.fab-next-icon {
  font-size: 1.8rem;
  line-height: 1;
  transform: translateX(1px);
}
/* ردیف شماره تلفن‌ها */

.phones-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.phone-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.phone-row input {
  flex: 1;
  border-radius: 0.6rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  padding: 0.35rem 0.7rem;
  background: rgba(15,23,42,0.9);
  color: #e5e7eb;
  font-size: 0.8rem;
}

/* کارت به‌موجب */

.authority-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-top: 0.4rem;
}

.authority-card {
  border-radius: 0.9rem;
  border: 1px solid rgba(148,163,184,0.4);
  padding: 0.8rem 0.9rem;
  background: rgba(15,23,42,0.9);
}

.authority-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #e5e7eb;
}

.authority-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.authority-body.three-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.7rem 0.9rem;
}

/* شاهدها */

.witness-list {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.witness-row {
  border-radius: 0.9rem;
  border: 1px solid rgba(148,163,184,0.4);
  padding: 0.7rem 0.8rem;
  background: rgba(15,23,42,0.9);
}

.witness-row-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.7rem 0.9rem;
  margin-bottom: 0.6rem;
}

.witness-actions {
  display: flex;
  justify-content: flex-end;
}

/* دکمه‌های کوچک */

.btn-mini,
.btn-mini-danger {
  margin-top: 0.35rem;
  font-size: 0.7rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(37, 99, 235, 0.15);
  color: #e5e7eb;
  cursor: pointer;
  transition: all 0.15s ease-out;
}

.btn-mini:hover {
  background: rgba(59,130,246,0.35);
  border-color: rgba(59,130,246,0.7);
}

.btn-mini-danger {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(239, 68, 68, 0.5);
}

.btn-mini-danger:hover {
  background: rgba(248, 113, 113, 0.35);
  border-color: rgba(248, 113, 113, 0.9);
}
.hidden {
  display: none !important;
}
.pill-checkbox {
  cursor: pointer;
}

.pill-checkbox input[type="checkbox"] {
  display: none;
}

.pill-checkbox span {
  pointer-events: none;
}

.pill-checkbox input[type="checkbox"]:checked + span,
.pill-checkbox input[type="checkbox"]:checked ~ span {
  /* روی موبایل/دسکتاپ به‌خاطر ساختار ممکنه یکی از این‌ها عمل کنه */
}

.hidden {
  display: none !important;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}

.gallery-folder {
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.9);
  padding: 0.7rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.folder-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.folder-icon {
  font-size: 1.4rem;
}

.folder-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e5e7eb;
}

.folder-body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 0.5rem;
}

.thumb-card {
  position: relative;
  border-radius: 0.7rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.35rem 0.4rem 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.thumb-image-link {
  display: block;
  border-radius: 0.55rem;
  overflow: hidden;
}

.thumb-image {
  width: 100%;
  height: 80px;
  object-fit: cover;
  display: block;
}

.thumb-icon.pdf-icon {
  width: 100%;
  height: 80px;
  border-radius: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, #7c2d12, #b91c1c);
  color: #fee2e2;
}

.thumb-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  margin-top: 0.2rem;
}

.thumb-name {
  flex: 1;
  font-size: 0.7rem;
  color: #e5e7eb;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-delete-thumb {
  padding: 0.15rem 0.4rem;
}

.upload-form {
  margin-top: 0.3rem;
}

.upload-tile {
  position: relative;
  border-radius: 0.7rem;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  padding: 0.4rem 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  font-size: 0.8rem;
  color: #e5e7eb;
  background: rgba(15, 23, 42, 0.9);
}

.upload-tile:hover {
  border-style: solid;
  border-color: rgba(129, 140, 248, 0.9);
  background: rgba(30, 64, 175, 0.35);
}

.upload-plus {
  font-size: 1.2rem;
}

.upload-tile input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.contracts-index .contracts-hero {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.contracts-index .contracts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.contract-type-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contract-type-card .card-header {
  align-items: flex-start;
}

.card-highlights {
  list-style: none;
  padding: 0;
  margin: 0 0 0.8rem 0;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.card-highlights li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.2rem;
}

.card-highlights li::before {
  content: "•";
  font-size: 1rem;
  color: #7c3aed;
}

.badge-soft {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: #e5e7eb;
}

.disabled-card {
  opacity: 0.7;
}

.disabled-card .btn-ghost[disabled] {
  cursor: default;
  opacity: 0.6;
}

/* ردیف دکمه‌های شناور پایین صفحه (قبل / بعد / خانه) */
.fab-row {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  display: flex;
  flex-direction: row-reverse; /* خانه سمت راست */
  gap: 0.75rem;
  z-index: 60;
}

/* داخل fab-row، دکمه‌ها دیگه fixed نیستند */
.fab-row .fab-home,
.fab-row .fab-next,
.fab-row .fab-prev {
  position: static;
}

/* دکمه قرمز مرحله قبل */
.fab-prev {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ef4444;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.45);
  cursor: pointer;
}

.fab-prev:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(239, 68, 68, 0.6);
}

.fab-prev-icon {
  font-size: 1.5rem;
  line-height: 1;
}
/* --- pills مخصوص "تسلیم قرارداد" (خریدار / فروشنده) --- */
.pill-delivery {
  display: inline-flex;
  align-items: center;
  margin: 0.15rem;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.2rem 0.9rem;
  background: #f3f4ff;
  border: 1px solid #d4d4ff;
  font-size: 0.8rem;
}

/* خود چک‌باکس را مخفی کن ولی فعال بماند */
.pill-delivery input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* متن قرص */
.pill-delivery span {
  display: inline-block;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

/* وقتی تیک خورد، ظاهر قرص عوض شود */
.pill-delivery input[type="checkbox"]:checked + span {
  background: #7c3aed;                /* بنفش ملک‌جو */
  color: #fff;
  box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.25);
  border-radius: 999px;
}
  .attachments-grid{
    display:flex;
    flex-direction:column;
    gap:.75rem;
  }
  .attachment-group{
    border-radius:16px;
    border:1px solid rgba(148,163,184,0.35);
    background:rgba(15,23,42,0.75);
    padding:.6rem .7rem .55rem;
  }
  .attachment-group-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:.45rem;
  }
  .attachment-group-title{
    font-size:.85rem;
    color:#e5e7eb;
  }
  .attachment-count{
    font-size:.75rem;
    color:#9ca3af;
  }
  .attachment-items{
    display:flex;
    flex-wrap:wrap;
    gap:.6rem;
  }
  .attachment-card{
    width:130px;
    border-radius:12px;
    border:1px solid rgba(148,163,184,0.35);
    background:rgba(15,23,42,0.9);
    padding:.35rem .35rem .4rem;
    display:flex;
    flex-direction:column;
    gap:.25rem;
  }
  .attachment-thumb-link{
    display:block;
    border-radius:8px;
    overflow:hidden;
  }
  .attachment-thumb{
    width:100%;
    height:80px;
    object-fit:cover;
    display:block;
  }
  .attachment-icon{
    width:100%;
    height:80px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:2rem;
    background:rgba(30,41,59,0.9);
    border-radius:8px;
  }
  .attachment-meta{
    display:flex;
    flex-direction:column;
    gap:.15rem;
  }
  .attachment-name{
    font-size:.75rem;
    color:#e5e7eb;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .attachment-open-link{
    font-size:.72rem;
    color:#38bdf8;
    text-decoration:none;
  }
  .attachment-open-link:hover{
    text-decoration:underline;
  }
/* --- تنظیمات پرینت --- */
@media print {
  /* مخفی کردن دکمه‌های شناور و هدرهای اضافی در پرینت */
  .fab-container, .page-header span, .file-link a {
    display: none !important;
  }

  /* تنظیم رنگ‌ها برای چاپ روی کاغذ سفید */
  body {
    background-color: #fff !important;
    color: #000 !important;
  }
  .modern-card {
    background: #fff !important;
    border: 1px solid #ddd !important;
    box-shadow: none !important;
    break-inside: avoid; /* جلوگیری از شکستن کارت بین صفحات */
    color: #000 !important;
  }
  .card-title h2, .info-value, .info-label {
    color: #000 !important;
  }
  .info-value {
    background: #f9f9f9 !important;
    border: 1px solid #ccc !important;
  }
  
  /* مخفی کردن بخش مالی وقتی کلاس مخصوص فعال است */
  body.printing-no-financial #financial-section {
    display: none !important;
  }
  
  /* یا اگر فقط میخواهید جداول واریزی مخفی شوند و نه کل کارت مالی: */
  /* body.printing-no-financial #financial-tables { display: none !important; } */
}
.datepicker-plot-area {
  max-width: 320px;
  background: #0b1120;
  border-radius: 12px;
  overflow: hidden;
}
.btn-vat{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  padding:.45rem .8rem;
  border-radius:.75rem;
  font-size:.82rem;
  font-weight:700;
  color:#e9d5ff;
  background: linear-gradient(135deg, rgba(168,85,247,.35), rgba(124,58,237,.25));
  border:1px dashed rgba(168,85,247,.65);
  text-decoration:none;
  transition: all .18s ease;
}

.btn-vat:hover{
  background: linear-gradient(135deg, rgba(168,85,247,.55), rgba(124,58,237,.45));
  box-shadow: 0 0 0 4px rgba(168,85,247,.18);
  transform: translateY(-1px);
}
