.dyc-root{box-sizing:border-box;width:100%;font-family:inherit;color:#172033}
.dyc-root,.dyc-root *{box-sizing:border-box}
.dyc-root .dyc-shell{max-width:900px;margin:24px auto;padding:0;border:1px solid #e6eaf0;border-radius:22px;background:#fff;box-shadow:0 14px 45px rgba(20,30,50,.08);overflow:hidden}
.dyc-root .dyc-head{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:28px;background:linear-gradient(135deg,#f8fafc,#eef5ff)}
.dyc-root .dyc-kicker{display:block;font-size:12px;color:#64748b;margin-bottom:5px}
.dyc-root h2{margin:0 0 7px;font-size:27px;line-height:1.3}
.dyc-root .dyc-head p{margin:0;color:#64748b;font-size:14px}
.dyc-root .dyc-rate{min-width:92px;text-align:center;padding:12px;border-radius:15px;background:#fff;border:1px solid #e2e8f0}
.dyc-root .dyc-rate span{display:block;font-size:11px;color:#64748b}.dyc-root .dyc-rate strong{font-size:22px}
.dyc-root .dyc-tabs{display:flex;gap:8px;padding:16px 22px 0;border-bottom:1px solid #edf0f4}
.dyc-root .dyc-tab{border:0;background:transparent;padding:12px 16px;font:inherit;color:#64748b;cursor:pointer;border-bottom:2px solid transparent}
.dyc-root .dyc-tab.is-active{color:#1d4ed8;border-bottom-color:#2563eb;font-weight:700}
.dyc-root .dyc-panel{display:none;padding:24px 22px}.dyc-root .dyc-panel.is-active{display:block}
.dyc-root .dyc-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dyc-root .dyc-wide{grid-column:span 2}
.dyc-root .dyc-field{display:block}.dyc-root .dyc-field>span{display:block;margin-bottom:7px;font-size:13px;font-weight:700;color:#334155}
.dyc-root input,.dyc-root select{width:100%;min-height:48px;border:1px solid #d8dee8;border-radius:12px;background:#fff;padding:0 13px;font:inherit;color:#172033;outline:none}
.dyc-root input:focus,.dyc-root select:focus{border-color:#3b82f6;box-shadow:0 0 0 3px rgba(59,130,246,.12)}
.dyc-root .dyc-input-wrap{position:relative}.dyc-root .dyc-input-wrap input{padding-left:42px}.dyc-root .dyc-input-wrap b{position:absolute;left:14px;top:13px;color:#64748b;font-size:14px}
.dyc-root .dyc-note,.dyc-root .dyc-description{margin-top:15px;padding:12px 14px;border-radius:12px;background:#f8fafc;color:#64748b;font-size:12px;line-height:1.9}
.dyc-root .dyc-submit{display:block;width:calc(100% - 44px);margin:0 22px 20px;min-height:52px;border:0;border-radius:14px;background:#2563eb;color:#fff;font:inherit;font-weight:800;cursor:pointer}
.dyc-root .dyc-submit:hover{background:#1d4ed8}
.dyc-root .dyc-result{margin:0 22px 18px;border-radius:18px;background:#0f172a;color:#fff;padding:22px;display:flex;justify-content:space-between;gap:20px;align-items:center}
.dyc-root .dyc-result-main span{display:block;color:#cbd5e1;font-size:12px}.dyc-root .dyc-result-main strong{display:inline-block;font-size:31px;line-height:1.3;margin-top:5px}.dyc-root .dyc-result-main small{margin-right:7px;color:#cbd5e1}
.dyc-root .dyc-result-meta{display:flex;gap:12px}.dyc-root .dyc-result-meta div{min-width:110px;padding:10px 12px;border-radius:12px;background:rgba(255,255,255,.08)}.dyc-root .dyc-result-meta span{display:block;color:#cbd5e1;font-size:11px}.dyc-root .dyc-result-meta b{display:block;margin-top:4px;font-size:13px}
.dyc-root .dyc-footer{padding:0 22px 22px;color:#94a3b8;font-size:11px;line-height:1.8}
@media(max-width:700px){.dyc-root .dyc-head{padding:22px}.dyc-root .dyc-grid{grid-template-columns:1fr}.dyc-root .dyc-wide{grid-column:auto}.dyc-root .dyc-result{display:block}.dyc-root .dyc-result-meta{margin-top:15px}.dyc-root .dyc-tabs{overflow:auto;white-space:nowrap}.dyc-root h2{font-size:23px}}
.dyc-root .dyc-toolbar{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:14px;padding:20px 22px;background:#fff;border-bottom:1px solid #edf0f4}.dyc-root .dyc-legal-badge{align-self:end;padding:13px 14px;border-radius:12px;background:#eff6ff;color:#1d4ed8;font-size:12px;line-height:1.7}.dyc-root .dyc-section-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.dyc-root .dyc-section-title strong{display:block;font-size:17px}.dyc-root .dyc-section-title small{display:block;color:#64748b;margin-top:4px;font-size:12px}.dyc-root .dyc-secondary,.dyc-root .dyc-reset,.dyc-root .dyc-remove{border:0;border-radius:10px;padding:10px 13px;font:inherit;cursor:pointer}.dyc-root .dyc-secondary{background:#eff6ff;color:#1d4ed8;font-weight:700}.dyc-root .dyc-reset{display:block;margin:0 22px 20px;background:#f1f5f9;color:#475569}.dyc-root .dyc-row{padding:16px;border:1px solid #e5e7eb;border-radius:16px;margin-bottom:12px;background:#fff}.dyc-root .dyc-row-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.dyc-root .dyc-row-number{font-weight:800;color:#334155}.dyc-root .dyc-remove{background:#fef2f2;color:#b91c1c}.dyc-root .dyc-row-meta{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px;font-size:11px;color:#64748b;line-height:1.8}.dyc-root .dyc-row-meta span{padding:4px 8px;border-radius:8px;background:#f8fafc}.dyc-root .dyc-custom{display:none;margin-top:12px}.dyc-root .dyc-table-scroll{overflow:auto;margin:0 22px 22px;border:1px solid #e5e7eb;border-radius:14px}.dyc-root table{width:100%;border-collapse:collapse;min-width:760px;background:#fff}.dyc-root th,.dyc-root td{padding:11px 10px;border-bottom:1px solid #eef2f7;text-align:right;font-size:12px;vertical-align:top}.dyc-root th{background:#f8fafc;color:#334155;font-weight:800}.dyc-root td{color:#475569}.dyc-root tr:last-child td{border-bottom:0}.dyc-root .dyc-detail:empty{display:none}@media(max-width:700px){.dyc-root .dyc-toolbar{grid-template-columns:1fr}.dyc-root .dyc-section-title{align-items:flex-start;flex-direction:column}.dyc-root .dyc-custom{grid-template-columns:1fr}.dyc-root .dyc-row-meta{display:block}.dyc-root .dyc-row-meta span{display:inline-block;margin:2px}}
.dyc-root .dyc-row-actions{display:flex;justify-content:flex-end;gap:8px;align-items:center;margin-top:13px;padding-top:12px;border-top:1px solid #eef2f7}.dyc-root .dyc-add-row{border:1px solid #bfdbfe;border-radius:10px;padding:9px 12px;background:#eff6ff;color:#1d4ed8;font:inherit;font-weight:700;cursor:pointer}.dyc-root .dyc-add-row:hover{background:#dbeafe}.dyc-root .dyc-grid-row{grid-template-columns:1fr 2fr .7fr}.dyc-root .dyc-grid-row .dyc-wide{grid-column:auto}@media(max-width:700px){.dyc-root .dyc-grid-row{grid-template-columns:1fr}.dyc-root .dyc-row-actions{justify-content:stretch;flex-direction:column}.dyc-root .dyc-row-actions button{width:100%}}
.dyc-root .dyc-percent-picker{position:relative;max-width:100%;margin-top:10px}.dyc-root .dyc-percent-toggle{width:100%;min-height:52px;border:1px solid #cbd5e1;border-radius:13px;background:#fff;padding:0 16px;font:inherit;font-weight:700;color:#1e293b;text-align:right;cursor:pointer;display:flex;align-items:center;justify-content:space-between}.dyc-root .dyc-percent-toggle:hover{border-color:#2563eb}.dyc-root .dyc-percent-menu{display:none;position:absolute;z-index:20;top:58px;right:0;left:0;max-height:390px;overflow:auto;background:#fff;border:1px solid #dbe3ee;border-radius:14px;box-shadow:0 18px 40px rgba(15,23,42,.14);padding:10px}.dyc-root .dyc-percent-menu.is-open{display:block}.dyc-root .dyc-percent-group-title{font-size:12px;font-weight:800;color:#1d4ed8;padding:9px 8px 6px;border-bottom:1px solid #eef2f7;margin-bottom:4px}.dyc-root .dyc-percent-option{display:flex;align-items:center;gap:9px;padding:9px 8px;border-radius:9px;cursor:pointer;font-size:13px;color:#334155}.dyc-root .dyc-percent-option:hover{background:#f8fafc}.dyc-root .dyc-percent-option input{width:18px;min-height:18px;margin:0;accent-color:#2563eb}.dyc-root .dyc-percent-option span{flex:1}.dyc-root .dyc-percent-option em{font-style:normal;color:#2563eb;font-size:11px}.dyc-root .dyc-percent-selected{display:grid;gap:10px;margin-top:15px}.dyc-root .dyc-percent-card{display:grid;grid-template-columns:1fr auto auto;gap:12px;align-items:center;border:1px solid #e2e8f0;border-radius:13px;padding:12px 14px;background:#f8fbff}.dyc-root .dyc-percent-card strong{display:block;color:#172033;font-size:13px}.dyc-root .dyc-percent-card small{display:block;color:#64748b;font-size:11px;margin-top:3px}.dyc-root .dyc-percent-card label{display:flex;align-items:center;gap:6px;font-size:11px;color:#64748b}.dyc-root .dyc-percent-card input{width:75px;min-height:40px}.dyc-root .dyc-percent-card button{width:34px;height:34px;border:0;border-radius:9px;background:#fef2f2;color:#b91c1c;font-size:20px;cursor:pointer}.dyc-root .dyc-empty{padding:16px;text-align:center;border:1px dashed #cbd5e1;border-radius:12px;color:#94a3b8;font-size:12px}.dyc-root .dyc-percent-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.dyc-root .dyc-percent-summary>div{padding:15px;border-radius:13px;background:#eff6ff;border:1px solid #dbeafe}.dyc-root .dyc-percent-summary span{display:block;color:#64748b;font-size:11px}.dyc-root .dyc-percent-summary strong{display:block;color:#0f4fa8;font-size:15px;margin-top:5px;line-height:1.8}.dyc-root .dyc-percent-summary .dyc-percent-base{grid-column:1/-1;background:#f8fafc;border-color:#e2e8f0;display:flex;justify-content:space-between;align-items:center}.dyc-root .dyc-percent-summary .dyc-percent-base strong{margin:0}.dyc-root .dyc-tabs{background:#fff}.dyc-root .dyc-tab{font-weight:700}.dyc-root .dyc-tab.is-active{color:#1259b5;border-bottom-color:#1259b5}@media(max-width:700px){.dyc-root .dyc-percent-card{grid-template-columns:1fr auto}.dyc-root .dyc-percent-card button{grid-column:2;grid-row:1}.dyc-root .dyc-percent-summary{grid-template-columns:1fr}.dyc-root .dyc-percent-summary .dyc-percent-base{grid-column:auto;display:block}.dyc-root .dyc-percent-summary .dyc-percent-base strong{margin-top:5px}}

.dyc-root .dyc-result-words{margin-top:8px;color:#bfdbfe;font-size:12px;line-height:1.9}
.dyc-root .dyc-percent-option em{white-space:nowrap}
.dyc-root .dyc-percent-card small{line-height:1.8}

.dyc-percent-search{width:100%;box-sizing:border-box;padding:10px 12px;border:1px solid #dbe5f4;border-radius:10px;margin-bottom:8px;font-family:inherit;direction:rtl;background:#fff;}
.dyc-percent-menu{max-height:420px;overflow:auto;}
.dyc-percent-option{display:flex;align-items:center;gap:8px;padding:7px 8px;cursor:pointer;}
.dyc-percent-option em{font-style:normal;color:#185abd;font-size:12px;margin-right:5px;}
.dyc-percent-group-title{position:sticky;top:0;background:#eef5ff;color:#123d73;font-weight:700;padding:8px;margin:5px 0;}
/* v1.2 compact percent picker */
.dyc-root .dyc-shell{max-width:820px;margin:16px auto;border-radius:16px;box-shadow:0 8px 26px rgba(20,30,50,.06)}
.dyc-root .dyc-head{padding:20px 22px}
.dyc-root .dyc-head p{font-size:12px}
.dyc-root .dyc-tabs{padding:10px 16px 0}
.dyc-root .dyc-panel{padding:18px 18px}
.dyc-root .dyc-toolbar{padding:14px 18px;gap:10px}
.dyc-root .dyc-result,.dyc-root .dyc-submit,.dyc-root .dyc-reset{display:none !important}
.dyc-root .dyc-percent-picker{margin-top:8px}
.dyc-root .dyc-picker-grid{display:grid;grid-template-columns:1fr 1.35fr;gap:12px;align-items:end}
.dyc-root .dyc-percent-toggle{min-height:46px;padding:0 13px;border-radius:11px;font-size:13px}
.dyc-root .dyc-percent-menu{top:104px;max-height:300px;border-radius:12px;padding:8px;box-shadow:0 10px 26px rgba(15,23,42,.12)}
.dyc-root .dyc-percent-search{min-height:40px;padding:7px 10px;margin-bottom:5px}
.dyc-root .dyc-percent-option{padding:7px 6px;font-size:12px}
.dyc-root .dyc-percent-group-title{padding:7px;margin:4px 0;font-size:11px}
.dyc-root .dyc-custom-percent-box{margin-top:12px;padding:12px 13px;border:1px solid #dbe5f4;border-radius:12px;background:#f8fbff}
.dyc-root .dyc-custom-percent-title{font-size:13px;font-weight:800;color:#334155;margin-bottom:9px}
.dyc-root .dyc-custom-percent-fields{display:flex;align-items:end;gap:7px;flex-wrap:wrap}
.dyc-root .dyc-custom-percent-fields label{display:block}
.dyc-root .dyc-custom-percent-fields label span{display:block;font-size:10px;color:#64748b;margin-bottom:4px}
.dyc-root .dyc-custom-percent-fields input{width:72px;min-height:42px;text-align:center;padding:0 6px;border-radius:9px;font-size:16px;font-weight:800}
.dyc-root .dyc-decimal-dot{font-size:20px;font-weight:800;color:#334155;padding-bottom:8px}
.dyc-root .dyc-add-custom-percent{min-height:42px;border:0;border-radius:9px;background:#2563eb;color:#fff;padding:0 13px;font:inherit;font-size:12px;font-weight:800;cursor:pointer}
.dyc-root .dyc-custom-percent-box small{display:block;margin-top:7px;color:#64748b;font-size:10px;line-height:1.8}
.dyc-root .dyc-percent-selected{gap:8px;margin-top:12px}
.dyc-root .dyc-percent-card{grid-template-columns:1fr auto auto;gap:8px;padding:9px 11px;border-radius:11px}
.dyc-root .dyc-percent-card strong{font-size:12px}
.dyc-root .dyc-percent-card small{font-size:10px}
.dyc-root .dyc-percent-card input{width:62px;min-height:36px}
.dyc-root .dyc-percent-card button{width:30px;height:30px;font-size:18px}
.dyc-root .dyc-percent-summary{grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.dyc-root .dyc-percent-summary>div{padding:11px 12px;border-radius:11px}
.dyc-root .dyc-percent-summary strong{font-size:13px}
@media(max-width:700px){
 .dyc-root .dyc-picker-grid{grid-template-columns:1fr}
 .dyc-root .dyc-percent-menu{top:160px}
 .dyc-root .dyc-percent-summary{grid-template-columns:1fr}
 .dyc-root .dyc-custom-percent-fields{align-items:stretch}
 .dyc-root .dyc-add-custom-percent{flex:1}
}

/* v1.2.2 - split numeric input for body-member custom percentage */
.dyc-root .dyc-split-number-field{min-width:0}
.dyc-root .dyc-split-number{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:5px}
.dyc-root .dyc-split-number input{width:78px;min-height:42px;box-sizing:border-box;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:0 8px;text-align:center;font:inherit;font-weight:700;direction:ltr}
.dyc-root .dyc-split-number input::placeholder{color:#94a3b8;opacity:1;font-size:12px;font-weight:600}
.dyc-root .dyc-split-separator{font-size:22px;font-weight:800;color:#64748b;line-height:1}
@media(max-width:700px){.dyc-root .dyc-split-number{justify-content:flex-start}.dyc-root .dyc-split-number input{width:calc(50% - 12px);min-width:70px}}

/* v1.2.3 refinements */
.dyc-root .dyc-tabs{gap:5px;padding:8px 12px 0;overflow:hidden}
.dyc-root .dyc-tab{padding:9px 11px;font-size:13px;line-height:1.5;min-width:0;flex:1;text-align:center;white-space:normal;border-radius:9px 9px 0 0}
.dyc-root .dyc-body-calculate{display:block;width:100%;max-width:320px;margin:16px auto 14px;min-height:44px;border:0;border-radius:10px;background:#2563eb;color:#fff;font:inherit;font-size:13px;font-weight:800;cursor:pointer;padding:0 16px}
.dyc-root .dyc-body-calculate:hover{background:#1d4ed8}
.dyc-root .dyc-body-detail{margin-top:8px}
.dyc-root .dyc-custom-percent-fields{direction:rtl}
.dyc-root .dyc-custom-percent-fields label{min-width:72px}
.dyc-root .dyc-custom-percent-fields input::placeholder{color:#94a3b8;opacity:1}
.dyc-root .dyc-root{overflow-x:hidden}
@media(max-width:700px){
 .dyc-root .dyc-shell{width:100%;max-width:100%;margin:8px 0;border-radius:12px}
 .dyc-root .dyc-head{padding:14px 12px}
 .dyc-root .dyc-head h2{font-size:19px}
 .dyc-root .dyc-kicker{font-size:10px}
 .dyc-root .dyc-head p{font-size:10px}
 .dyc-root .dyc-rate{min-width:68px;padding:8px;border-radius:10px}
 .dyc-root .dyc-rate strong{font-size:16px}
 .dyc-root .dyc-tabs{padding:6px 7px 0;gap:4px}
 .dyc-root .dyc-tab{font-size:11px;padding:7px 5px;min-height:38px}
 .dyc-root .dyc-panel{padding:12px 10px}
 .dyc-root .dyc-section-title{margin-bottom:10px}
 .dyc-root .dyc-section-title strong{font-size:14px}
 .dyc-root .dyc-section-title small{font-size:10px}
 .dyc-root .dyc-toolbar{padding:10px;gap:8px}
 .dyc-root .dyc-field>span{font-size:11px}
 .dyc-root input,.dyc-root select{min-height:42px;font-size:12px;padding:0 10px}
 .dyc-root .dyc-row{padding:11px;border-radius:12px}
 .dyc-root .dyc-body-calculate{max-width:none;margin:12px 0 10px;min-height:42px;font-size:12px}
 .dyc-root .dyc-custom-percent-fields{gap:5px;flex-wrap:nowrap}
 .dyc-root .dyc-custom-percent-fields label{min-width:0;flex:1}
 .dyc-root .dyc-custom-percent-fields input{width:100%;min-height:38px;font-size:14px}
 .dyc-root .dyc-decimal-dot{padding-bottom:7px;font-size:17px}
}


/* v1.2.4: نتیجه موبایل بدون اسکرول افقی */
@media(max-width:700px){
  .dyc-root .dyc-table-scroll{
    overflow:visible !important;
    margin:10px 0 14px;
    border:0;
    border-radius:0;
    width:100%;
    max-width:100%;
  }
  .dyc-root .dyc-table-scroll table{
    width:100%;
    max-width:100%;
    min-width:0 !important;
    table-layout:fixed;
    border-collapse:separate;
    border-spacing:0 10px;
    background:transparent;
  }
  .dyc-root .dyc-table-scroll thead{display:none}
  .dyc-root .dyc-table-scroll tbody,
  .dyc-root .dyc-table-scroll tr{
    display:block;
    width:100%;
    max-width:100%;
  }
  .dyc-root .dyc-table-scroll tr{
    box-sizing:border-box;
    border:1px solid #e5e7eb;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
    margin-bottom:10px;
  }
  .dyc-root .dyc-table-scroll td{
    display:grid;
    grid-template-columns:minmax(82px,34%) minmax(0,1fr);
    gap:8px;
    width:100%;
    max-width:100%;
    box-sizing:border-box;
    padding:8px 10px;
    border-bottom:1px solid #eef2f7;
    text-align:right;
    font-size:11px;
    line-height:1.8;
    white-space:normal;
    overflow-wrap:anywhere;
  }
  .dyc-root .dyc-table-scroll td:last-child{border-bottom:0}
  .dyc-root .dyc-table-scroll td::before{
    content:attr(data-label);
    font-weight:800;
    color:#334155;
  }
  .dyc-root .dyc-body-detail,
  .dyc-root .dyc-detail{
    width:100%;
    max-width:100%;
    overflow:hidden;
  }
}

.dyc-root .dyc-words{
  margin-top:5px;
  font-size:10px;
  line-height:1.8;
  color:#475569;
  font-weight:700;
  white-space:normal;
  overflow-wrap:anywhere;
}
