.excel-plugin .excel-form{display:flex;flex-wrap:wrap;gap:10px;max-width:100%}.excel-plugin .excel-form .form-group{flex:1 1 calc(33.333% - 10px);margin-bottom:0.5rem;min-width:200px}.excel-plugin .excel-form input,.excel-plugin .excel-form select{border:1px solid #ccc;border-radius:4px;padding:8px;width:100%}.excel-plugin .excel-form .search-button{flex-basis:100%;margin-top:1px}.excel-plugin .excel-form .search-button button{background-color:#2e7d32;border:none;border-radius:4px;color:#fff;cursor:pointer;padding:10px;width:100%}.excel-plugin .excel-form .search-button button:hover,.excel-plugin .excel-form .search-button button:focus{background-color:#1b5e20}.excel-plugin .excel-form .search-button button:focus-visible{outline:2px solid #1b5e20;outline-offset:2px}.excel-plugin .excel-details-trigger{white-space:nowrap}.excel-plugin .excel-details-overlay{align-items:center;background:rgba(0,0,0,0.5);bottom:0;display:flex;justify-content:center;right:0;position:fixed;left:0;top:0;z-index:2000}.excel-plugin .excel-details-dialog{background:#fff;border-radius:6px;box-shadow:0 6px 24px rgba(0,0,0,0.25);max-height:80vh;max-width:90%;overflow-y:auto;width:560px}.excel-plugin .excel-details-header{align-items:center;border-bottom:1px solid #e7e7ed;display:flex;justify-content:space-between;padding:12px 16px}.excel-plugin .excel-details-title{font-size:1rem;margin:0}.excel-plugin .excel-details-body{padding:8px 16px 16px}.excel-plugin .excel-details-body table{width:100%}.excel-plugin .excel-details-body th,.excel-plugin .excel-details-body td{border-bottom:1px solid #f1f2f5;padding:8px 4px;text-align:start;vertical-align:top}.excel-plugin .excel-details-body th{white-space:nowrap;width:35%}.excel-plugin .excel-header-actions{align-items:center;display:flex;justify-content:space-between;margin-bottom:15px}.custom-download-modal .modal-dialog{max-width:650px;width:90%}.custom-download-modal .modal-content{border:none;border-radius:8px;box-shadow:0 10px 25px rgba(0,0,0,0.15);overflow:hidden}.custom-download-modal .modal-header{background:#f8f9fa;border-bottom:1px solid #e9ecef;padding:1.25rem 1.5rem}.custom-download-modal .modal-title{color:#2c3e50;font-size:1.15rem;font-weight:600}.custom-download-modal .modal-body{padding:1.5rem}.custom-download-modal .format-card-grid{display:grid;gap:1rem;grid-template-columns:repeat(2,1 fr)}@media (max-width:576px){.custom-download-modal .format-card-grid{grid-template-columns:1 fr}}.custom-download-modal .format-card{background:#fff;border:2px solid #e2e8f0;border-radius:8px;cursor:pointer;padding:1.25rem}.custom-download-modal .format-card.active{background-color:#f4f8ff;border-color:#0b5fff}.custom-download-modal .format-info{flex-grow:1}.custom-download-modal .format-title{color:#1a202c;font-size:1rem;font-weight:600;margin-bottom:4px}.custom-download-modal .format-desc{color:#718096;font-size:0.85rem;line-height:1.35;margin:0}.custom-download-modal .modal-footer{background:#fafbfc;border-top:1px solid #e9ecef;padding:1rem 1.5rem}.custom-download-modal .btn-download-action{background-color:#0b5fff;border-color:#0b5fff;border-radius:6px;color:#fff;font-weight:600;padding:0.5rem 1.5rem}.custom-download-modal .btn-download-action:hover,.custom-download-modal .btn-download-action:focus{background-color:#004ed6;border-color:#004ed6;color:#fff}.excel-plugin .records-header-card{align-items:center;background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,0.04);display:flex;flex-wrap:wrap;gap:1rem;justify-content:space-between;margin-bottom:1.25rem;padding:1.25rem 1.5rem}.excel-plugin .records-title-wrapper{align-items:center;display:flex;gap:14px}.excel-plugin .records-title-content{align-items:center;display:flex;flex-wrap:wrap;gap:10px}.excel-plugin .records-page-title{color:#272833;font-size:1.25rem;font-weight:700;margin:0}.excel-plugin .records-count-badge{align-items:center;background-color:#f0f4ff;border:1px solid #d0e0ff;border-radius:20px;color:#0b5fff;display:inline-flex;font-size:0.85rem;font-weight:600;gap:4px;padding:4px 12px}.excel-plugin .records-count-number{font-weight:700}.excel-plugin .records-header-actions{align-items:center;display:flex;gap:10px}.excel-plugin .records-header-actions a{text-decoration:none}.excel-plugin .records-btn-back{align-items:center;background-color:#f8f9fa;border:1px solid #ced4da;border-radius:6px;color:#495057;display:inline-flex;font-size:0.9rem;font-weight:600;gap:6px;padding:0.5rem 1rem;transition:all 0.2s ease-in-out}.excel-plugin .records-btn-back:hover,.excel-plugin .records-btn-back:focus{background-color:#e9ecef;border-color:#adb5bd;color:#212529;text-decoration:none}.excel-plugin .records-btn-add{align-items:center;background-color:#0b5fff;border:1px solid #0b5fff;border-radius:6px;box-shadow:0 2px 4px rgba(11,95,255,0.2);color:#fff;display:inline-flex;font-size:0.9rem;font-weight:600;gap:6px;padding:0.5rem 1.25rem;transition:all 0.2s ease-in-out}.excel-plugin .records-btn-add:hover,.excel-plugin .records-btn-add:focus{background-color:#004ed6;border-color:#004ed6;box-shadow:0 4px 8px rgba(11,95,255,0.3);color:#fff;text-decoration:none}.excel-plugin .records-toolbar-card{background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,0.04);margin-bottom:1.25rem;padding:1rem 1.25rem}.excel-plugin .records-search-form{margin:0}.excel-plugin .records-search-input-wrapper{align-items:center;background:#f8f9fa;border:1px solid #ced4da;border-radius:8px;display:flex;padding:4px 14px 4px 6px;transition:border-color 0.2s ease-in-out,box-shadow 0.2s ease-in-out}.excel-plugin .records-search-input-wrapper:focus-within{background:#fff;border-color:#0b5fff;box-shadow:0 0 0 3px rgba(11,95,255,0.15)}.excel-plugin .search-icon-prefix{align-items:center;color:#6c757d;display:flex;justify-content:center;margin-left:8px}.excel-plugin .records-search-input{background:transparent !important;border:none !important;box-shadow:none !important;color:#272833;flex-grow:1;font-size:0.95rem;outline:none !important;padding:6px 8px}.excel-plugin .records-search-input::placeholder{color:#adb5bd}.excel-plugin .search-actions-group{align-items:center;display:flex;gap:8px}.excel-plugin .search-clear-btn{align-items:center;color:#6c757d;display:inline-flex;font-size:0.85rem;gap:4px;padding:6px 10px;text-decoration:none;transition:color 0.15s ease-in-out}.excel-plugin .search-clear-btn:hover,.excel-plugin .search-clear-btn:focus{color:#dc3545;text-decoration:none}.excel-plugin .search-submit-btn{align-items:center;background-color:#0b5fff;border:none;border-radius:6px;color:#fff;display:inline-flex;font-size:0.875rem;font-weight:600;gap:6px;padding:8px 16px;transition:background-color 0.2s ease-in-out}.excel-plugin .search-submit-btn:hover,.excel-plugin .search-submit-btn:focus{background-color:#004ed6;color:#fff}.excel-plugin .records-table-card{background:#fff;border:1px solid #e9ecef;border-radius:8px;box-shadow:0 2px 6px rgba(0,0,0,0.04);overflow:hidden;padding:1.25rem}.excel-plugin .records-table-card .taglib-search-iterator-page-container{margin:0}.excel-plugin .records-table-card table{margin-bottom:0}@media (max-width:768px){.excel-plugin .excel-form .form-group{flex-basis:100%}.excel-plugin .records-header-card{flex-direction:column;align-items:flex-start}.excel-plugin .records-header-card .records-header-actions{width:100%}.excel-plugin .records-header-card .records-header-actions .btn{flex:1;justify-content:center}}/**
 * Loaded page-wide by "header-portlet-css": keep everything nested inside
 * ".excel-plugin" (see main.scss for details).
 */
.excel-plugin {
  /* ---------- Record details popup ---------- */
}
.excel-plugin .excel-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 100%;
}
.excel-plugin .excel-form .form-group {
  flex: 1 1 calc(33.333% - 10px);
  margin-bottom: 0.5rem;
  min-width: 200px;
}
.excel-plugin .excel-form input,
.excel-plugin .excel-form select {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  width: 100%;
}
.excel-plugin .excel-form .search-button {
  flex-basis: 100%;
  margin-top: 1px;
}
.excel-plugin .excel-form .search-button button {
  background-color: #2e7d32;
  border: none;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  padding: 10px;
  width: 100%;
}
.excel-plugin .excel-form .search-button button:hover, .excel-plugin .excel-form .search-button button:focus {
  background-color: #1b5e20;
}
.excel-plugin .excel-form .search-button button:focus-visible {
  outline: 2px solid #1b5e20;
  outline-offset: 2px;
}
.excel-plugin .excel-details-trigger {
  white-space: nowrap;
}
.excel-plugin .excel-details-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 2000;
}
.excel-plugin .excel-details-dialog {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  max-height: 80vh;
  max-width: 90%;
  overflow-y: auto;
  width: 560px;
}
.excel-plugin .excel-details-header {
  align-items: center;
  border-bottom: 1px solid #e7e7ed;
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
}
.excel-plugin .excel-details-title {
  font-size: 1rem;
  margin: 0;
}
.excel-plugin .excel-details-body {
  padding: 8px 16px 16px;
}
.excel-plugin .excel-details-body table {
  width: 100%;
}
.excel-plugin .excel-details-body th,
.excel-plugin .excel-details-body td {
  border-bottom: 1px solid #f1f2f5;
  padding: 8px 4px;
  text-align: start;
  vertical-align: top;
}
.excel-plugin .excel-details-body th {
  white-space: nowrap;
  width: 35%;
}
.excel-plugin .excel-header-actions {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
}

