.dtp-container {
  margin: 20px 0;
}

.dtp-button {
  background-color: #1e73be;
  color: #fff;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-bottom: 10px;
}

.dtp-button:hover {
  background-color: #155a96;
}

.dtp-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.6);
}

.dtp-modal-content {
  background-color: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 6px;
  width: 90%;
  max-width: 600px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

.dtp-close {
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.dtp-close:hover {
  color: red;
}

#dtp-form input[type="text"],
#dtp-form input[type="url"],
#dtp-form input[type="date"],
#dtp-form textarea,
#dtp-form select {
  width: 100%;
  padding: 8px;
  margin: 6px 0 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#dtp-form button[type="submit"] {
  background-color: #28a745;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#dtp-form button[type="submit"]:hover {
  background-color: #218838;
}

.dtp-edit,
.dtp-delete {
  background-color: #6c757d;
  color: white;
  border: none;
  padding: 6px 12px; /* Slightly wider */
  margin-right: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.4;
}

.dtp-edit:hover {
  background-color: #5a6268;
}

.dtp-delete:hover {
  background-color: #dc3545;
}
.dtp-action-select {
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 14px;
    background-color: #f0f4f8;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.dtp-action-select:hover {
    background-color: #e0e7ef;
}
.dtp-table {
  width: 350px;
  font-size: 10px;
}
/* Default: show table, hide cards */
.dtp-table-wrapper { display: block; }
.dtp-cards { display: none; }

/* On small screens: hide table, show cards */
@media (max-width: 768px) {
  .dtp-table-wrapper { display: none; }
  .dtp-cards { display: block; }
  .dtp-card {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 12px;
    background: #f9f9f9;
  }
  .dtp-card h4 { margin: 0 0 8px; font-size: 16px; }
  .dtp-card p { margin: 4px 0; font-size: 14px; }
}
/* Desktop shows table */
.dtp-table-wrapper { display: block; }
.dtp-cards { display: none; }

/* Mobile shows cards */
@media (max-width: 768px) {
  .dtp-table-wrapper { display: none; }
  .dtp-cards { display: block; }
}
.dtp-icon-button {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:12px;
  border:none;
  background:#f5f5f5;
  border-radius:8px;
  flex:1 1 100px; /* responsive sizing */
  cursor:pointer;
  text-decoration:none; /* for <a> links */
  color:#333;
}

.dtp-icon-button .material-icons {
  font-size:28px;
  margin-bottom:6px;
}

.dtp-label {
  font-size:13px;
  text-align:center;
}
.dtp-icon-button {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:12px;
  border:none;
  background:#f5f5f5;
  border-radius:8px;
  flex:1 1 100px; /* responsive sizing */
  cursor:pointer;
  text-decoration:none; /* for <a> links */
  color:#333;
}

.dtp-label {
  font-size:13px;
  text-align:center;
  margin-top:4px;
}

/* Shared hover effects for all icon buttons */
.dtp-icon-button {
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.dtp-icon-button:hover {
  background:#e8f6ed;
  box-shadow:0 2px 8px rgba(0,0,0,0.12);
  transform:translateY(-1px);
  text-decoration:none;
  color:#111;
}
.dtp-icon-button {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:12px;
  border:none;
  background:#f5f5f5;
  border-radius:8px;
  flex:0 0 100px;   /* fixed width basis so items stay consistent */
  cursor:pointer;
  text-decoration:none;
  color:#333;
}

.dtp-label {
  font-size:13px;
  text-align:center;
  margin-top:4px;
}
