/* =====================================================
   PROJECTS GRID LAYOUT — FINAL VERSION (Tabulator Compatible)
   ===================================================== */

/* ===============================
   1. REAL grid container (correct target)
   =============================== */
.projects-runtime-table .tabulator-tableholder {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 16px;
    align-items: start;
}

/* Tabulator internal table must not block grid */
.projects-runtime-table .tabulator-table {
    display: contents !important;
}

/* ===============================
   2. Row becomes a grid item (card wrapper)
   =============================== */
.projects-runtime-table .tabulator-row {
    display: block !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    box-shadow: none !important;
}

/* ===============================
   3. Project Card
   =============================== */
.project-card {
    background: #fff;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* ===============================
   4. Header
   =============================== */
.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.project-title {
    font-size: 18px;
    font-weight: 700;
    color: #111;
}

.project-status {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    text-transform: capitalize;
    background: #f3f4f6;
    color: #444;
}

.project-status.active {
    background: #dcfce7;
    color: #166534;
}

/* ===============================
   5. Progress Bar
   =============================== */
.progress-bar {
    height: 8px;
    background: #eee;
    border-radius: 99px;
    overflow: hidden;
    margin-top: 8px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #06b6d4);
}

/* ===============================
   6. Responsive
   =============================== */
@media (max-width: 1024px) {
    .projects-runtime-table .tabulator-tableholder {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .projects-runtime-table .tabulator-tableholder {
        grid-template-columns: 1fr;
    }

    .project-title {
        font-size: 16px;
    }
}

/* Fix empty gaps between cards */
.projects-runtime-table .tabulator-row {
    display: block !important;
    width: auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
}

/* Allow grid to tightly pack items */
.projects-runtime-table .tabulator-tableholder {
    display: grid !important;
    grid-auto-flow: row dense !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 16px;
}

/* Fix internal Taulator cell dimensions so grid works correctly */
.projects-runtime-table .tabulator-cell {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    border: none !important;
    box-sizing: border-box !important;
}

.runtime-card{
    background:#fff;
    border:1px solid #ddd;
    border-radius:8px;
    padding:12px;
}

.runtime-field{
    display:flex;
    justify-content:space-between;
    padding:4px 0;
}

.runtime-field-label{
    font-weight:600;
    color:#555;
}

.runtime-field-value{
    color:#222;
}

.runtime-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 6px;
}

.runtime-field-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.runtime-field {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #eee;
    padding: 4px 0;
}

.runtime-field-label {
    font-weight: 600;
    color: #555;
}

.runtime-field-value {
    color: #222;
}


.runtime-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 10px 14px;
    margin: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    font-family: sans-serif;
}

.runtime-card-error {
    color: red;
    font-size: 12px;
}

.runtime-field-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.runtime-field {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px dashed #eee;
    padding: 3px 0;
}

.runtime-field-label {
    font-weight: 600;
    color: #555;
}

.runtime-field-value {
    color: #222;
}


.runtime-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 12px;
  background: #fff;
  margin-bottom: 10px;
}

.runtime-field-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.runtime-field-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.runtime-field-label {
  font-weight: 600;
  color: #555;
}

.runtime-field-value {
  color: #111;
  text-align: left;
}