/* ---------- Custom download modal ---------- */
.custom-download-modal .modal-dialog {
  max-width: 650px;
  width: 90%;
}
.custom-download-modal .modal-content {
  border: none;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}
.custom-download-modal .modal-header {
  background: #f8f9fa;
  border-bottom: 1px solid #e9ecef;
  padding: 1.25rem 1.5rem;
}
.custom-download-modal .modal-title {
  color: #2c3e50;
  font-size: 1.15rem;
  font-weight: 600;
}
.custom-download-modal .modal-body {
  padding: 1.5rem;
}
.custom-download-modal .format-card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (max-width: 576px) {
  .custom-download-modal .format-card-grid {
    grid-template-columns: 1fr;
  }
}
.custom-download-modal .format-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
  padding: 1.25rem;
}
.custom-download-modal .format-card.active {
  background-color: #f4f8ff;
  border-color: #0b5fff;
}
.custom-download-modal .format-info {
  flex-grow: 1;
}
.custom-download-modal .format-title {
  color: #1a202c;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 4px;
}
.custom-download-modal .format-desc {
  color: #718096;
  font-size: 0.85rem;
  line-height: 1.35;
  margin: 0;
}
.custom-download-modal .modal-footer {
  background: #fafbfc;
  border-top: 1px solid #e9ecef;
  padding: 1rem 1.5rem;
}
.custom-download-modal .btn-download-action {
  background-color: #0b5fff;
  border-color: #0b5fff;
  border-radius: 6px;
  color: #fff;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
}
.custom-download-modal .btn-download-action:hover, .custom-download-modal .btn-download-action:focus {
  background-color: #004ed6;
  border-color: #004ed6;
  color: #fff;
}

