/* action button in  add/edit/index snippetviewset */
.belowbutton {
    padding: 2rem 3rem !important;  /* Large clickable area */
        min-width: 360px;
    width: auto;
}
.w-dropdown-button .w-dropdown-visible-label {
  display: inline-block;
  font-size: 1.05rem;        /* increase text size (try 1.1rem for bigger) */
  font-weight: 600;          /* semi-bold */
  line-height: 1.2;          /* vertical rhythm */
  letter-spacing: 0.2px;     /* subtle polish */
  padding: 0.18rem 0.4rem;   /* small inner spacing so label sits nicely */
  vertical-align: middle;
  direction: rtl;            /* Persian text direction */
  text-transform: none;      /* keep original casing */
}



/* FixedInlinePanel */
.w-field-row {
  flex-wrap: nowrap !important;       /* prevent wrapping */
  overflow-x: auto;                    /* allow horizontal scrolling if too wide */
  -webkit-overflow-scrolling: touch;   /* smooth scroll on iOS */
  gap: 0.75rem;

}
.w-field-row {
  flex: 0 0 auto;          /* don't shrink/grow unpredictably */
  min-width: 160px;        /* adjust to your needs */
}

/* .w-form-width {
  max-width: 100% !important;
} */


.admin-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 8px;
  box-sizing: border-box;
}

.admin-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table-scroll table {
  width: 100%;
  /* table-layout: fixed; */
  border-collapse: separate;   /* <- important */
  border-spacing: 0 6px;       /* horizontal | vertical */
}

/* default compact cells */
.admin-table-scroll th,
.admin-table-scroll td {
  /* padding: 2px 4px; */
  vertical-align: middle;
  font-size: 0.9rem;
}


/*  */








/* سربرگ حکم */
.inspect-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
  /* direction: rtl; برای اطمینان */
}

.inspect-logo {
  max-height: 80px;
  flex-shrink: 0;
}

.inspect-company-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--w-color-text-label);
}

.inspect-title {
  margin: 0;
  font-size: 1rem;
  font-weight: normal;
  color: var(--w-color-text-context);
}

/* جدول */
.inspect-table {
  width: 100%;
  border-collapse: collapse;
  /* background-color: var(--w-color-surface-field); */
}

.inspect-table th,
.inspect-table td {
  border: 1px solid var(--w-color-border-furniture);
  padding: 0.75rem 1rem;
}

.inspect-table th {
  background-color: var(--w-color-surface-page);
  color: var(--w-color-text-label);
  font-weight: 600;
}

.inspect-table td {
  color: var(--w-color-text-context);
}

.inspect-table .total-row th,
.inspect-table .total-row td {
  background-color: var(--w-color-surface-dashboard-panel);
  color: var(--w-color-text-label);
  font-weight: bold;
}

@media print {
  /* همه چیز مخفی شود */
  body * {
    visibility: hidden;
  }

  /* فقط حکم دیده شود */
  .hoghoogh-panel,
  .hoghoogh-panel * {
    visibility: visible;
  }

  /* حکم در وسط صفحه پرینت */
  .hoghoogh-panel {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    margin: 0 auto;
    width: 100%;
  }
}


/* turns mobile button color to white */
.wagtail-copy-btn svg {
    width: 14px !important;
    height: 14px !important;
    vertical-align: middle;
}



/* fixed button at the bottom of page */
.admin-fixed-actions {
  /* position: sticky; */
  bottom:10 ;
  z-index: 100;
  padding: 2px 2px;
}

/* mobile only */
@media (max-width: 640px) {
  .admin-fixed-actions {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
  }

}




