@media screen {
.dp-document-menu { position:relative; }
.dp-document-types { position:absolute; right:0; top:calc(100% + 8px); z-index:40; width:240px; border:1px solid var(--dp-border); border-radius:12px; background:var(--dp-card); box-shadow:var(--dp-shadow); padding:8px 0; }
.dp-document-types > strong { display:block; padding:4px 12px; font-size:10px; letter-spacing:.1em; color:var(--dp-muted); text-transform:uppercase; }
.dp-document-types button { display:flex; align-items:center; gap:8px; padding:8px 12px; font-size:11.5px; font-weight:800; text-align:left; width:100%; }
.dp-document-types svg { width:20px; height:20px; color:var(--dp-primary); flex-shrink:0; }
.dp-document-types button:hover { background:var(--dp-section-tint); }
.dp-document-group > h3 { display:flex; gap:8px; align-items:center; margin:12px 0 8px; color:var(--dp-muted); font-size:10px; font-weight:800; }
.dp-document-group > h3 span { border-radius:999px; background:var(--dp-section-tint); padding:2px 6px; }
.dp-document-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:start; gap:4px 10px; background:var(--dp-card); border:1px solid #34305b1f; border-radius:8px; padding:10px; margin-top:8px; transition:border-color .15s; }
.dp-document-card:hover { border-color:#34305b33; }
.dp-document-icon { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; background:#508dff1a; color:var(--dp-primary); border-radius:8px; }
.dp-document-icon svg { width:16px; height:16px; }
.dp-document-body { min-width:0; }
.dp-document-card-title { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.dp-document-card-title strong { font-size:12px; line-height:18px; font-weight:800; }
.dp-document-status { background:#fff7e8; color:#7a5100; border-radius:999px; padding:2px 8px; font-size:9.5px; line-height:14.25px; font-weight:800; }
.dp-document-summary { margin-top:2px; color:var(--dp-muted); font-size:10.5px; line-height:15.75px; font-weight:600; }
.dp-document-card .dp-document-tests { grid-column:1 / -1; margin:0; padding:0; list-style:none; display:grid; gap:2px; text-align:left; }
.dp-document-card li { display:flex; align-items:baseline; gap:6px; font-size:10.5px; line-height:15.75px; }
.dp-document-card li b { font-family:ui-monospace,monospace; font-size:9.5px; color:#2f6be0; flex-shrink:0; }
.dp-document-card li span { color:#34305ba6; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.dp-document-actions { grid-column:3; grid-row:1; opacity:0; transition:opacity .15s; }
.dp-document-actions > div { display:flex; align-items:center; gap:4px; }
.dp-document-card:is(:hover,:focus-within) .dp-document-actions { opacity:1; }
.dp-document-actions button { display:grid; place-items:center; min-width:28px; min-height:28px; border-radius:6px; color:var(--dp-muted); }
.dp-document-actions svg { height:14px; width:14px; }
.dp-document-actions button:hover { background:#34305b14; }
.dp-document-actions .dp-document-confirm-delete { background:#c0341e; color:white; padding:4px 8px; font-size:9.5px; font-weight:800; }
@media (hover:none), (max-width:639px) { .dp-document-actions { opacity:1; } }
.dp-document-fields h3,.dp-document-fields label:nth-of-type(2),.dp-document-fields label:last-child { grid-column:1/-1; }
.dp-document-fields label { font-size:10.5px; font-weight:800; color:var(--dp-muted); }
.dp-document-fields :is(input,select) { display:block; width:100%; margin-top:4px; }
.dp-mdd-heading { display:flex; align-items:center; gap:10px; }
.dp-mdd-heading-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:12px; color:var(--dp-primary); background:#508dff1a; flex-shrink:0; }
.dp-mdd-heading-icon svg { width:16px; height:16px; }
.dp-mdd-footer { width:100%; display:flex; align-items:center; justify-content:space-between; gap:12px; }
.dp-mdd-footer > p { color:var(--dp-muted); font-size:11px; font-weight:600; }
.dp-mdd-footer > div { display:flex; gap:8px; }

}
@media screen {
.dp-document-funding { border-radius:999px; padding:2px 8px; background:#eaf2ff; color:#2f6be0; font-size:9.5px; line-height:14.25px; font-weight:800; }
.dp-document-funding.is-patient { background:#f3f4fa; color:#34305ba6; }
.dp-document-status.is-other { background:#34305b14; color:#34305b8c; }
.dp-document-more { color:#34305b73; font-size:10px!important; font-weight:700; }
.dp-document-actions button[aria-label="Изтрий документа"]:hover { color:#c0341e; background:#c0341e1a; }
.dp-mdd-search-input { position:relative; }
.dp-mdd-search-input > svg { position:absolute; top:50%; left:10px; transform:translateY(-50%); width:14px; height:14px; pointer-events:none; color:#34305b59; }
.dp-mdd-count { border-radius:999px; background:#34305b14; color:#34305b8c; padding:2px 8px; font-size:9.5px; line-height:14.25px; font-weight:800; }
.dp-mdd-count.is-new { background:#508dff1f; color:#2f6be0; }
.dp-mdd-clear { font-size:9.5px; line-height:14.25px; font-weight:700; color:#34305b73; }
.dp-document-fields > h3 { margin:0; }
.dp-document-fields > label:nth-of-type(1) { grid-column:1; grid-row:2; }
.dp-document-fields > label:nth-of-type(3) { grid-column:2; grid-row:2; }
.dp-document-fields > label:nth-of-type(2) { grid-column:1/-1; grid-row:3; }
.dp-document-fields > label:last-child { grid-column:1/-1; grid-row:4; }
.dp-document-fields :is(input,select,textarea) { margin:0; width:100%; font-size:12px; line-height:18px; }
.dp-document-fields .dp-mdd-purpose select { height:56px; }
.dp-document-fields textarea { height:56px; resize:none; }
.dp-mdd-footer .dp-mdd-cancel { color:#34305bb3; }
.dp-mdd-footer .dp-mdd-primary-button { border:0; color:white; background:#508dff; box-shadow:0 1px 2px #0000000d; }
.dp-mdd-primary-button svg { width:14px; height:14px; flex-shrink:0; }
.dp-mdd-footer .dp-mdd-primary-button:disabled { background:#508dff66; opacity:.5; }
.dp-mdd-footer .dp-mdd-primary-button:hover:not(:disabled) { background:#3b7bf0; }
}
@media screen {
}
@media screen {
.dp-mdd-existing-badge { display:inline-block; margin-left:4px; padding:0 4px; border-radius:3px; background:#34305b14; color:#34305b8c; font-family:var(--dp-font); font-size:8.5px; line-height:12.75px; font-weight:800; }
}
