/*--------------------------------------------------------------
3. Invoice General Style
----------------------------------------------------------------*/
.cs-f13 {
  font-size: 13px;
}

.cs-semi_bold {
  font-weight: 600;
}

.cs-bold {
  font-weight: 700;
}

.cs-m0 {
  margin: 0px !important;
}

.cs-mb0 {
  margin-bottom: 0px;
}

.cs-mb5 {
  margin-bottom: 5px;
}

.cs-mb15 {
  margin-bottom: 15px;
}

.cs-mb20 {
  margin-bottom: 20px;
}

.cs-mt5 {
  margin-top: 5px;
}

.cs-mt25 {
  margin-top: 25px;
}

.cs-width_6 {
  width: 50%;
}

.cs-width_12 {
  width: 100%;
}

.cs-primary_color {
  color: #111111;
}

.cs-secondary_color {
  color: #777777;
}

.cs-dip_green_color {
  color: #2ad19d;
}

.cs-focus_bg {
  background: #f6f6f6;
}

.cs-text_right {
  text-align: right;
}

.cs-text_left {
  text-align: left;
}

.cs-invoice.cs-style1 .cs-invoice_head {
  display: flex;
  justify-content: space-between;
}

.cs-invoice.cs-style1 .cs-invoice_footer {
  display: flex;
}

.cs-invoice.cs-style1 .cs-note {
  display: flex;
  align-items: flex-start;
  margin-top: 40px;
}

html[dir="rtl"] .cs-invoice.cs-style1 .cs-note_right {
  margin-left: 10px;
  margin-top: 6px;
  margin-right: -5px;
  display: flex;
}

html[dir="rtl"] .cs-invoice.cs-style1 .cs-note_left {
  margin-right: unset;
  margin-top: unset;
  margin-left: unset;
  display: unset;
}

.cs-invoice.cs-style1 .cs-note_left {
  margin-right: 10px;
  margin-top: 6px;
  margin-left: -5px;
  display: flex;
}

.cs-invoice.cs-style1 .cs-note_left svg,
.cs-invoice.cs-style1 .cs-note_right svg {
  width: 32px;
}

.cs-invoice_btns {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}

html[dir="rtl"] .cs-invoice_btns .cs-invoice_btn:first-child {
  border-radius: 0 5px 5px 0;
}
html[dir="rtl"] .cs-invoice_btns .cs-invoice_btn:last-child {
  border-radius: 5px 0 0 5px;
}

.cs-invoice_btns .cs-invoice_btn:first-child {
  border-radius: 5px 0 0 5px;
}

.cs-invoice_btns .cs-invoice_btn:last-child {
  border-radius: 0 5px 5px 0;
}

.cs-invoice_btn {
  display: inline-flex;
  align-items: center;
  border: none;
  font-weight: 600;
  padding: 8px 20px;
  cursor: pointer;
}

html[dir="rtl"] .cs-invoice_btn svg {
  margin-left: 5px;
  margin-right: inherit;
}

.cs-invoice_btn svg {
  width: 24px;
  margin-right: 5px;
}

.cs-invoice_btn.cs-color1 {
  color: #111111;
  background: rgba(42, 209, 157, 0.15);
}

.cs-invoice_btn.cs-color1:hover {
  background-color: rgba(42, 209, 157, 0.3);
}

.cs-invoice_btn.cs-color2 {
  color: #fff;
  background: #2ad19d;
}

.cs-invoice_btn.cs-color2:hover {
  background-color: rgba(42, 209, 157, 0.8);
}

.cs-table_responsive {
  overflow-x: auto;
}

.dir-ltr {
  direction: ltr;
  display: inline-block;
}

.cs-table_responsive > table {
  min-width: 600px;
  border: unset !important;
}

.cs-table.cs-style1.cs-type1 {
  padding: 10px 30px;
}

.cs-table.cs-style1.cs-type1 tr:first-child td {
  border-top: none;
}

.cs-table.cs-style1.cs-type1 tr td:first-child {
  padding-left: 0;
}

.cs-table.cs-style1.cs-type1 tr td:last-child {
  padding-right: 0;
}

.cs-table.cs-style2 td {
  border: none;
}

.cs-table.cs-style2 td,
.cs-table.cs-style2 th {
  padding: 5px 10px;
  line-height: 1.55em;
}

.cs-table.cs-style2 tr:not(:first-child) {
  border-top: 1px dashed #eaeaea;
}

