:root {
  --el-color-primary: #29abe2 !important;
}

.el-select {
  width: 100%;
}

.el-form--inline .el-form-item {
  margin: 0.4rem !important;
}

.el-dialog {
  border-radius: 10px !important;
  margin-top: 2vh !important;
}

@media (max-width: 768px) {
  .el-dialog {
    width: 90% !important;
    margin: 5vh auto !important;
    border-radius: 8px !important;
  }
}

.float-right {
  float: right;
}

.el-dialog__header {
  border-bottom: #dcdfe6 1px solid !important;
  margin-right: 0px !important;
}

.el-dialog__body {
  padding: 1rem !important;
}

.el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:before {
  content: none !important;
}

.el-form-item.is-required:not(.is-no-asterisk)>.el-form-item__label:after {
  content: "*";
  color: var(--el-color-danger);
  margin-left: 4px;
}

.el-form--inline.el-form--label-top {
  display: inline !important;
}

.el-card {
  /* border-radius: 20px !important; */
  border-radius: 10px !important;
  /*edition*/
}

.el-card__header>span {
  font-size: large;
  font-weight: bold;
}

.el-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem !important;
}

.el-tabs__header {
  margin: 0px !important;
}

.el-card__body {
  padding: 0px !important;
}

.el-pagination {
  padding: 20px !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.el-tabs--card>.el-tabs__header .el-tabs__nav {
  border-top: none !important;
  border-radius: 0px !important;
}

.error-feedback {
  color: red;
}

/* ::-webkit-scrollbar {
  width: 0;
  background: transparent;
} */
.slimScrollBar {
  /* width: 0px !important; */
  margin-top: 20%;
  background: white !important;
}

.el-upload-dragger {
  width: 47vw !important;
}

.highcharts-credits {
  display: none !important;
}

li {
  cursor: pointer;
}

.el-table .cell {
  word-break: normal !important;
}

/* start: invoice */

/* Container spacing */
.el-dialog__body {
  padding: 20px 40px;
  font-family: "DejaVu Sans", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 14px;
  color: #333;
}

/* Form label styling similar to PDF */
.el-form-item__label {
  font-weight: 600;
  color: #2932a6;
  /* a calm blue like PDF header */
  margin-bottom: 6px;
  font-size: 13px;
}

/* Form inputs and selects with subtle border and padding */
.el-input__inner,
.el-select .el-input__inner,
.el-input-number__input {
  border: 1px solid #ccc;
  padding: 6px 10px;
  font-size: 13px;
  border-radius: 3px;
  color: #333;
}

/* Disable input background for read-only fields */
.el-input[disabled] .el-input__inner {
  background-color: #f9f9f9;
  color: #666;
}

/* Group related form items into bordered sections, like PDF tables */
.invoice-section {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 15px 20px;
  margin-bottom: 20px;
  background: #fafafa;
}

/* Align numeric inputs right */
.el-input-number__input,
.el-input-number__decrease,
.el-input-number__increase {
  text-align: right;
}

/* Buttons consistent with PDF's minimal styling */
.el-button--primary {
  background-color: #29abe2;
  border-color: #29abe2;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.el-button--primary:hover {
  background-color: #217bbd;
  border-color: #217bbd;
}

/* Dialog title styling */
.el-dialog__header {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  border-bottom: 1px solid #e4e4e4;
  padding-bottom: 10px;
}

/* Responsive gutter for form row spacing */
.el-row {
  margin-bottom: 10px;
}

/* Footer button spacing */
.dialog-footer {
  text-align: right;
  padding: 10px 0 0 0;
  border-top: 1px solid #e4e4e4;
}

/* Table style for previewing invoice details if any */
.invoice-preview-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.invoice-preview-table th,
.invoice-preview-table td {
  border: 1px solid #ccc;
  padding: 8px 10px;
  font-size: 13px;
}

.invoice-preview-table th {
  background-color: rgba(41, 171, 226, 1);
  color: white;
  font-weight: 600;
  text-align: left;
}

/* end: invoice */