/* Agent dashboard — notifications & recent transactions panels */

.agent-dashboard-panels.panel {
  border: none;
  background: transparent;
  box-shadow: none;
}

.agent-dashboard-panels > .panel-body {
  padding: 0;
}

.agent-dashboard-panels .row > [class*="col-"] {
  margin-bottom: 20px;
}

.agent-dashboard-panels .agent-panel-card {
  border: none;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(2, 29, 98, 0.1);
  overflow: hidden;
  margin-bottom: 0;
}

.agent-dashboard-panels .agent-panel-card .box-header {
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%);
  border-bottom: none;
  padding: 14px 18px;
}

.agent-dashboard-panels .agent-panel-card .box-title {
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.agent-dashboard-panels .agent-panel-card .box-body {
  padding: 0;
  background: #fff;
}

.agent-dashboard-panels .agent-panel-list > .item {
  border-bottom: 1px solid #eef2f7;
  padding: 14px 16px;
  margin: 0;
  background: #fff;
  box-shadow: none;
  border-radius: 0;
}

.agent-dashboard-panels .agent-panel-list > .item:last-child {
  border-bottom: none;
}

.agent-dashboard-panels .agent-panel-list > .item:hover {
  background: #f8fafc;
}

.agent-dashboard-panels .agent-panel-empty {
  color: #64748b;
  font-size: 14px;
  text-align: center;
  padding: 28px 16px !important;
}

/* Notifications */
.agent-dashboard-panels .agent-notice-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.agent-dashboard-panels .agent-notice-link:hover {
  text-decoration: none;
}

.agent-dashboard-panels .agent-notice-icon {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 59, 202, 0.08);
  color: #003BCA;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.agent-dashboard-panels .agent-notice-body {
  flex: 1;
  min-width: 0;
}

.agent-dashboard-panels .agent-notice-msg {
  color: #334155;
  font-size: 14px;
  line-height: 1.45;
  word-break: break-word;
}

.agent-dashboard-panels .agent-notice-msg .label,
.agent-dashboard-panels .agent-notice-msg .badge {
  display: inline-block;
  margin: 2px 0 0 6px;
  vertical-align: middle;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.agent-dashboard-panels .agent-notice-msg .label-success,
.agent-dashboard-panels .agent-notice-msg .badge-success {
  background: #10b981;
  color: #fff;
}

.agent-dashboard-panels .agent-notice-msg .label-danger,
.agent-dashboard-panels .agent-notice-msg .badge-danger {
  background: #ef4444;
  color: #fff;
}

.agent-dashboard-panels .agent-notice-msg .label-warning,
.agent-dashboard-panels .agent-notice-msg .badge-warning {
  background: #f59e0b;
  color: #fff;
}

.agent-dashboard-panels .agent-notice-time {
  color: #94a3b8;
  font-size: 12px;
  margin-top: 4px;
}

.agent-dashboard-panels .agent-notice-time .fa {
  margin-right: 4px;
}

.agent-dashboard-panels .agent-notice-action {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%);
  color: #fff !important;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.agent-dashboard-panels .agent-notice-link:hover .agent-notice-action {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* Transactions */
.agent-dashboard-panels .agent-transaction-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.agent-dashboard-panels .agent-transaction-item::before,
.agent-dashboard-panels .agent-transaction-item::after {
  display: none;
}

.agent-dashboard-panels .agent-transaction-icon {
  float: none;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(0, 59, 202, 0.08);
  color: #003BCA;
  display: flex;
  align-items: center;
  justify-content: center;
}

.agent-dashboard-panels .agent-transaction-icon i {
  font-size: 16px;
}

.agent-dashboard-panels .agent-transaction-item .product-info {
  margin-left: 0;
  flex: 1;
  min-width: 0;
}

.agent-dashboard-panels .agent-transaction-item .product-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #021D62;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 4px;
  white-space: normal;
}

.agent-dashboard-panels .agent-transaction-ref {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.agent-dashboard-panels .agent-transaction-amount {
  float: none;
  flex: 0 0 auto;
  background: linear-gradient(90deg, #021D62 0%, #003BCA 100%) !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 8px;
}

.agent-dashboard-panels .agent-transaction-item .product-description {
  color: #64748b;
  font-size: 13px;
  line-height: 1.4;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

/* Footer */
.agent-dashboard-panels .agent-panel-card .box-footer {
  background: #f8fafc;
  border-top: 1px solid #eef2f7;
  padding: 12px 16px;
}

.agent-dashboard-panels .agent-panel-card .box-footer a {
  color: #003BCA;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.agent-dashboard-panels .agent-panel-card .box-footer a:hover {
  color: #021D62;
  text-decoration: underline;
}

@media (max-width: 767px) {
  .agent-dashboard-panels .agent-notice-link {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .agent-dashboard-panels .agent-notice-action {
    margin-left: 52px;
  }

  .agent-dashboard-panels .agent-transaction-item .product-title {
    flex-direction: column;
    align-items: flex-start;
  }
}
