body {
  margin: 0;
  color: #1f2933;
  background: #f5f7fa;
  font: 14px/1.5 Arial, Helvetica, sans-serif;
}

[hidden] {
  display: none !important;
}

a { color: #0b5ea8; text-decoration: none; }
a:hover { text-decoration: underline; }

.dc-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.dc-card {
  background: #fff;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(22, 34, 51, .06);
  margin-bottom: 16px;
  padding: 18px;
}

.dc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.dc-header h1, .dc-card h2 {
  margin: 0;
  color: #13243a;
  line-height: 1.2;
}

.dc-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.dc-btn, button, input[type=submit] {
  display: inline-block;
  border: 0;
  border-radius: 4px;
  background: #0b5ea8;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  padding: 8px 12px;
}

.dc-btn.secondary { background: #5f6b7a; }
.dc-btn.danger { background: #b42318; }
.dc-btn.light { background: #eef3f8; color: #13243a; }

input, select, textarea {
  box-sizing: border-box;
  width: 100%;
  border: 1px solid #bdc7d4;
  border-radius: 4px;
  padding: 8px;
}

input[type=checkbox] {
  width: auto;
}

label {
  display: block;
  font-weight: bold;
  margin: 10px 0 4px;
}

.dc-check {
  align-items: center;
  display: inline-flex;
  gap: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

th, td {
  border-bottom: 1px solid #e4e9f0;
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
}

th { background: #eef3f8; color: #13243a; }

.dc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dc-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dc-filter-form {
  margin-top: 12px;
}

.dc-filter-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(2, minmax(150px, 1fr));
  gap: 12px;
}

.dc-list-summary {
  color: #52606d;
  margin-bottom: 12px;
}

.dc-row-actions {
  white-space: nowrap;
}

.dc-row-actions a {
  margin-right: 8px;
}

.dc-inline-form {
  display: inline;
}

.dc-link-button {
  display: inline;
  width: auto;
  border: 0;
  background: transparent;
  color: #0b5ea8;
  cursor: pointer;
  font: inherit;
  font-weight: normal;
  padding: 0;
}

.dc-link-button:hover {
  text-decoration: underline;
}

.dc-link-button.danger {
  color: #b42318;
}

.dc-pagination {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 14px;
}

.dc-status {
  display: inline-block;
  border-radius: 999px;
  font-weight: bold;
  padding: 3px 9px;
}

.dc-status.active { background: #e7f6ec; color: #166534; }
.dc-status.expired { background: #fff1d6; color: #92400e; }
.dc-status.suspended { background: #fde8e8; color: #991b1b; }

.dc-alert {
  border-radius: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
}

.dc-alert.error { background: #fde8e8; color: #991b1b; }
.dc-alert.success { background: #e7f6ec; color: #166534; }

.dc-help {
  font-size: 12px;
  margin-top: 4px;
  min-height: 18px;
}

.dc-help.error { color: #991b1b; font-weight: bold; }
.dc-help.success { color: #166534; font-weight: bold; }

button:disabled {
  cursor: not-allowed;
  opacity: .55;
}

.dc-verify-title {
  border-bottom: 3px solid #f36b00;
  margin-bottom: 16px;
  padding-bottom: 12px;
}

.dc-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.dc-certificate-viewer {
  display: none;
  border: 1px solid #d8dee6;
  margin-top: 16px;
}

.dc-certificate-viewer.open {
  display: block;
}

.dc-certificate-toolbar {
  align-items: center;
  background: #eef3f8;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  padding: 10px;
}

.dc-certificate-viewer iframe {
  border: 0;
  display: block;
  height: 720px;
  width: 100%;
}

.dc-modal {
  align-items: center;
  background: rgba(15, 23, 42, .62);
  bottom: 0;
  display: none;
  justify-content: center;
  left: 0;
  padding: 18px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 1000;
}

.dc-modal.open {
  display: flex;
}

.dc-modal-panel {
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, .28);
  max-height: 92vh;
  max-width: 980px;
  overflow: hidden;
  width: 100%;
}

.dc-modal-header {
  align-items: flex-start;
  border-bottom: 1px solid #d8dee6;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 14px 16px;
}

.dc-modal-header h2 {
  margin: 0;
}

.dc-modal-header p {
  color: #52606d;
  margin: 4px 0 0;
}

.dc-icon-btn {
  background: #eef3f8;
  color: #13243a;
  min-width: 68px;
  padding: 8px 10px;
}

.dc-standard-cert-tabs {
  border-bottom: 1px solid #d8dee6;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 16px;
}

.dc-standard-cert-tabs button {
  background: #eef3f8;
  color: #13243a;
  flex: 0 0 auto;
}

.dc-standard-cert-tabs button.active {
  background: #0b5ea8;
  color: #fff;
}

.dc-modal .dc-certificate-toolbar {
  border-bottom: 1px solid #d8dee6;
}

.dc-certificate-modal-panel {
  max-width: 1120px;
}

.dc-modal iframe {
  border: 0;
  display: block;
  height: 68vh;
  width: 100%;
}

.dc-pdf-status {
  color: #52606d;
  font-weight: bold;
  min-height: 20px;
  margin-top: 10px;
}

.dc-pdf-status.error {
  color: #991b1b;
}

.dc-btn.is-loading {
  opacity: .7;
}

.dc-qr {
  width: 180px;
  height: 180px;
  border: 1px solid #d8dee6;
  object-fit: contain;
}

.dc-label {
  width: 280px;
  min-height: 520px;
  background: #fff;          /* back to white */
  color: #111;
  border: 2px solid #cc1111;  /* was: #111 */
  /*border: 2px solid #111;*/
  /*background: #fffdf8;*/
  /*color: #111;*/
  margin: 24px auto;
  padding: 14px 14px 22px;
  text-align: center;
  font-weight: 700;
}

.dc-label-preview {
  margin: 24px auto;
  text-align: center;
}

.dc-label-preview img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  background: #fff;
}

.dc-label-logo {
  display: block;
  width: 230px;
  max-width: 230px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  margin: 0 auto 10px;
}
.dc-label hr {
  border-color: #cc1111;  /* red divider */
  border-width: 1.5px;
}
.dc-label strong { display: block; font-size: 22px; margin: 6px 0;  color: #cc1111; }
.dc-label .rating { border: 4px solid #cc1111; border-radius: 50%; display: inline-block; font-size: 30px; font-weight: 900; padding: 14px 18px; color: #cc1111}

 .dc-label-contacts {
  display: inline-flex;        /* shrinks to content width */
  flex-direction: column;
  gap: 6px;
  margin: 0 auto;             /* centers the whole block */
}

.dc-label-contact {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1;
}

 .dc-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  /*background: #9a760a; */
  /*background: #0b5ea8;*/
 background: #cc1111;
  color: #fff;
  flex-shrink: 0;
}
.dc-label-icon::before,
.dc-label-icon::after {
  content: "";
  position: absolute;
}
.dc-label-icon-email::before {
  border: 1.5px solid #111;
  border-radius: 2px;
  height: 9px;
  left: 1px;
  top: 3px;
  width: 15px;
}
.dc-label-icon-email::after {
  border-bottom: 1.5px solid #111;
  border-right: 1.5px solid #111;
  height: 7px;
  left: 5px;
  top: 2px;
  transform: rotate(45deg) skew(-8deg, -8deg);
  width: 7px;
}
.dc-label-icon-phone::before {
  border: 2px solid #111;
  border-right-color: transparent;
  border-top-color: transparent;
  border-radius: 50%;
  height: 13px;
  left: 2px;
  top: 0;
  transform: rotate(-28deg);
  width: 13px;
}
.dc-label-icon-phone::after {
  background: #111;
  border-radius: 2px;
  height: 4px;
  right: 1px;
  top: 8px;
  transform: rotate(38deg);
  width: 6px;
}
.dc-label-icon-mobile::before {
  border: 1.6px solid #111;
  border-radius: 3px;
  height: 13px;
  left: 5px;
  top: 0;
  width: 8px;
}
.dc-label-icon-mobile::after {
  background: #111;
  border-radius: 50%;
  height: 2px;
  left: 8px;
  top: 11px;
  width: 2px;
}
.dc-label-icon-web::before {
  border: 1.5px solid #111;
  border-radius: 50%;
  height: 14px;
  left: 2px;
  top: 0;
  width: 14px;
}
.dc-label-icon-web::after {
  border-bottom: 1.5px solid #111;
  border-top: 1.5px solid #111;
  height: 5px;
  left: 3px;
  top: 4px;
  width: 12px;
}

@media (max-width: 860px) {
  .dc-header, .dc-grid, .dc-grid.three, .dc-filter-grid { display: block; }
  .dc-shell { padding: 12px 8px 32px; }
  .dc-card { padding: 12px; }
  .dc-nav { display: block; }
  .dc-nav a { margin: 0 0 8px; }
  table { display: block; overflow-x: auto; }
  .dc-row-actions { white-space: normal; }
  .dc-actions .dc-btn, .dc-actions button {
    text-align: center;
    width: 100%;
  }
  .dc-modal {
    align-items: stretch;
    padding: 0;
  }
  .dc-modal-panel {
    border-radius: 0;
    display: flex;
    flex-direction: column;
    max-height: 100vh;
    min-height: 0;
    position: relative;
  }
  .dc-modal-header {
    display: block;
    flex: 0 0 auto;
  }
  .dc-modal-header {
    padding-right: 92px;
  }
  .dc-certificate-toolbar {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: 1fr;
  }
  .dc-certificate-toolbar .dc-btn {
    box-sizing: border-box;
    text-align: center;
    width: 100%;
  }
  .dc-icon-btn {
    position: absolute;
    right: 10px;
    top: 10px;
  }
  .dc-modal iframe {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
  .dc-certificate-modal-panel iframe {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
  }
}

@media print {
  body { background: #fff; }
  .dc-no-print { display: none !important; }
  .dc-card { border: 0; box-shadow: none; }
}
