.dap-card{background:#fff;border:1px solid #e7e7ea;border-radius:18px;padding:24px;margin:0 0 22px;box-shadow:0 8px 28px rgba(20,26,45,.05);direction:rtl}.dap-card h2,.dap-card h3{margin-top:0}.dap-auth-grid,.dap-two-col,.dap-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;direction:rtl}.dap-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dap-card label{display:block;font-weight:700;margin:0 0 14px}.dap-card input[type=text],.dap-card input[type=email],.dap-card input[type=password],.dap-card input[type=number],.dap-card input[type=url],.dap-card input[type=file],.dap-card textarea,.dap-card select{width:100%;margin-top:7px;padding:12px 14px;border:1px solid #d7d9df;border-radius:12px;background:#fff;box-sizing:border-box}.dap-btn,.dap-small-btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:12px;padding:12px 20px;background:#173f75;color:#fff!important;text-decoration:none;cursor:pointer;font-weight:800}.dap-btn-secondary{background:#586174}.dap-small-btn{padding:8px 12px;border-radius:9px}.dap-small-btn.is-outline{background:#fff;color:#173f75!important;border:1px solid #173f75}.dap-header-row,.dap-project-head{display:flex;align-items:center;justify-content:space-between;gap:15px;direction:rtl}.dap-project-card{display:block;background:#fff;border:1px solid #e7e7ea;border-radius:18px;padding:22px;text-decoration:none;color:#1d2433;box-shadow:0 8px 28px rgba(20,26,45,.05)}.dap-code{display:inline-block;background:#eef3fb;color:#173f75;border-radius:999px;padding:5px 10px;font-size:12px;font-weight:800}.dap-progress{height:9px;background:#edf0f4;border-radius:999px;overflow:hidden;margin:18px 0 8px}.dap-progress span{display:block;height:100%;background:#173f75;border-radius:999px}.dap-timeline{position:relative}.dap-stage{display:grid;grid-template-columns:22px 1fr;gap:12px;padding:0 0 20px;position:relative}.dap-stage:before{content:"";position:absolute;right:10px;top:20px;bottom:0;width:2px;background:#e4e7ec}.dap-stage:last-child:before{display:none}.dap-stage-dot{width:16px;height:16px;border:3px solid #cfd5df;border-radius:50%;background:#fff;z-index:1;margin-top:2px}.dap-stage small{display:block;color:#697386;margin-top:3px}.dap-stage p{margin:7px 0 0;color:#3f4856}.status-completed .dap-stage-dot{background:#27895a;border-color:#27895a}.status-in_progress .dap-stage-dot{background:#e3a124;border-color:#e3a124}.status-waiting_customer .dap-stage-dot,.status-waiting_approval .dap-stage-dot{background:#7a56d6;border-color:#7a56d6}.status-problem .dap-stage-dot{background:#be3d4e;border-color:#be3d4e}.dap-file-list a{display:flex;justify-content:space-between;gap:10px;padding:12px 0;border-bottom:1px solid #eceef2;text-decoration:none}.dap-form-space{margin-top:22px;padding-top:20px;border-top:1px solid #eceef2}.dap-messages{display:flex;flex-direction:column;gap:12px}.dap-message{max-width:78%;padding:13px 15px;border-radius:14px;background:#f1f3f6}.dap-message.is-me{align-self:flex-start;background:#eaf1fb}.dap-message p{margin:6px 0}.dap-message small{color:#697386}.dap-approval-box{padding:15px 0;border-bottom:1px solid #eceef2}.dap-notice{padding:13px 16px;border-radius:12px;margin:0 0 18px;direction:rtl}.dap-notice-success{background:#e9f7ef;color:#1e6c47}.dap-notice-error{background:#fdeced;color:#9d2637}.dap-finance{background:#f8fafc}.dap-order-form fieldset{border:1px solid #e2e6ec;border-radius:14px;padding:16px;margin:16px 0}.dap-order-form fieldset label{display:inline-block;margin-left:18px;font-weight:500}.dap-order-form legend{font-weight:800;padding:0 8px}@media(max-width:760px){.dap-auth-grid,.dap-two-col,.dap-project-grid,.dap-form-grid{grid-template-columns:1fr}.dap-header-row,.dap-project-head{align-items:flex-start;flex-direction:column}.dap-message{max-width:94%}}

/* Order form enhancements - v1.0.2 */
.dap-order-form{--dap-green:#056839;--dap-lime:#8dc63f}
.dap-order-form .dap-form-intro{color:#66776e;margin:-8px 0 22px}
.dap-order-form .dap-btn,.dap-btn{background:var(--dap-green,#056839)}
.dap-order-form .dap-form-grid{align-items:end}
.dap-order-form .dap-custom-size{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:14px;border:1px dashed #cfe0d3;border-radius:14px;background:#f8fbf7}
.dap-order-form .dap-custom-size[hidden]{display:none}
.dap-order-form fieldset{background:#fbfdf9;border-color:#dce9df}
.dap-service-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 18px}
.dap-order-form fieldset .dap-service-grid label{display:flex;align-items:center;gap:7px;margin:0;padding:8px 10px;border:1px solid #e3ece3;border-radius:10px;background:#fff}
.dap-order-form fieldset input[type=checkbox]{width:auto;margin:0;accent-color:#056839}
.dap-inline-field{max-width:320px;margin-top:15px!important}
.dap-inline-field[hidden]{display:none!important}
.dap-upload-section{padding:18px;border:1px solid #dce8df;border-radius:15px;background:#f9fcf8;margin:18px 0}
.dap-upload-section small{display:block;color:#6d7e75;margin-top:-5px}
.dap-docx-analysis{margin-top:13px;padding:12px 14px;border-radius:11px;font-size:14px}
.dap-docx-analysis.is-loading{background:#fff7dd;color:#7d6416}
.dap-docx-analysis.is-success{background:#e9f7ef;color:#176b42;border:1px solid #cdebd9}
.dap-docx-analysis.is-error{background:#fdeced;color:#9d2637;border:1px solid #f4cbd0}
.dap-rights-consent{display:flex!important;align-items:flex-start;gap:10px;padding:16px;border:1px solid #d7e5d9;border-radius:14px;background:#f6fbf3;font-weight:500!important;line-height:2}
.dap-rights-consent input{width:auto!important;margin:7px 0 0!important;accent-color:#056839;flex:0 0 auto}
.dap-order-summary .dap-summary-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.dap-order-summary .dap-summary-grid>div{padding:13px;border:1px solid #e1eae2;border-radius:12px;background:#fafcf9}
.dap-order-summary span{display:block;color:#738078;font-size:12px;margin-bottom:4px}
.dap-order-summary strong{display:block}
@media(max-width:760px){.dap-service-grid{grid-template-columns:1fr 1fr}.dap-order-form .dap-custom-size,.dap-order-summary .dap-summary-grid{grid-template-columns:1fr}}
@media(max-width:480px){.dap-service-grid{grid-template-columns:1fr}}

/* Author profile and publisher panel - v1.0.3 */
.dap-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.dap-profile-form{max-width:1100px;margin-inline:auto}
.dap-profile-top{display:flex;align-items:center;gap:20px;padding:0 0 22px;margin:0 0 22px;border-bottom:1px solid #e8eee8}
.dap-profile-top>label{flex:1;margin:0}
.dap-profile-top small{display:block;color:#748078;margin-top:7px;font-weight:400}
.dap-avatar-box{width:100px;height:100px;border-radius:24px;background:#eef7df;border:1px solid #d9e8c5;display:grid;place-items:center;overflow:hidden;flex:0 0 auto}
.dap-avatar-box img{width:100%;height:100%;object-fit:cover}
.dap-avatar-box span{font-size:38px;font-weight:900;color:#056839}
.dap-publisher-shell{--dap-green:#056839;--dap-lime:#8dc63f}
.dap-publisher-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:0 0 20px}
.dap-publisher-stats a{display:flex;flex-direction:column;gap:5px;background:#fff;border:1px solid #dce8df;border-radius:16px;padding:18px;text-decoration:none;color:#163b2b;box-shadow:0 8px 24px rgba(5,104,57,.05)}
.dap-publisher-stats a:hover{border-color:#8dc63f;transform:translateY(-2px)}
.dap-publisher-stats span{font-size:12px;color:#6b7b72}
.dap-publisher-stats strong{font-size:28px;color:#056839;line-height:1.2}
.dap-publisher-filter form{display:grid;grid-template-columns:2fr 1fr auto;gap:14px;align-items:end}
.dap-publisher-filter label{margin:0}
.dap-publisher-table-wrap{overflow:auto}
.dap-publisher-table{width:100%;border-collapse:collapse;min-width:900px}
.dap-publisher-table th,.dap-publisher-table td{text-align:right;padding:14px 12px;border-bottom:1px solid #e7eee8;vertical-align:middle;font-size:13px}
.dap-publisher-table th{font-size:12px;color:#6b7b72;background:#f8fbf7}
.dap-publisher-table .dap-progress{width:120px;margin:0 0 5px}
.dap-publisher-top-grid{align-items:start}
.dap-customer-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px;padding:15px;border:1px solid #e0eae1;border-radius:14px;background:#f8fbf7}
.dap-customer-summary strong{grid-column:1/-1;color:#056839}
.dap-customer-summary span{font-size:12px;color:#5f7067}
.dap-publisher-workflow{display:grid;gap:8px}
.dap-workflow-row{display:grid;grid-template-columns:minmax(160px,.8fr) minmax(160px,.65fr) minmax(250px,1.5fr);gap:12px;align-items:center;padding:10px;border:1px solid #e2ebe3;border-radius:12px;background:#fbfdfb}
.dap-workflow-row strong{font-size:13px}
.dap-workflow-row select,.dap-workflow-row input{margin:0!important}
.dap-publisher-messages{max-height:460px;overflow:auto;padding-left:4px}
.dap-publisher-savebar{position:sticky;bottom:15px;z-index:10;display:flex;justify-content:flex-start;margin:20px 0;padding:15px;border:1px solid #dce8df;background:rgba(255,255,255,.95);backdrop-filter:blur(10px);border-radius:16px;box-shadow:0 10px 35px rgba(5,104,57,.12)}
.dap-publisher-project-form .dap-service-grid label{display:flex;align-items:center;gap:7px;margin:0;padding:9px 10px;border:1px solid #e2ebe3;border-radius:10px;background:#fbfdfb;font-weight:500}
.dap-publisher-project-form .dap-service-grid input{width:auto;margin:0;accent-color:#056839}
@media(max-width:980px){.dap-publisher-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dap-publisher-filter form{grid-template-columns:1fr}.dap-workflow-row{grid-template-columns:1fr 1fr}.dap-workflow-row input{grid-column:1/-1}.dap-customer-summary{grid-template-columns:1fr}}
@media(max-width:760px){.dap-header-actions{width:100%}.dap-header-actions a{flex:1}.dap-profile-top{align-items:flex-start;flex-direction:column}.dap-publisher-stats{grid-template-columns:1fr 1fr}.dap-workflow-row{grid-template-columns:1fr}.dap-workflow-row input{grid-column:auto}.dap-publisher-savebar .dap-btn{width:100%}}

/* Brand color normalization - v1.0.4 */
:root{
  --dap-brand-green:#056839;
  --dap-brand-green-hover:#04552f;
  --dap-brand-lime:#8dc63f;
  --dap-brand-soft:#eef7df;
  --dap-brand-text:#173428;
  --dap-brand-line:#d7e5d9;
}

/* Primary and secondary actions */
.dap-btn,
.dap-small-btn,
.dap-card button[type="submit"],
.dap-card input[type="submit"],
.dap-publisher-shell button[type="submit"],
.dap-publisher-shell input[type="submit"]{
  background:var(--dap-brand-green)!important;
  border-color:var(--dap-brand-green)!important;
  color:#fff!important;
  text-decoration:none!important;
  box-shadow:none!important;
}
.dap-btn:hover,
.dap-btn:focus,
.dap-small-btn:hover,
.dap-small-btn:focus,
.dap-card button[type="submit"]:hover,
.dap-card button[type="submit"]:focus,
.dap-card input[type="submit"]:hover,
.dap-card input[type="submit"]:focus,
.dap-publisher-shell button[type="submit"]:hover,
.dap-publisher-shell button[type="submit"]:focus,
.dap-publisher-shell input[type="submit"]:hover,
.dap-publisher-shell input[type="submit"]:focus{
  background:var(--dap-brand-green-hover)!important;
  border-color:var(--dap-brand-green-hover)!important;
  color:#fff!important;
}
.dap-btn-secondary{
  background:#ffffff!important;
  color:var(--dap-brand-green)!important;
  border:1px solid var(--dap-brand-green)!important;
}
.dap-btn-secondary:hover,
.dap-btn-secondary:focus{
  background:var(--dap-brand-soft)!important;
  color:var(--dap-brand-green-hover)!important;
  border-color:var(--dap-brand-green-hover)!important;
}
.dap-small-btn.is-outline,
.dap-btn.is-outline,
a.dap-small-btn.is-outline,
a.dap-btn.is-outline{
  background:#fff!important;
  color:var(--dap-brand-green)!important;
  border:1px solid var(--dap-brand-green)!important;
}
.dap-small-btn.is-outline:hover,
.dap-small-btn.is-outline:focus,
.dap-btn.is-outline:hover,
.dap-btn.is-outline:focus{
  background:var(--dap-brand-soft)!important;
  color:var(--dap-brand-green-hover)!important;
  border-color:var(--dap-brand-green-hover)!important;
}

/* Links inside author and publisher panels */
.dap-card a:not(.dap-btn):not(.dap-small-btn):not(.dap-project-card),
.dap-publisher-shell a:not(.dap-btn):not(.dap-small-btn):not(.dap-project-card),
.dap-file-list a,
.dap-publisher-table a,
.dap-header-actions a:not(.dap-btn):not(.dap-small-btn){
  color:var(--dap-brand-green)!important;
  text-decoration:none;
}
.dap-card a:not(.dap-btn):not(.dap-small-btn):not(.dap-project-card):hover,
.dap-card a:not(.dap-btn):not(.dap-small-btn):not(.dap-project-card):focus,
.dap-publisher-shell a:not(.dap-btn):not(.dap-small-btn):not(.dap-project-card):hover,
.dap-publisher-shell a:not(.dap-btn):not(.dap-small-btn):not(.dap-project-card):focus,
.dap-file-list a:hover,
.dap-file-list a:focus,
.dap-publisher-table a:hover,
.dap-publisher-table a:focus{
  color:var(--dap-brand-green-hover)!important;
}

/* Green brand accents */
.dap-code{
  background:var(--dap-brand-soft)!important;
  color:var(--dap-brand-green)!important;
}
.dap-progress span{
  background:linear-gradient(90deg,var(--dap-brand-green),var(--dap-brand-lime))!important;
}
.dap-message.is-me{
  background:var(--dap-brand-soft)!important;
}
.dap-project-card:hover,
.dap-project-card:focus{
  border-color:var(--dap-brand-lime)!important;
}
.dap-card input:focus,
.dap-card textarea:focus,
.dap-card select:focus,
.dap-publisher-shell input:focus,
.dap-publisher-shell textarea:focus,
.dap-publisher-shell select:focus{
  border-color:var(--dap-brand-green)!important;
  box-shadow:0 0 0 3px rgba(5,104,57,.10)!important;
  outline:none!important;
}

/* Professional finance module - v1.0.8 */
.dap-finance-pro,.dap-publisher-finance-card{margin-top:24px}
.dap-finance-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:20px}
.dap-finance-title-row h3{margin:0 0 5px}
.dap-finance-title-row p{margin:0;color:#6b7d72;font-size:13px}
.dap-finance-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:0 0 22px}
.dap-finance-cards article{padding:17px;border:1px solid #dfeadf;border-radius:16px;background:#f9fcf7}
.dap-finance-cards article span{display:block;color:#6a7a71;font-size:12px;margin-bottom:7px}
.dap-finance-cards article strong{display:block;color:#0b5737;font-size:17px;line-height:1.7}
.dap-finance-cards article.is-success{background:#edf8f0;border-color:#cfe8d5}
.dap-finance-cards article.is-warning{background:#fff9e8;border-color:#f0dfaa}
.dap-finance-cards article.is-balance{background:#e9f5ee;border-color:#bddcc8}
.dap-finance-section{border-top:1px solid #e1ebe2;padding-top:20px;margin-top:20px}
.dap-finance-section h4{margin:0 0 14px;color:#153d2d;font-size:16px}
.dap-finance-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.dap-responsive-table{overflow-x:auto}
.dap-finance-table{width:100%;border-collapse:collapse;min-width:690px}
.dap-finance-table th,.dap-finance-table td{padding:12px;border-bottom:1px solid #e5ede5;text-align:right;font-size:12px;vertical-align:middle}
.dap-finance-table th{background:#f5f9f4;color:#53675b;font-weight:700}
.dap-pay-status{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;font-size:10px;font-weight:700;background:#edf1ed;color:#59675f}
.dap-pay-status.status-approved,.dap-pay-status.status-paid{background:#e3f5e8;color:#0b6a39}
.dap-pay-status.status-pending{background:#fff4cf;color:#87660d}
.dap-pay-status.status-rejected{background:#fde7e7;color:#9d2929}
.dap-pay-status.status-revision,.dap-pay-status.status-partial{background:#fff0df;color:#9a5711}
.dap-pay-status.status-unpaid{background:#edf1ed;color:#657168}
.dap-pay-status.status-waived{background:#e8e8ef;color:#5b5b72}
.dap-receipt-list{display:grid;gap:12px}
.dap-receipt-list article{border:1px solid #dfe9df;background:#fbfdf9;border-radius:15px;padding:15px}
.dap-receipt-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}
.dap-receipt-list p{font-size:12px;color:#4f6258;margin:5px 0}
.dap-receipt-list small{display:block;color:#7b8980;font-size:10px;line-height:1.9}
.dap-review-note{background:#f3f7f2;border-right:3px solid #8dc63f;border-radius:10px;padding:10px;margin:10px 0;font-size:11px;color:#40564a}
.dap-receipt-form-card label small{display:block;color:#78877e;font-size:10px;margin-top:5px}
.dap-finance-main-fields{margin-bottom:5px}
.dap-installments-editor{display:grid;gap:12px}
.dap-installment-row{display:grid;grid-template-columns:1.2fr .8fr .75fr .8fr 1fr;gap:10px;align-items:end;background:#f8fbf7;border:1px solid #dfe9df;border-radius:15px;padding:13px}
.dap-installment-row.is-new{background:#eff8eb;border-style:dashed}
.dap-installment-row label,.dap-receipt-review label{margin:0;font-size:10px}
.dap-installment-row input,.dap-installment-row select{margin-top:5px}
.dap-publisher-receipts{display:grid;gap:13px}
.dap-publisher-receipt{display:grid;grid-template-columns:.9fr 1.1fr;gap:16px;padding:16px;border:1px solid #dfe9df;border-radius:16px;background:#fbfdf9}
.dap-publisher-receipt.status-pending{border-color:#eadca9;background:#fffdf6}
.dap-publisher-receipt.status-rejected{border-color:#edcaca;background:#fffafa}
.dap-receipt-summary{display:flex;flex-direction:column;align-items:flex-start;gap:5px}
.dap-receipt-summary strong{font-size:17px;color:#075f38}
.dap-receipt-summary span{font-size:11px;color:#5c6c63}
.dap-receipt-review{display:grid;gap:10px}
.dap-receipt-review textarea{min-height:70px}
@media(max-width:1000px){.dap-finance-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.dap-finance-grid{grid-template-columns:1fr}.dap-installment-row{grid-template-columns:repeat(2,minmax(0,1fr))}.dap-publisher-receipt{grid-template-columns:1fr}}
@media(max-width:620px){.dap-finance-title-row{flex-direction:column}.dap-finance-cards{grid-template-columns:1fr}.dap-installment-row{grid-template-columns:1fr}.dap-finance-cards article strong{font-size:15px}}

/* Profile completion and private national card - v1.0.9 */
.dap-required{color:#b42318;font-weight:800}
.dap-profile-warning,.dap-profile-lock{border:1px solid #efcf86!important;background:#fff9e8!important;color:#6f5308}
.dap-profile-warning strong,.dap-profile-lock h3{color:#7c5b08}
.dap-profile-warning p,.dap-profile-lock p{margin:7px 0;color:#6f5d2c}
.dap-profile-complete{border:1px solid #bfe1c9!important;background:#edf8f0!important;color:#0b6338}
.dap-profile-complete p{margin:7px 0 0;color:#3f6b52}
.dap-national-card-box{display:grid;grid-template-columns:1.25fr .75fr;gap:18px;align-items:center;padding:18px;border:1px solid #dce9de;background:#f8fbf7;border-radius:16px;margin:18px 0}
.dap-national-card-box strong{display:block;color:#173e2d;margin-bottom:5px}
.dap-national-card-box p{font-size:11px;color:#65766c;line-height:2;margin:0 0 10px}
.dap-national-card-box label{margin:0}
.dap-customer-summary .dap-small-btn{margin-top:8px;align-self:flex-start}
@media(max-width:700px){.dap-national-card-box{grid-template-columns:1fr}}


/* v1.1.0 - professional author and publisher centers */
.dap-author-menu{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #dce8df;border-radius:18px;padding:10px;margin:0 0 22px;box-shadow:0 8px 28px rgba(5,104,57,.05)}
.dap-author-menu a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 14px;border-radius:12px;color:#35594a;font-size:12px;font-weight:700;text-decoration:none!important;transition:.2s}
.dap-author-menu a:hover,.dap-author-menu a.is-active{background:#056839;color:#fff!important}
.dap-author-menu .dap-author-menu__logout{margin-right:auto;background:#f4f6f3;color:#66786f}
.dap-author-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}
.dap-author-stats>div{background:#fff;border:1px solid #dce8df;border-radius:18px;padding:18px;box-shadow:0 8px 28px rgba(5,104,57,.04)}
.dap-author-stats span{display:block;color:#6b7c73;font-size:11px;margin-bottom:7px}
.dap-author-stats strong{display:block;color:#056839;font-size:21px;line-height:1.55}
.dap-center-list{display:grid;gap:15px}
.dap-center-item{display:grid;grid-template-columns:1fr auto;gap:18px;align-items:center}
.dap-center-item h3,.dap-center-card-head h3{margin:8px 0 5px;font-size:18px}
.dap-center-item p{margin:0;color:#60736a;font-size:12px}
.dap-center-item small{color:#839087;font-size:10px}
.dap-center-item>div:last-child{display:grid;justify-items:end;gap:10px}
.dap-center-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-bottom:15px}
.dap-files-center-card .dap-file-list{margin-top:8px}
.dap-finance-center-card .dap-summary-grid{margin-top:12px}
.dap-finance-summary-cards strong{font-size:17px}
.dap-publisher-stats{grid-template-columns:repeat(6,minmax(0,1fr))!important}
.dap-publisher-attention{display:grid;grid-template-columns:.8fr 1.2fr;gap:18px;align-items:center;border-right:4px solid #8dc63f!important}
.dap-publisher-attention strong{font-size:16px;color:#056839}
.dap-publisher-attention p{font-size:11px;color:#65766e;margin:5px 0 0}
.dap-attention-links{display:flex;gap:8px;flex-wrap:wrap}
.dap-attention-links a{display:inline-flex;padding:8px 12px;border:1px solid #d8e5d9;border-radius:999px;background:#f7faf5;color:#056839!important;font-size:10px;font-weight:700;text-decoration:none!important}
#dap-project-finance,#dap-project-files,#dap-project-messages,#dap-project-stages{scroll-margin-top:110px}
@media(max-width:900px){.dap-author-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.dap-publisher-stats{grid-template-columns:repeat(3,minmax(0,1fr))!important}.dap-publisher-attention{grid-template-columns:1fr}}
@media(max-width:600px){.dap-author-menu{display:grid;grid-template-columns:1fr 1fr}.dap-author-menu .dap-author-menu__logout{margin-right:0}.dap-author-stats{grid-template-columns:1fr}.dap-center-item{grid-template-columns:1fr}.dap-center-item>div:last-child{justify-items:start}.dap-center-card-head{flex-direction:column}.dap-publisher-stats{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* v1.1.1 - publisher staff, assignments and permission-aware dashboard */
.dap-publisher-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap;background:#fff;border:1px solid #dce8df;border-radius:18px;padding:10px;margin:0 0 22px;box-shadow:0 8px 28px rgba(5,104,57,.05)}
.dap-publisher-nav a{display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:0 15px;border-radius:12px;color:#35594a!important;font-size:12px!important;font-weight:700;text-decoration:none!important}
.dap-publisher-nav a:hover,.dap-publisher-nav a.is-active{background:#056839;color:#fff!important}
.dap-publisher-nav .dap-publisher-nav__logout{margin-right:auto;background:#f4f6f3;color:#66786f!important}
.dap-publisher-alert-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.dap-publisher-attention{display:flex;align-items:center;justify-content:space-between;gap:20px;border-color:#d5e7d8;background:#fbfefb}
.dap-publisher-attention p{margin:5px 0 0;color:#64766c;font-size:11px}
.dap-attention-links{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.dap-attention-links a{display:inline-flex;align-items:center;gap:6px;padding:7px 10px;border-radius:999px;background:#edf8f0;color:#056839!important;font-size:10px;font-weight:700}
.dap-attention-links b{display:inline-grid;place-items:center;min-width:20px;height:20px;border-radius:50%;background:#056839;color:#fff;font-size:9px}
.dap-alert-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#fff2cc;color:#775800;font-size:9px;font-weight:800}
.dap-table-subcode{display:block;color:#7c8b82;font-size:9px;margin-top:4px}
.dap-assignment-card{border-color:#cfe4d4;background:#fbfefb}
.dap-assignment-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dap-assignment-grid label{margin:0;font-size:10px;color:#4b6256}
.dap-assigned-person{display:flex;align-items:center;min-height:44px;margin-top:7px;padding:0 12px;border:1px solid #dce8df;border-radius:12px;background:#fff;color:#173e2d;font-weight:700}
.dap-workflow-row.is-readonly{opacity:.72;background:#f6f8f6}
.dap-workflow-row strong small{display:block;color:#7c8c83;font-size:8px;margin-top:3px;font-weight:500}
.dap-readonly-note{padding:12px 14px;border-radius:12px;background:#f2f6f2;border:1px solid #dce7dd;color:#607168;font-size:10px;line-height:1.9}
.dap-staff-management-grid{align-items:start}
.dap-staff-create-form small{display:block;color:#7b8b82;font-size:9px;margin-top:5px}
.dap-role-guide{display:grid;gap:9px}
.dap-role-guide p{margin:0;padding:10px 12px;border-radius:12px;background:#f7faf6;color:#53685d;font-size:10px;line-height:1.9}
.dap-role-guide strong{color:#075f38}
.dap-staff-row-form{display:grid;grid-template-columns:minmax(190px,1fr) auto auto;gap:10px;align-items:center}
.dap-staff-row-form select{margin:0!important}
.dap-inline-check{display:flex!important;align-items:center;gap:6px;margin:0!important;white-space:nowrap}
.dap-inline-check input{width:auto!important;margin:0!important}
/* Keep logout labels visible and remove the old empty green square appearance. */
a.dap-btn-secondary,a.dap-author-menu__logout,a.dap-publisher-nav__logout{font-size:12px!important;line-height:1!important;min-width:58px;color:#056839!important;background:#f4f7f3!important;border:1px solid #d8e5da!important}
a.dap-btn-secondary:hover,a.dap-author-menu__logout:hover,a.dap-publisher-nav__logout:hover{background:#eaf5eb!important;color:#034d2a!important}
@media(max-width:1000px){.dap-assignment-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dap-publisher-alert-grid{grid-template-columns:1fr}}
@media(max-width:760px){.dap-publisher-nav a{flex:1}.dap-publisher-nav .dap-publisher-nav__logout{margin-right:0}.dap-publisher-attention{align-items:flex-start;flex-direction:column}.dap-attention-links{justify-content:flex-start}.dap-assignment-grid{grid-template-columns:1fr}.dap-staff-row-form{grid-template-columns:1fr}.dap-staff-table td{min-width:230px}}

/* v1.1.2: least-privilege privacy notice */
.dap-privacy-note{display:block;padding:10px 12px;border-radius:10px;background:#f4f7f4;color:#617069;font-size:11px;line-height:1.9}

/* v1.1.3 - notification center, badges and production dashboard polish */
.dap-nav-badge{display:inline-grid;place-items:center;min-width:21px;height:21px;padding:0 6px;margin-right:6px;border-radius:999px;background:#8dc63f;color:#123c25;font-size:9px;font-weight:900;line-height:1}
.dap-author-menu a.is-active .dap-nav-badge,.dap-publisher-nav a.is-active .dap-nav-badge,.dap-author-menu a:hover .dap-nav-badge,.dap-publisher-nav a:hover .dap-nav-badge{background:#fff;color:#056839}
.dap-author-stats{grid-template-columns:repeat(auto-fit,minmax(175px,1fr))}
.dap-publisher-stats{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important}
.dap-dashboard-notifications{margin:16px 0;border-right:4px solid #8dc63f!important}
.dap-notification-list{display:grid;gap:11px}
.dap-notification-list.is-compact{gap:8px}
.dap-notification-item{display:grid;grid-template-columns:14px 1fr auto;gap:12px;align-items:center;padding:15px;border:1px solid #dfe9df;border-radius:16px;background:#fbfdf9;transition:.2s}
.dap-notification-item:hover{border-color:#bad6c1;box-shadow:0 8px 22px rgba(5,104,57,.07)}
.dap-notification-item.is-unread{background:#eef8ef;border-color:#c9e2ce}
.dap-notification-dot{width:10px;height:10px;border-radius:50%;background:#c8d4cb}
.dap-notification-item.is-unread .dap-notification-dot{background:#8dc63f;box-shadow:0 0 0 4px rgba(141,198,63,.18)}
.dap-notification-content{min-width:0}
.dap-notification-content>strong{display:block;color:#173e2d;font-size:13px;margin:4px 0}
.dap-notification-content p{margin:3px 0 0;color:#5f7167;font-size:11px;line-height:1.9}
.dap-notification-meta{display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#7b8b82;font-size:9px}
.dap-notification-meta span{display:inline-flex;padding:3px 8px;border-radius:999px;background:#f0f5f0;color:#056839;font-weight:700}
.dap-notification-meta time{direction:ltr;unicode-bidi:embed}
.dap-notification-list.is-compact .dap-notification-item{padding:11px 13px;border-radius:13px}
.dap-notification-list.is-compact .dap-notification-content>strong{font-size:11px}
.dap-notification-list.is-compact .dap-notification-content p{font-size:10px}
.dap-notification-mark-all{margin:0}
.dap-empty-state{text-align:center;padding:35px!important}
.dap-empty-state strong{display:block;color:#056839;font-size:17px}
.dap-empty-state p{margin:8px 0 0;color:#6b7c73;font-size:11px}
@media(max-width:650px){.dap-notification-item{grid-template-columns:12px 1fr}.dap-notification-item>.dap-small-btn{grid-column:2;justify-self:start}.dap-dashboard-notifications .dap-finance-title-row{align-items:flex-start}}


/* قراردادهای نویسندگان */
.dap-contract-table-wrap{overflow-x:auto}.dap-contract-table{width:100%;border-collapse:collapse}.dap-contract-table th,.dap-contract-table td{padding:12px;border-bottom:1px solid #e3ebe3;text-align:right;vertical-align:middle}.dap-contract-table small{display:block;color:#6b786f}.dap-contract-status{display:inline-flex;align-items:center;padding:5px 10px;border-radius:999px;background:#eef3ee;color:#315445;font-size:12px;font-weight:700}.dap-contract-status.status-sent{background:#fff5d8;color:#8a6200}.dap-contract-status.status-accepted{background:#ddf5e6;color:#056839}.dap-contract-status.status-revision_requested{background:#ffe3df;color:#a13526}.dap-contract-status.status-cancelled{background:#ececec;color:#666}.dap-contract-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.dap-contract-fields label{margin:0}.dap-contract-fields .is-wide{grid-column:span 2}.dap-contract-content{width:100%;min-height:720px;direction:rtl;text-align:right;line-height:1.9}.dap-contract-notice{background:#fff8df;border:1px solid #eedb91;border-radius:14px;padding:14px 17px;margin:15px 0;color:#765c00}.dap-contract-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.dap-contract-revision{border-color:#efb4aa;background:#fff8f6}.dap-contract-list-card{display:flex;align-items:center;justify-content:space-between;gap:20px;color:inherit}.dap-contract-list-card h3{margin:8px 0 2px}.dap-contract-document{max-width:900px;margin-inline:auto;background:#fff;padding:36px 42px}.dap-contract-document h3{color:#056839;margin:20px 0 7px}.dap-contract-document p{margin:0 0 7px;text-align:justify;line-height:2.05}.dap-contract-space{height:8px}.dap-contract-signatures{display:grid;grid-template-columns:1fr 1fr;gap:40px;margin-top:35px;text-align:center}.dap-contract-signatures>div{border-top:1px dashed #9ba79f;padding-top:12px;min-height:80px}.dap-contract-signatures span{display:block;color:#69776f;margin-top:5px}.dap-contract-view-actions{display:flex;justify-content:center;margin:14px 0}.dap-contract-accepted{border-color:#a9d5b9;background:#f2fbf5}.dap-contract-author-form{max-width:900px;margin-inline:auto}.dap-contract-author-form textarea{width:100%}@media(max-width:900px){.dap-contract-fields{grid-template-columns:1fr 1fr}.dap-contract-fields .is-wide{grid-column:1/-1}}@media(max-width:620px){.dap-contract-fields{grid-template-columns:1fr}.dap-contract-fields .is-wide{grid-column:auto}.dap-contract-list-card{align-items:flex-start;flex-direction:column}.dap-contract-document{padding:22px 18px}.dap-contract-signatures{grid-template-columns:1fr}}

/* Contracts v1.3.0 */
.dap-contract-rights-state{border-inline-start:4px solid #8dc63f}
.dap-rights-on{color:#056839}.dap-rights-off{color:#9b2c2c}
.dap-signature-preview{display:block;max-width:220px;max-height:120px;object-fit:contain;background:#fff;border:1px solid #dce7df;border-radius:12px;padding:8px;margin:10px 0}
.dap-check-inline{display:flex!important;align-items:center;gap:8px;margin-top:10px}.dap-check-inline input{width:auto!important}
.dap-contract-signatures img{display:block;max-width:180px;max-height:90px;object-fit:contain;margin:8px auto}
.dap-contract-otp-box{max-width:900px;margin-inline:auto;border-color:#bdd9c5;background:#f7fcf8}
.dap-contract-otp-box form{margin-top:12px}
.dap-contract-author-form input[type=file]{padding:10px;background:#fff;border:1px dashed #b8cdbd;border-radius:12px}
