.el-activity-shell {
  --el-primary: #16a6b6;
  --el-warning: #f6aa15;
  --el-dark: #262626;
  --el-danger: #c12033;
  color: var(--el-dark);
  font-family: Inter, system-ui, sans-serif;
}

.el-activity-toolbar,
.el-report-cover,
.el-report-section,
.el-project-card,
.el-year-card,
.el-month-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(38, 38, 38, .045);
}

.el-activity-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  margin-bottom: 18px;
}

.el-activity-title { margin: 0; font-size: 20px; font-weight: 800; color: var(--el-dark); }
.el-activity-subtitle { margin: 5px 0 0; color: #64748b; font-size: 13px; line-height: 1.5; }
.el-activity-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.el-activity-btn { border: 0; border-radius: 9px; padding: 10px 13px; min-height: 40px; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.el-activity-btn.primary { background: var(--el-primary); color: #fff; }
.el-activity-btn.warning { background: var(--el-warning); color: var(--el-dark); }
.el-activity-btn.dark { background: var(--el-dark); color: #fff; }
.el-activity-btn.light { background: #f4f7f8; color: #475569; border: 1px solid #dce4e8; }
.el-activity-btn:focus-visible { outline: 3px solid rgba(22, 166, 182, .25); outline-offset: 2px; }

.el-project-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.el-project-card { width: 100%; padding: 18px; cursor: pointer; text-align: left; font: inherit; color: inherit; transition: transform .18s, box-shadow .18s, border-color .18s; }
.el-project-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(38,38,38,.09); border-color: #9ad7de; }
.el-project-card-top { display: flex; align-items: flex-start; gap: 14px; }
.el-project-icon { width: 44px; height: 44px; border-radius: 12px; background: #eaf8fa; color: #0f7f8b; display: grid; place-items: center; font-size: 22px; flex: none; }
.el-project-info { flex: 1; min-width: 0; }
.el-project-name { display: block; margin: 1px 0 13px; font-size: 16px; line-height: 1.35; font-weight: 800; color: var(--el-dark); overflow-wrap: anywhere; }
.el-project-meta-list { display: grid; gap: 9px; }
.el-project-meta-row { display: grid; grid-template-columns: 22px minmax(0, 1fr); align-items: start; gap: 7px; color: #64748b; }
.el-project-meta-icon { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; background: #f3f6f7; font-size: 11px; }
.el-project-meta-copy { min-width: 0; }
.el-project-meta-label { display: block; margin-bottom: 2px; color: #94a3b8; font-size: 9px; line-height: 1.2; font-weight: 800; letter-spacing: .04em; }
.el-project-meta-value { display: block; color: #52606d; font-size: 12px; line-height: 1.4; font-weight: 600; overflow-wrap: anywhere; word-break: break-word; }
.el-project-stats { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #edf1f3; }
.el-project-count { color: #0f7f8b; font-size: 12px; font-weight: 800; }
.el-project-arrow { color: var(--el-primary); font-size: 20px; }

.el-year-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; max-width: 780px; }
.el-year-card { border-width: 2px; padding: 26px 20px; text-align: center; cursor: pointer; transition: .18s; }
.el-year-card:hover { border-color: var(--el-primary); transform: translateY(-2px); }
.el-year-number { font-size: 28px; font-weight: 900; color: var(--el-dark); }
.el-year-meta { margin-top: 5px; color: #64748b; font-size: 12px; }

.el-month-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 11px; }
.el-month-card { padding: 16px 12px; text-align: center; cursor: pointer; transition: .18s; }
.el-month-card:hover { border-color: var(--el-primary); transform: translateY(-2px); }
.el-month-card.has-data { background: #f1fbfc; border-color: #b8e3e8; }
.el-month-name { font-size: 14px; font-weight: 800; color: var(--el-dark); }
.el-month-meta { margin-top: 6px; color: #64748b; font-size: 11px; }
.el-month-card.has-data .el-month-meta { color: #0f7f8b; font-weight: 800; }

.el-report-cover { overflow: hidden; margin-bottom: 16px; }
.el-report-cover-band { height: 7px; background: linear-gradient(90deg, var(--el-primary) 0 68%, var(--el-warning) 68%); }
.el-report-cover-body { padding: 22px; display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.el-report-kicker { color: #0f7f8b; font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.el-report-cover h2 { margin: 7px 0 6px; font-size: clamp(20px, 3vw, 29px); line-height: 1.2; color: var(--el-dark); }
.el-report-period { color: #64748b; font-size: 13px; }
.el-report-state { background: #fff8e8; color: #8a5b00; border: 1px solid #f7d683; border-radius: 9px; padding: 8px 11px; font-size: 11px; font-weight: 900; white-space: nowrap; }
.el-report-mail { margin-top: 17px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #f7fafb; border: 1px solid #e5ecef; border-radius: 10px; padding: 11px 13px; }
.el-report-mail strong { display: block; font-size: 12px; color: var(--el-dark); }
.el-report-mail span { display: block; margin-top: 3px; color: #64748b; font-size: 11px; }

.el-stat-grid { display: grid; grid-template-columns: repeat(5, minmax(125px, 1fr)); gap: 10px; margin-bottom: 16px; }
.el-stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 15px; }
.el-stat-card span { display: block; color: #64748b; font-size: 10px; font-weight: 800; letter-spacing: .03em; }
.el-stat-card strong { display: block; margin-top: 7px; color: var(--el-dark); font-size: 25px; }
.el-stat-card.primary { border-top: 3px solid var(--el-primary); }
.el-stat-card.warning { border-top: 3px solid var(--el-warning); }
.el-stat-card.danger { border-top: 3px solid var(--el-danger); }

.el-report-section { padding: 18px; margin-bottom: 16px; }
.el-section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 15px; }
.el-section-head h3 { margin: 0; color: var(--el-dark); font-size: 16px; }
.el-section-head p { margin: 4px 0 0; color: #64748b; font-size: 12px; }
.el-category-filter { max-width: 220px; padding: 9px 11px; border: 1px solid #d9e2e6; border-radius: 8px; background: #fff; color: #475569; font-size: 12px; }

.el-summary-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }
.el-summary-box { border-radius: 11px; padding: 15px; background: #f5fbfc; border: 1px solid #d7eef1; }
.el-summary-box h4 { margin: 0 0 8px; font-size: 13px; color: #0f7f8b; }
.el-summary-box p { margin: 0; color: #475569; font-size: 12px; line-height: 1.65; }
.el-category-list { display: flex; flex-wrap: wrap; gap: 7px; }
.el-category-chip { background: #f7f7f7; border: 1px solid #e5e7eb; color: #475569; border-radius: 8px; padding: 7px 9px; font-size: 11px; font-weight: 700; }

.el-activity-list { display: grid; gap: 11px; }
.el-activity-entry { border: 1px solid #e7ecef; border-left: 4px solid var(--el-primary); border-radius: 11px; padding: 14px; background: #fff; }
.el-entry-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.el-entry-date { color: #64748b; font-size: 11px; font-weight: 700; white-space: nowrap; }
.el-entry-category { display: inline-flex; margin-bottom: 7px; border-radius: 6px; padding: 4px 7px; background: #eaf8fa; color: #0f7f8b; font-size: 10px; font-weight: 900; }
.el-entry-title { margin: 0; color: var(--el-dark); font-size: 14px; line-height: 1.45; }
.el-entry-detail { margin: 6px 0 0; color: #64748b; font-size: 12px; line-height: 1.55; }
.el-entry-meta { margin-top: 8px; color: #64748b; font-size: 11px; }
.el-status { display: inline-flex; border-radius: 999px; padding: 5px 9px; font-size: 10px; font-weight: 900; white-space: nowrap; }
.el-status.done { color: #08714f; background: #e9f9f1; }
.el-status.open { color: var(--el-danger); background: #fff0f2; }
.el-status.progress { color: #8a5b00; background: #fff8e8; }

.el-photo-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 9px; margin-top: 12px; }
.el-photo { position: relative; border: 0; padding: 0; border-radius: 9px; overflow: hidden; background: #eef2f3; aspect-ratio: 4 / 3; cursor: pointer; }
.el-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.el-photo span { position: absolute; inset: auto 0 0; padding: 7px 8px; background: linear-gradient(transparent, rgba(0,0,0,.72)); color: #fff; font-size: 10px; font-weight: 700; text-align: left; }

.el-periodic-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.el-periodic-card { border: 1px solid #e5e7eb; border-radius: 10px; padding: 13px; }
.el-periodic-card strong { display: block; color: var(--el-dark); font-size: 12px; line-height: 1.4; }
.el-periodic-card span { display: block; margin-top: 6px; color: #64748b; font-size: 11px; }

.el-findings-table { width: 100%; border-collapse: collapse; min-width: 690px; }
.el-findings-table th { padding: 9px 10px; background: #f7f9fa; color: #64748b; font-size: 10px; text-align: left; }
.el-findings-table td { padding: 10px; border-top: 1px solid #edf1f2; color: #475569; font-size: 11px; vertical-align: top; }
.el-finding-value { color: var(--el-danger); font-weight: 900; }
.el-empty { padding: 30px 15px; color: #94a3b8; font-size: 12px; text-align: center; border: 1px dashed #dce4e8; border-radius: 10px; }

.el-modal { position: fixed; inset: 0; z-index: 999999999; background: rgba(15,23,42,.68); display: flex; align-items: flex-start; justify-content: center; padding: 24px; overflow: auto; }
.el-modal-card { width: min(620px, 100%); margin: auto; background: #fff; border-radius: 16px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,.3); }
.el-modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid #edf1f2; }
.el-modal-head h3 { margin: 0; font-size: 16px; }
.el-modal-body { padding: 18px; }
.el-modal-close { border: 0; background: #eef2f3; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; font-size: 18px; }
.el-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.el-form-field { display: flex; flex-direction: column; gap: 6px; color: #475569; font-size: 12px; font-weight: 700; }
.el-form-field.full { grid-column: 1 / -1; }
.el-form-field input, .el-form-field select, .el-form-field textarea { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #d7e0e4; border-radius: 8px; font: inherit; color: var(--el-dark); }
.el-form-field textarea { min-height: 90px; resize: vertical; }

.el-lightbox { position: fixed; inset: 0; z-index: 1000000000; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.86); cursor: zoom-out; }
.el-lightbox img { max-width: min(1100px, 96vw); max-height: 88vh; border-radius: 12px; box-shadow: 0 20px 70px rgba(0,0,0,.45); }

@media (max-width: 900px) {
  .el-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .el-summary-grid { grid-template-columns: 1fr; }
  .el-report-cover-body { flex-direction: column; }
}

@media (max-width: 620px) {
  .el-activity-toolbar, .el-section-head, .el-entry-top, .el-report-mail { align-items: stretch; flex-direction: column; }
  .el-activity-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .el-activity-btn { width: 100%; }
  .el-stat-grid { grid-template-columns: 1fr 1fr; }
  .el-report-cover-body, .el-report-section { padding: 15px; }
  .el-form-grid { grid-template-columns: 1fr; }
  .el-form-field.full { grid-column: auto; }
  .el-category-filter { max-width: none; width: 100%; }
  .el-project-card { padding: 16px; }
  .el-project-name { font-size: 15px; }
}

@media print {
  @page { size: A4; margin: 0; }
  html, body { background: #fff !important; }
  body.el-activity-printing { padding: 12mm !important; box-sizing: border-box; }
  body.el-activity-printing #header-container,
  body.el-activity-printing .admin-sidebar,
  body.el-activity-printing .el-no-print,
  body.el-activity-printing > div[style*="position:fixed"] { display: none !important; }
  body.el-activity-printing #admin-container { display: block !important; }
  body.el-activity-printing #admin-container > div { min-height: 0 !important; padding: 0 !important; background: #fff !important; }
  body.el-activity-printing #admin-container > div > div { max-width: none !important; margin: 0 !important; }
  body.el-activity-printing #admin-container > div > div > :not(#admin-tab-content) { display: none !important; }
  body.el-activity-printing #admin-tab-content { padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
  body.el-activity-printing #admin-tab-content > :not(#rapor-content) { display: none !important; }
  body.el-activity-printing .admin-main { margin: 0 !important; padding: 0 !important; }
  body.el-activity-printing #rapor-content { width: 100% !important; }
  body.el-activity-printing #el-monthly-report { width: 100% !important; margin: 0 !important; }
  body.el-activity-printing .el-report-section,
  body.el-activity-printing .el-report-cover { box-shadow: none; break-inside: avoid; }
  body.el-activity-printing .el-activity-entry { break-inside: avoid; }
}
