.app-items-card {
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #fff;
  padding: 14px 12px 12px;
}

.app-items-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.app-items-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #222a39;
}

.app-btn-outline-soft {
  height: 34px;
  border: 1px solid #d7deea;
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 600;
}

.app-btn-outline-soft:hover {
  border-color: #9db4e4;
  color: #294a9f;
}

.app-items-scroll {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid #eef1f6;
  border-radius: 10px;
}

.app-items-table {
  width: max-content;
  min-width: 100%;
  margin: 0;
  border-collapse: separate;
  border-spacing: 0;
}

.app-items-table thead th {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle;
  background: #f8fafd;
  border-bottom: 1px solid #e8edf5;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  color: #6c7688;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 11px 8px;
}

.app-items-table tbody td,
.app-items-table tfoot td {
  white-space: nowrap;
  text-align: center;
  vertical-align: middle !important;
  border-left: 0;
  border-right: 0;
  border-top: 0;
  border-bottom: 1px solid #edf1f6;
  padding: 8px 6px !important;
  background: #fff;
}

.app-items-table .tableTh {
  font-size: 11px !important;
}

.app-items-table .form-control,
.app-items-table .select2-container .select2-selection--single,
.app-items-table .select2-container .select2-selection--multiple {
  border-radius: 8px !important;
  border: 1px solid #d9e1ed !important;
  background: #fff !important;
}

.app-items-table .form-control {
  min-height: 34px;
  height: 34px;
  font-size: 12px;
  padding: 4px 8px !important;
  text-align: center;
}

.app-items-table textarea.form-control {
  min-height: 34px;
  height: 34px;
  line-height: 1.2;
  resize: vertical;
}

    .app-items-table .row-actions-col {
        position: sticky;
        right: 0;
        z-index: 4;
        min-width: 20px;
        width: fit-content;
        background: #fff;
        box-shadow: -8px 0 8px -8px rgba(31, 41, 55, 0.2);
    }

body[dir="rtl"] .app-items-table .row-actions-col {
  right: auto;
  left: 0;
  box-shadow: 8px 0 8px -8px rgba(31, 41, 55, 0.2);
}

.app-items-table thead .row-actions-col {
  z-index: 5;
  background: #f8fafd;
}

.app-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-row-icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #d8dfec;
  background: transparent;
  color: #6a7384;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.app-row-icon-btn:hover {
  color: #2b4ea8;
  border-color: #b8c7e6;
}

.app-row-icon-btn-danger {
  color: #cc4a5d;
  border-color: #ebc7cf;
}

.app-row-icon-btn-danger:hover {
  color: #a53547;
  border-color: #df9dac;
}

.app-add-row-wrap {
  margin-top: 12px;
}

.app-add-row-btn {
  width: 100%;
  min-height: 38px;
  border-radius: 8px;
  border: 1px solid #aeb8ca;
  color: #5c6574;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 600;
}

.items-columns-modal .modal-content {
  border-radius: 12px;
  border: 1px solid #e5ebf5;
}

.items-columns-modal .modal-header {
  border-bottom: 1px solid #edf2fa;
  padding: 12px 16px;
}

.items-columns-modal .modal-body {
  padding: 14px 16px;
}

.items-columns-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}

.items-columns-option {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
}

.items-columns-option input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #355ec9;
}

@media (max-width: 767.98px) {
  .items-columns-grid {
    grid-template-columns: 1fr;
  }
}
