.dk-wrap * { box-sizing: border-box; }

.dk-wrap {
  max-width: 760px;
  margin: 0 auto;
  color: #212529;
}

/* ── HEADER ── */
.dk-header { margin-bottom: 6px; }

.dk-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #006AFF;
  background: #e8f2ff;
  border: 1px solid #b8d4ff;
  padding: 2px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.dk-title {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  margin: 0 0 4px;
}

.dk-subtitle {
  font-size: 12px;
  color: #6c757d;
  margin: 0 0 18px;
}

/* ── CONTROLS ── */
.dk-section-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 22px 24px;
  margin-bottom: 26px;
}

.dk-section-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: #6c757d;
  margin: 0 0 14px;
}

.dk-params-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(205px, 1fr));
  gap: 14px;
}

.dk-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dk-label {
  font-size: 12px;
  font-weight: 600;
  color: #495057;
}

.dk-input,
.dk-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #ced4da;
  border-radius: 6px;
  font-size: 14px;
  background: #fff;
  color: #212529;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.dk-input:focus,
.dk-select:focus {
  border-color: #006AFF;
  box-shadow: 0 0 0 3px rgba(0,106,255,.12);
}

.dk-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c757d' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
  cursor: pointer;
}

/* Company strip */
.dk-field-info .dk-label { margin-bottom: 0; }

.dk-company-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #ced4da;
  border-radius: 6px;
  padding: 7px 10px;
  min-height: 38px;
}

.dk-company-ticker {
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #18172B;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: .04em;
}

.dk-company-name {
  font-size: 13px;
  color: #212529;
  font-weight: 600;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dk-company-price {
  font-size: 12px;
  color: #6c757d;
  white-space: nowrap;
}

/* ── YIELD BAR ── */
.dk-yield-section { margin-bottom: 20px; }

.dk-yield-bar-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: #495057;
  margin-bottom: 6px;
}

.dk-yield-pct {
  font-size: 13px;
  font-weight: 700;
  color: #006AFF;
}

.dk-yield-track {
  height: 8px;
  background: #e9ecef;
  border-radius: 99px;
  overflow: hidden;
}

.dk-yield-fill {
  height: 100%;
  background: linear-gradient(90deg, #18172B, #006AFF);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.34, 1.3, 0.64, 1);
}

/* ── SUMMARY CARDS ── */
.dk-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 26px;
}

.dk-card {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  padding: 16px 18px;
}

.dk-card-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #6c757d;
  margin-bottom: 6px;
}

.dk-card-value {
  font-size: 20px;
  font-weight: 700;
  color: #212529;
  line-height: 1.1;
}

.dk-card-sub {
  font-size: 11px;
  color: #868e96;
  margin-top: 4px;
}

/* ── BREAKDOWN SECTIONS ── */
.dk-breakdown { margin-bottom: 10px; }

.dk-sec { margin-bottom: 26px; }

.dk-sec-hd {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.dk-sec-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #18172B;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dk-sec-title {
  font-size: 15px;
  font-weight: 700;
  margin: 0;
  color: #212529;
}

.dk-sec-sub {
  font-size: 12px;
  color: #6c757d;
  margin: 2px 0 0;
}

/* Table wrapper */
.dk-tw {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 10px;
  border: 1px solid #dee2e6;
}

/* Table */
table.dk-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

table.dk-tbl thead tr { background: #18172B; }

table.dk-tbl th {
  padding: 10px 14px;
  text-align: left;
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  white-space: nowrap;
  background: #18172B;
}

table.dk-tbl th.th-label { min-width: 200px; }
table.dk-tbl th.th-val   { min-width: 120px; text-align: right; }

table.dk-tbl td {
  padding: 9px 14px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

table.dk-tbl td.td-label {
  background: #fafafa;
  border-right: 1px solid #e9ecef;
  font-size: 13px;
  color: #495057;
}

table.dk-tbl td.td-label b {
  display: block;
  color: #212529;
  font-weight: 600;
  margin-bottom: 2px;
}

table.dk-tbl td.td-label small {
  color: #868e96;
  font-size: 11.5px;
}

table.dk-tbl td.td-val {
  text-align: right;
  min-width: 120px;
  white-space: nowrap;
  color: #212529;
  font-weight: 500;
}

table.dk-tbl tr:last-child td { border-bottom: none; }
table.dk-tbl tr:hover td { background: #f5f8ff; }
table.dk-tbl tr:hover td.td-label { background: #eef2ff; }

/* Value colours */
.v-pos     { color: #0a6640; font-weight: 700; }
.v-neg     { color: #c0392b; }
.v-neutral { color: #495057; }

/* Indent (za podvrstice) */
.td-indent {
  padding-left: 22px !important;
  position: relative;
}

/* Subtotal row */
.r-subtotal td {
  background: #e0edff !important;
  font-weight: 700;
  border-top: 2px solid #006AFF !important;
}
.r-subtotal td.td-label { background: #cfe0ff !important; }

/* Grand total row */
.r-grand td {
  background: #18172B !important;
  color: #fff !important;
  font-weight: 800;
  font-size: 15px;
  border-top: 3px solid #18172B !important;
}
.r-grand td.td-label {
  background: #18172B !important;
  color: #fff !important;
}
.r-grand td.td-label b,
.r-grand td.td-label small { color: #fff !important; }

/* ── FOOTER NOTE ── */
.dk-note {
  margin-top: 10px;
  padding: 12px 15px;
  background: #e8f2ff;
  border: 1px solid #006AFF;
  border-radius: 7px;
  font-size: 12px;
  color: #2a4a7f;
  line-height: 1.6;
}
.dk-note b { color: #1a3a6f; }

/* ── MOBILE ── */
@media (max-width: 640px) {
  .dk-section-card { padding: 16px; }
  .dk-params-grid  { grid-template-columns: 1fr 1fr; }
  .dk-cards-grid   { grid-template-columns: 1fr 1fr; }
  .dk-tw           { border-radius: 8px; }
  table.dk-tbl     { font-size: 12.5px; }
  table.dk-tbl th,
  table.dk-tbl td  { padding: 8px 10px; }
  table.dk-tbl td.td-label small { display: none; }
  .dk-sec-title    { font-size: 13.5px; }
  .dk-card-value   { font-size: 17px; }
}

@media (max-width: 400px) {
  .dk-section-card { padding: 14px; }
  .dk-params-grid  { grid-template-columns: 1fr; }
  .dk-cards-grid   { grid-template-columns: 1fr; }
}
