.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 16px;
    background: #fff;
    font-family: Arial, sans-serif;
    margin-top: 12px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.card-header-left {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.card-id {
    color: #666;
    font-size: 14px;
}

.card-title {
    font-weight: bold;
    font-size: 15px;
}

.badge {
    background: #fff7e6;
    color: #b36b00;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #ffd591;
}

.avatars {
    display: flex;
}

.avatars img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #fff;
    margin-left: -8px;
}

.avatars img:first-child {
    margin-left: 0;
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.card-meta span::before {
    margin-right: 4px;
}

.meta-company::before { content: "🏭"; }
.meta-location::before { content: "📍"; }
.meta-user::before { content: "👤"; }
.meta-category::before { content: "📦"; }

.card-divider {
    border-top: 1px solid #e0e0e0;
    margin: 8px 0;
}

.card-footer {
    font-size: 13px;
    color: #333;
}

.card-footer span {
    color: #555;
}


/* form css */

/* Scoped to forms with .universal-form-wrapper */
.universal-form-wrapper {
    font-family: Arial, sans-serif;
}

.universal-form-wrapper .form-card {
    padding: 20px;
    background: #fff;
}

.universal-form-wrapper .form-header {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
}

.universal-form-wrapper .form-section {
    margin-bottom: 20px;
}

.universal-form-wrapper .form-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #444;
    font-weight: bold;
}

.universal-form-wrapper label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333;
}

.universal-form-wrapper input[type="text"],
.universal-form-wrapper input[type="number"],
.universal-form-wrapper input[type="email"],
.universal-form-wrapper input[type="date"],
.universal-form-wrapper input[type="datetime-local"],
.universal-form-wrapper select,
.universal-form-wrapper textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    margin-bottom: 12px;
    background: #fafafa;
    transition: border 0.2s, background 0.2s;
}

.universal-form-wrapper input:focus,
.universal-form-wrapper select:focus,
.universal-form-wrapper textarea:focus {
    border-color: #1890ff;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.universal-form-wrapper textarea {
    resize: vertical;
    min-height: 100px;
}

.universal-form-wrapper .form-divider {
    border-top: 1px solid #e0e0e0;
    margin: 20px 0;
}

.universal-form-wrapper .form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.universal-form-wrapper button {
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.universal-form-wrapper button.primary {
    background: #151515;
    color: #fff;
}

.universal-form-wrapper button.primary:hover {
    background: #000000;
}

.universal-form-wrapper button.secondary {
    background: #ffffff;
    color: #333;
    border: 1px solid #ddd;
}

.universal-form-wrapper button.secondary:hover {
    background: #ebebeb;
}

/* Two-column layout for forms with sidebar + main section */
.universal-form-wrapper .form-two-column {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.universal-form-wrapper .form-two-column .sidebar {
    flex: 0 0 35%;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 6px;
    background: #f5f5f5;
}

/* tables ui preset  */


/* Card container */
.ww-card {
  padding: 0;
  margin: 24px;
  overflow: hidden;
  background-color: #fcfcfc;
  box-shadow: inset 0 0 5px #f5f5f5;
}

/* Scrollable table container */
.ww-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  table-layout: fixed; /* Helps enforce consistent column widths and row constraints */
}

/* Fixed header styling */
.ww-table thead th {
  background: var(--gray10);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--gray70);
  border-bottom: 1px solid var(--gray20);
  position: sticky;
  top: 0;
  z-index: 2; /* ensures header stays above body rows */
}

.ww-table-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  max-height: 100%; /* Ensures the container scrolls if the table body exceeds available height */
}

.ww-table td, .ww-table th {
  padding: 0 12px;
  border-bottom: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle;
  height: 50px;
  line-height: 50px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.ww-table tr {
  height: 50px; /* Fixed row height */
  max-height: 50px; /* Enforces max height */
  background-color: #ffffff;
}

/* Hover effect */
.ww-table tbody tr:hover {
  box-shadow: 0 0 3px #5a5a5a;
}
/* Checkbox styling */
.ww-table .row-checkbox {
  margin: 0;
  accent-color: #000; /* Green accent for checked state */
}

/* Selected row styling */
.ww-table tbody tr.selected {
  background: rgba(168, 168, 168, 0.1); /* Subtle green background for selected rows */
  box-shadow: -4px 0 0 #b36b00;
}

.ww-table td:first-child {
  width: 36px;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: normal;
  height: auto;
}
  /* compact cells */
  .muted { color:var(--muted-text); font-size:0.88rem; }


  /* small utilities */
  .note { color:var(--muted-text); font-size:0.87rem; }

/* Form structure */
form label {
  display: block;
  font-weight: 600;
  margin-top: 15px;
  margin-bottom: 5px;
}

form input[type="text"],
form input[type="number"],
form textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-size: 14px;
  transition: border-color 0.2s;
}

form input:focus,
form textarea:focus {
  border-color: #0073e6;
  outline: none;
}


/* Message area */
#sc-message {
  margin-top: 15px;
  font-size: 14px;
  color: #333;
}