.cs-list.cs-style1 {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cs-list.cs-style1 li {
  display: flex;
}

.cs-list.cs-style1 li:not(:last-child) {
  border-bottom: 1px dashed #eaeaea;
}

.cs-list.cs-style1 li > * {
  flex: none;
  width: 50%;
  padding: 7px 0px;
}

.cs-list.cs-style2 {
  list-style: none;
  margin: 0 0 20px 0;
  background: #fafafa;
  border: 1px solid #f0f0f0;
  padding: 15px 0;
  border-radius: 12px;
}

.cs-list.cs-style2 li {
  display: flex;
}

.cs-list.cs-style2 li > * {
  flex: 1;
  padding: 5px 25px;
}

.cs-heading.cs-style1 {
  line-height: 1.5em;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
  padding: 10px 0;
}

.cs-no_border {
  border: none !important;
}

.cs-table.cs-style1 .cs-table.cs-style1 tr:not(:first-child) td {
  border-color: #eaeaea;
}

.cs-table.cs-style1 .cs-table.cs-style2 td {
  padding: 12px 0px;
}

.client-profile-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}
.single-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 35px;
  border-bottom: 1px solid #f4f5f7;
  padding-bottom: 25px;
  flex-wrap: wrap;
  gap: 15px;
}
.single-subtitle {
  color: #6b7280;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.info-wrapper{
    display:grid;
    grid-template-columns:max-content 1fr;
    row-gap:10px;
    column-gap:30px;
}
.info-row{
    display:contents;
}
.eq-border-50percent {
  grid-column: 1 / -1;
}
.client-status-badge {
  background-color: var(--badge-bg);
  color: var(--badge-color);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.client-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
}
.client-info-item {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  padding: 24px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition:
    background 0.2s,
    transform 0.2s;
  flex: 1 1 calc(50% - 10px);
  min-width: 300px;
}
.client-info-item:hover {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  transform: translateY(-2px);
}
.client-info-icon {
  width: 48px;
  height: 48px;
  background: #eef2f6;
  color: #111c43;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.client-info-icon svg {
  width: 24px;
  height: 24px;
}
.client-info-content {
  flex: 1;
  min-width: 0;
}
.client-info-content h4 {
  margin: 0 0 6px 0;
  font-size: 13px;
  color: #8c909c;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
}
.client-info-content p {
  margin: 0;
  font-size: 16px;
  color: #1f2937;
  font-weight: 600;
}
.client-info-content a {
  color: #111c43;
  text-decoration: none;
  transition: color 0.2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
html[lang="ar"] .client-info-content a {
  text-align: right;
}
.client-info-content a:hover {
  color: #2e7d32;
}
.client-address-wide {
  flex: 1 1 100%;
  align-items: flex-start;
}
.cl-section-title {
  font-size: 20px;
  color: #111c43;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f4f5f7;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}
.cl-section-title svg {
  width: 24px;
  height: 24px;
  color: #0b9e43;
}
.client-notes {
  background: #fdfaf2;
  border-right: 4px solid #f59e0b; /* Right border for RTL, or use left for LTR depending on theme. But let's stick to inline style */
  padding: 24px;
  border-radius: 8px;
  margin-bottom: 40px;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
  box-shadow: inset 0 0 0 1px #faebcc;
}
html[dir="rtl"] .client-notes {
  border-right: 4px solid #f59e0b;
  border-left: none;
}
html[dir="ltr"] .client-notes {
  border-left: 4px solid #f59e0b;
  border-right: none;
}
.client-files-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0;
}
.client-file-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 14px 20px;
  border-radius: 10px;
  color: #4b5563;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  transition: all 0.2s ease;
}
.client-file-btn:hover {
  background: #111c43;
  color: #ffffff;
  border-color: #111c43;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(17, 28, 67, 0.2);
}
.client-file-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.client-file-btn span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* flex Satrt */
.display-flex {
  display: flex;
}

.space-between {
  justify-content: space-between;
}

/* Sifat */
.cs-ml30 {
  margin-left: 30px;
}

.space-between {
  justify-content: space-between;
}

.cs-border-radious25 {
  border-radius: 25px !important;
}

.d-block {
  display: block;
}

.d-block-only-print {
  display: none !important;
}

@media (max-width: 700px) {
  .cs-invoice.cs-style1 .cs-logo {
    margin-bottom: 10px;
  }
  .cs-invoice.cs-style1 .cs-invoice_head {
    flex-direction: column;
  }
  .cs-invoice.cs-style1 .cs-invoice_head.cs-type1 {
    flex-direction: column-reverse;
    align-items: center;
    text-align: center;
  }
  .cs-invoice.cs-style1 .cs-invoice_head.cs-type1.column {
    flex-direction: column;
    gap: 15px;
  }
  .cs-invoice.cs-style1 .cs-invoice_head .cs-text_right {
    text-align: left;
  }
  .cs-list.cs-style2 li {
    flex-direction: column;
  }
  .cs-list.cs-style2 li > * {
    padding: 5px 20px;
    text-align: unset;
  }
  .client-profile-card {
    padding: 20px;
  }
  .client-info-item {
    min-width: 100%;
  }
  .cs-table.cs-style1.cs-type1 {
    padding: 0px 20px;
  }
  .info-wrapper {
    width: 100%;
    column-gap: unset;
  }
}
