/* Стиль ДДС изолирован от остальных разделов приложения. */
#ddsApp { color:#121a3b; font-size:14px; }
.dds-panel { background:#fff; border:1px solid #e0e6f2; border-radius:22px; padding:26px; margin-bottom:22px; }
.dds-panel h2,.dds-modal h2 { font-size:20px; margin:0 0 8px; color:#111936; }
.dds-panel h3 { font-size:16px; margin:0 0 15px; }
.dds-heading { display:flex; gap:20px; justify-content:space-between; align-items:flex-start; }
.dds-hint { color:#62708b; line-height:1.6; font-size:13px; margin:5px 0 16px; }
.dds-toolbar,.dds-journal-filters { display:flex; align-items:flex-end; flex-wrap:wrap; gap:10px; margin:20px 0; }
.dds-field { display:flex; flex-direction:column; gap:7px; color:#5d6982; font-size:13px; min-width:0; }
.dds-input { border:1px solid #dce3f0; background:#fff; border-radius:10px; padding:10px 12px; font:inherit; color:#111936; min-width:0; width:100%; box-sizing:border-box; }
.dds-toolbar .dds-input { max-width:220px; }
.dds-input:focus { outline:2px solid #abc5ff; outline-offset:1px; }
.dds-btn { border:1px solid #dce3f0; background:#fff; color:#165dff; border-radius:10px; padding:10px 14px; font-size:13px; font-weight:600; line-height:1.35; font-family:inherit; cursor:pointer; white-space:nowrap; }
.dds-btn:hover { background:#eef3ff; }
.dds-btn:focus-visible,.dds-close:focus-visible { outline:2px solid #165dff; outline-offset:2px; }
.dds-primary { background:#165dff; color:#fff; border-color:#165dff; }
.dds-primary:hover { background:#104bcf; }
.dds-btn:disabled { opacity:.5; cursor:default; }
.dds-small { font-size:12px; padding:6px 9px; }
.dds-danger { color:#c53d51; }
.dds-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; margin:22px 0; }
.dds-card { background:#f6f8fc; border:1px solid #e2e8f3; border-radius:14px; padding:16px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.dds-card>span { color:#64708a; font-size:13px; }
.dds-card strong { font-size:23px; overflow-wrap:anywhere; }
.dds-card small { font-size:11px; color:#71809a; }
.dds-positive { color:#079458; }
.dds-negative { color:#cb3c51; }
.dds-plan { color:#b47700; }
.dds-actual { color:#165dff; }
.dds-alert { background:#fff9e9; border:1px solid #f4d895; border-radius:12px; padding:12px 15px; line-height:1.6; margin:12px 0; }
.dds-alert-error { background:#fff3f4; border-color:#ffc8cf; color:#aa293d; }
.dds-chart { display:block; width:100%; height:auto; max-height:260px; margin:15px 0 20px; }
.dds-chart text { font:12px system-ui,sans-serif; fill:#64708a; }
.dds-chart-legend { display:flex; flex-wrap:wrap; gap:20px; font-size:12px; color:#71809a; margin-top:22px; }
.dds-tabs { display:flex; flex-wrap:wrap; gap:8px; border-bottom:1px solid #e0e6f2; padding:0 0 14px; margin:18px 0; }
.dds-active { background:#edf3ff; border-color:#165dff; }
.dds-journal-filters .dds-input { width:auto; max-width:320px; }
.dds-table-scroll { overflow:auto; max-height:650px; border:1px solid #e5eaf4; border-radius:12px; }
.dds-table { width:100%; border-collapse:collapse; font-size:13px; }
.dds-table th { background:#f7f9fd; position:sticky; top:0; z-index:1; text-align:left; color:#66728b; font-weight:600; font-size:12px; white-space:nowrap; }
.dds-table th,.dds-table td { padding:13px 12px; border-bottom:1px solid #e5eaf4; }
.dds-table td { vertical-align:middle; }
.dds-table td small { display:block; margin-top:5px; color:#71809a; font-size:11px; }
.dds-table td small.dds-negative { color:#cb3c51; }
.dds-table td.dds-num,.dds-table th.dds-num { text-align:right; white-space:nowrap; font-variant-numeric:tabular-nums; }
.dds-actions { min-width:145px; text-align:right; }
.dds-actions .dds-btn { margin:3px; }
.dds-note { min-width:130px; max-width:260px; overflow-wrap:anywhere; white-space:pre-wrap; }
.dds-badge { display:inline-block; color:#088751; background:#e7f8ee; padding:4px 8px; border-radius:7px; font-size:12px; }
.dds-badge-plan { color:#a46b00; background:#fff3d6; }
.dds-gap-row { background:#fff1f2; }
.dds-empty { text-align:center; color:#65718a; padding:45px 15px; }
.dds-empty h3 { color:#151e3c; }
.dds-pagination { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; gap:10px; margin:16px 0 0; color:#71809a; font-size:12px; }
.dds-pagination>span { margin-right:auto; }
.dds-modal-layer { position:fixed; inset:0; background:rgba(15,23,52,.45); z-index:30000; display:flex; align-items:center; justify-content:center; padding:20px; }
.dds-modal { width:620px; max-width:100%; max-height:90vh; overflow:auto; background:#fff; border-radius:20px; padding:24px; box-shadow:0 16px 70px #11193635; box-sizing:border-box; color:#121a3b; }
.dds-close { border:0; background:transparent; color:#65718a; font-size:26px; cursor:pointer; padding:0 4px; }
.dds-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin:20px 0; }
.dds-full { grid-column:1/-1; }
.dds-form-grid [hidden] { display:none; }
.dds-modal-buttons { display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }
.dds-modal-error { line-height:1.5; font-size:13px; }
@media(max-width:1150px) { .dds-cards { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:700px) { .dds-panel { padding:16px; border-radius:16px; } .dds-cards { grid-template-columns:repeat(2,minmax(0,1fr)); } .dds-card { padding:12px; } .dds-card strong { font-size:20px; } .dds-heading { flex-wrap:wrap; gap:8px; } .dds-toolbar .dds-field { flex:1; min-width:125px; } .dds-chart text { font-size:15px; } .dds-form-grid { grid-template-columns:1fr; } .dds-modal-layer { padding:10px; } .dds-modal { padding:20px; } .dds-journal-filters .dds-input { max-width:100%; width:100%; } }

.dds-store-fields { border:1px solid #e5eaf4; border-radius:12px; padding:12px; min-width:0; }
.dds-store-fields legend { padding:0 6px; font-size:13px; }
.dds-store-choice { display:flex; align-items:flex-start; gap:10px; margin:10px 0; font-size:13px; }
.dds-store-choice input { margin-top:4px; flex-shrink:0; }
.dds-store-choice small { display:block; color:#71809a; margin-top:4px; }
.dds-payout-sync { display:flex; flex-wrap:wrap; gap:14px; margin:12px 0; font-size:13px; }
.dds-payout-sync span { color:#71809a; }