/* ---------- Records page enhancements ---------- */
.excel-plugin {
  /* Toolbar & Search Bar Card */
  /* ---------- Table card wrapper ---------- */
}
.excel-plugin .records-header-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding: 1.25rem 1.5rem;
}
.excel-plugin .records-title-wrapper {
  align-items: center;
  display: flex;
  gap: 14px;
}
.excel-plugin .records-title-content {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.excel-plugin .records-page-title {
  color: #272833;
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}
.excel-plugin .records-count-badge {
  align-items: center;
  background-color: #f0f4ff;
  border: 1px solid #d0e0ff;
  border-radius: 20px;
  color: #0b5fff;
  display: inline-flex;
  font-size: 0.85rem;
  font-weight: 600;
  gap: 4px;
  padding: 4px 12px;
}
.excel-plugin .records-count-number {
  font-weight: 700;
}
.excel-plugin .records-header-actions {
  align-items: center;
  display: flex;
  gap: 10px;
}
.excel-plugin .records-header-actions a {
  text-decoration: none;
}
.excel-plugin .records-btn-back {
  align-items: center;
  background-color: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 6px;
  color: #495057;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 6px;
  padding: 0.5rem 1rem;
  transition: all 0.2s ease-in-out;
}
.excel-plugin .records-btn-back .btn-icon {
  transform: scaleX(-1);
}
.excel-plugin .records-btn-back:hover, .excel-plugin .records-btn-back:focus {
  background-color: #e9ecef;
  border-color: #adb5bd;
  color: #212529;
  text-decoration: none;
}
.excel-plugin .records-btn-add {
  align-items: center;
  background-color: #0b5fff;
  border: 1px solid #0b5fff;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(11, 95, 255, 0.2);
  color: #ffffff;
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 600;
  gap: 6px;
  padding: 0.5rem 1.25rem;
  transition: all 0.2s ease-in-out;
}
.excel-plugin .records-btn-add:hover, .excel-plugin .records-btn-add:focus {
  background-color: #004ed6;
  border-color: #004ed6;
  box-shadow: 0 4px 8px rgba(11, 95, 255, 0.3);
  color: #ffffff;
  text-decoration: none;
}
.excel-plugin .records-toolbar-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
}
.excel-plugin .records-search-form {
  margin: 0;
}
.excel-plugin .records-search-input-wrapper {
  align-items: center;
  background: #f8f9fa;
  border: 1px solid #ced4da;
  border-radius: 8px;
  display: flex;
  padding: 4px 14px 4px 6px;
  transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.excel-plugin .records-search-input-wrapper:focus-within {
  background: #ffffff;
  border-color: #0b5fff;
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
}
.excel-plugin .search-icon-prefix {
  align-items: center;
  color: #6c757d;
  display: flex;
  justify-content: center;
  margin-left: 8px;
  margin-right: 0;
}
.excel-plugin .records-search-input {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #272833;
  flex-grow: 1;
  font-size: 0.95rem;
  outline: none !important;
  padding: 6px 8px;
}
.excel-plugin .records-search-input::placeholder {
  color: #adb5bd;
}
.excel-plugin .search-actions-group {
  align-items: center;
  display: flex;
  gap: 8px;
}
.excel-plugin .search-clear-btn {
  align-items: center;
  color: #6c757d;
  display: inline-flex;
  font-size: 0.85rem;
  gap: 4px;
  padding: 6px 10px;
  text-decoration: none;
  transition: color 0.15s ease-in-out;
}
.excel-plugin .search-clear-btn:hover, .excel-plugin .search-clear-btn:focus {
  color: #dc3545;
  text-decoration: none;
}
.excel-plugin .search-submit-btn {
  align-items: center;
  background-color: #0b5fff;
  border: none;
  border-radius: 6px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.875rem;
  font-weight: 600;
  gap: 6px;
  padding: 8px 16px;
  transition: background-color 0.2s ease-in-out;
}
.excel-plugin .search-submit-btn:hover, .excel-plugin .search-submit-btn:focus {
  background-color: #004ed6;
  color: #ffffff;
}
.excel-plugin .records-table-card {
  background: #ffffff;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  padding: 1.25rem;
}
.excel-plugin .records-table-card .taglib-search-iterator-page-container {
  margin: 0;
}
.excel-plugin .records-table-card table {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .excel-plugin .excel-form .form-group {
    flex-basis: 100%;
  }
  .excel-plugin .records-header-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .excel-plugin .records-header-card .records-header-actions {
    width: 100%;
  }
  .excel-plugin .records-header-card .records-header-actions .btn {
    flex: 1;
    justify-content: center;
  }
}