/* css/matrix_checklist.css — Matriks Checklist Dokumen */
.matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-card);
}
.matrix-table {
  border-collapse: collapse;
  width: 100%;
  min-width: 1100px;
  font-size: 12.5px;
}
.matrix-table th, .matrix-table td {
  border: 1px solid var(--border);
  padding: 8px 10px;
  text-align: center;
  vertical-align: middle;
}
.matrix-table thead th {
  background: var(--bg-card2);
  font-weight: 700;
  color: var(--text-700);
}
.matrix-decorative-row th { padding: 4px 10px; border-bottom: none; }
.mtx-deco-box {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
}
.matrix-table td:nth-child(2),
.matrix-table td:nth-child(3) {
  text-align: left;
  min-width: 160px;
}

.matrix-entitas-select,
.matrix-aksi-input {
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 5px 6px;
  font-size: 12.5px;
  font-family: inherit;
  background: transparent;
  color: var(--text-700);
  box-sizing: border-box;
}
.matrix-entitas-select:hover, .matrix-entitas-select:focus,
.matrix-aksi-input:hover, .matrix-aksi-input:focus {
  border-color: var(--border);
  background: var(--bg-card2);
  outline: none;
}

.matrix-cell-box {
  min-width: 90px;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  font-size: 12px;
  padding: 4px 6px;
  user-select: none;
}
.matrix-cell-box.mtx-empty {
  background: var(--bg-card2);
  border: 1px dashed var(--border);
}
.matrix-cell-box.mtx-empty:hover { border-color: var(--green-500); }
.matrix-cell-box.mtx-check {
  background: var(--green-100);
  color: var(--green-700);
  border: 1px solid var(--green-300);
  font-size: 15px;
}
.matrix-cell-box.mtx-dash {
  background: #1f2937;
  color: #fff;
  font-size: 16px;
}
.matrix-cell-box.mtx-week {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fcd34d;
  font-size: 11px;
  white-space: nowrap;
}

.matrix-cell-menu {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  min-width: 190px;
  overflow: hidden;
}
.matrix-cell-menu button {
  background: transparent;
  border: none;
  text-align: left;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--text-700);
  cursor: pointer;
}
.matrix-cell-menu button:hover { background: var(--bg-card2); }

.matrix-del-btn {
  background: transparent;
  border: none;
  color: #ef4444;
  cursor: pointer;
  font-size: 14px;
}
.matrix-del-btn:hover { color: #b91c1c; }

.matrix-cell-box.mtx-week,
.matrix-cell-box.mtx-empty {
  flex-direction: column;
  gap: 3px;
}
.mtx-mini-checkbox {
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--text-300, #9ca3af);
  border-radius: 2px;
  background: #fff;
  flex-shrink: 0;
}
.mtx-week-label {
  line-height: 1.1;
}

.matrix-entitas-select:disabled,
.matrix-aksi-input:read-only {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--bg-card2);
}

/* ==== Evidence & Notes (Matriks Checklist) — v2 ==== */
.mtx-evidence-badge {
  font-size: 10px;
  margin-left: 4px;
  vertical-align: super;
}
.mtx-evidence-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 30, 20, 0.55);
  backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  animation: mtxFadeIn 0.15s ease-out;
}
@keyframes mtxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes mtxSlideUp { from { transform: translateY(12px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.mtx-evidence-modal {
  background: #ffffff;
  border-radius: 14px;
  width: 440px; max-width: 92vw; max-height: 85vh; overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  animation: mtxSlideUp 0.18s ease-out;
}
.mtx-evidence-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  padding: 18px 20px 14px;
  background: linear-gradient(135deg, #1f5c3a, #2d7a4f);
  color: #fff;
  flex-shrink: 0;
}
.mtx-evidence-header-text { min-width: 0; }
.mtx-evidence-header-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 2px;
}
.mtx-evidence-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}
.mtx-evidence-header-actions {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
}
.mtx-evidence-status-btn, .mtx-evidence-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
  transition: background 0.15s;
}
.mtx-evidence-status-btn:hover, .mtx-evidence-close:hover {
  background: rgba(255,255,255,0.28);
}
.mtx-evidence-body {
  padding: 18px 20px 20px;
  overflow-y: auto;
}
.mtx-evidence-files { margin-bottom: 4px; }
.mtx-evidence-file-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: #f4f8f5;
  border: 1px solid #e2ece5;
  border-radius: 10px;
  transition: box-shadow 0.15s;
}
.mtx-evidence-file-item:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.06); }
.mtx-evidence-file-item::before {
  content: '📄';
  font-size: 18px;
  flex-shrink: 0;
}
.mtx-evidence-file-info { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mtx-evidence-file-item a {
  color: #1f5c3a;
  font-weight: 600;
  font-size: 13.5px;
  text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mtx-evidence-file-item a:hover { text-decoration: underline; }
.mtx-evidence-file-meta { font-size: 11px; color: #7c8d81; margin-top: 2px; }
.mtx-evidence-del-btn {
  flex-shrink: 0;
  font-size: 11px; color: #ef4444; background: #fdeded; border: none;
  padding: 5px 10px; border-radius: 6px; cursor: pointer; font-weight: 600;
  transition: background 0.15s;
}
.mtx-evidence-del-btn:hover { background: #fbd7d7; }
.mtx-evidence-notes-section, .mtx-evidence-upload-section { margin-top: 16px; }
.mtx-evidence-notes-section label, .mtx-evidence-upload-section label {
  display: block; font-size: 12.5px; font-weight: 600; color: #3a4a3f; margin-bottom: 6px;
}
.mtx-evidence-notes {
  width: 100%; min-height: 64px;
  border: 1px solid #dbe4de; border-radius: 8px;
  padding: 8px 10px; font-size: 13px; font-family: inherit;
  resize: vertical;
  box-sizing: border-box;
}
.mtx-evidence-notes:focus { outline: none; border-color: #2d7a4f; box-shadow: 0 0 0 3px rgba(45,122,79,0.15); }
.mtx-evidence-save-notes, .mtx-evidence-upload-btn {
  margin-top: 8px;
  background: #1f5c3a; color: #fff; border: none;
  padding: 7px 16px; border-radius: 7px; font-size: 12.5px; font-weight: 600;
  cursor: pointer; transition: background 0.15s;
}
.mtx-evidence-save-notes:hover, .mtx-evidence-upload-btn:hover { background: #164a2e; }
.mtx-evidence-upload-section input[type="file"] {
  font-size: 12.5px;
  max-width: 100%;
}
