/* Pages Prestations du devis, Outils, Accès rapide, Recherche de projets — habillage v2 (body.embed) */

/* cartes d'introduction */
body.embed .dv-head{padding:18px 20px}
body.embed .dv-title{margin:0 0 4px;font-size:17px}
body.embed .dv-lead{margin:0 0 14px;font-size:14px;line-height:1.55;max-width:70ch}
body.embed .dv-head .filters-row{align-items:center}
body.embed .dv-head .filters-row .input:not(.select-sm){flex:1;min-width:240px}
body.embed .dv-head .select-sm{min-width:240px}
body.embed .dv-depth{display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
body.embed .dv-search .input{min-height:44px;font-size:16px}

/* messages d'avancement : en cours (spinner), réussi, échec */
body.embed .dv-status{display:flex;align-items:center;gap:10px;margin:14px 0 0;padding:10px 14px;border-radius:var(--radius-sm);font-size:14px;font-weight:500;background:var(--chip);color:var(--sub)}
body.embed .dv-status[hidden]{display:none}
body.embed .dv-status::before{content:"";flex:none;width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-top-color:transparent;animation:dv-spin .8s linear infinite}
body.embed .dv-status[data-state="ok"]{background:var(--ok-soft);color:var(--ok)}
body.embed .dv-status[data-state="ok"]::before{animation:none;border:0;content:"\2713";width:auto;height:auto;font-weight:700}
body.embed .dv-status[data-state="err"]{background:var(--danger-soft);color:var(--danger)}
body.embed .dv-status[data-state="err"]::before{animation:none;border:0;content:"!";width:18px;height:18px;display:grid;place-items:center;background:var(--danger);color:var(--card);font-weight:700;font-size:12px}
body.embed .dv-status[data-state="busy"]{background:var(--accent-soft);color:var(--accent)}
@keyframes dv-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){body.embed .dv-status::before{animation:none}}

/* Outils : cartes d'action */
body.embed .dv-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(340px,1fr));gap:16px;align-items:stretch}
body.embed .dv-action{display:flex;gap:16px;align-items:flex-start;margin:0;transition:border-color .15s,box-shadow .15s}
body.embed .dv-action:hover{border-color:var(--accent);box-shadow:0 4px 14px rgba(20,30,40,.08)}
body.embed .dv-action-ic{flex:none;width:48px;height:48px;border-radius:12px;background:var(--accent-soft);display:grid;place-items:center;font-size:24px}
body.embed .dv-action-body{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
body.embed .dv-action-body h3{margin:0 0 6px;font-size:17px}
body.embed .dv-action-body p{margin:0}
body.embed .dv-list{margin:10px 0 16px;padding-left:18px;font-size:13.5px;display:flex;flex-direction:column;gap:3px}
body.embed .dv-action-body .btn{margin-top:auto}
body.embed .dv-action-body .dv-status{align-self:stretch}

/* Prestations */
body.embed #page-prestations .table input.input{min-height:34px;padding:0 10px;font-size:13.5px}
body.embed #prest-lines-table td:first-child{font-weight:500;color:var(--text)}
body.embed #prest-lines-table .prest-designation{min-width:220px}
body.embed #prest-lines-table .prest-temps,body.embed #prest-lines-table .prest-taux{width:84px}
body.embed .prest-sources-row td{background:var(--chip);padding:6px 14px}
body.embed .prest-sources-row:hover td{background:var(--chip)}
body.embed .prest-sources-row .cart-item{background:var(--card);border:1px solid var(--border);border-radius:var(--radius-sm)}
body.embed #page-prestations .cart-list{max-height:none}
body.embed #page-prestations .cart-item{display:flex;align-items:center;gap:10px}
body.embed .dv-insert{display:flex;flex-direction:column;gap:12px;background:var(--accent-soft);border-color:transparent}
body.embed .dv-insert #prest-summary{margin:0;font-weight:500;color:var(--text)}
body.embed .dv-insert #prest-summary:empty{display:none}
body.embed .dv-insert .btn.full{width:100%;min-height:46px;font-size:15px}
body.embed .dv-hint{margin:0;display:flex;gap:8px;align-items:baseline}
body.embed .dv-hint-ic{flex:none}

/* Accès rapide et Projets : cartes-dossiers */
body.embed .raccourcis-grid{grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:14px}
body.embed .raccourci-card{position:relative;padding:16px;gap:14px;min-height:76px;background:var(--card);border-color:var(--border);box-shadow:none;transition:border-color .15s,box-shadow .15s,transform .15s}
body.embed .raccourci-card:hover{border-color:var(--accent);box-shadow:0 4px 14px rgba(20,30,40,.08)}
body.embed .raccourci-card:active{transform:translateY(1px)}
body.embed .raccourci-icon{width:44px;height:44px;border-radius:12px;background:var(--accent-soft);display:grid;place-items:center;font-size:22px}
body.embed .raccourci-nom{display:block;font-size:15px;color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.embed .raccourci-chemin{display:block;font-size:12.5px;margin-top:2px}
body.embed .raccourci-edit{display:inline-grid;place-items:center;opacity:.6}
body.embed .raccourci-edit:hover{opacity:1;border-color:var(--accent);color:var(--accent)}
body.embed .raccourcis-empty{grid-column:1/-1;margin:0;padding:36px 20px;text-align:center;border:1px dashed var(--line-strong);border-radius:var(--radius);color:var(--sub)}
body.embed .raccourcis-racines{gap:8px;margin-top:12px}
body.embed .racine-chip{padding:5px 6px 5px 14px;font-size:12.5px;border:1px solid var(--border)}
body.embed .racine-chip button{width:24px;height:24px;font-size:14px}

/* fenêtre d'ajout de raccourci */
body.embed #raccourci-modal .modal{width:520px;max-width:92vw}
body.embed #raccourci-modal .form-grid{grid-template-columns:1fr;gap:14px}
body.embed #raccourci-modal label{display:flex;flex-direction:column;gap:6px;font-weight:500;color:var(--text)}
body.embed #raccourci-modal h3{font-size:19px;margin:0 0 14px}
body.embed #raccourci-modal .btn[hidden]{display:none}
