/* Homepage only: shared spacing and typography; consultation status fills stay intact. */
aside>.user-box{margin-top:0;margin-bottom:14px;flex-shrink:0}
#chat-section,#chat-section-toggle{display:none!important}
#assistant-switcher{grid-template-columns:repeat(2,minmax(0,1fr))!important}
#dash-deschise,#dash-leaduri,#dash-alerts{margin:0 0 24px}
#dash-deschise>div,#dash-leaduri,#dash-alerts>section{
  background:#fff!important;border:1px solid #e7edf3!important;border-radius:16px!important;
  padding:20px!important;box-shadow:0 3px 14px rgba(15,23,42,.035);margin:0!important;
}
#dash-leaduri:empty,#dash-deschise:empty,#dash-alerts:empty{display:none}
#dash-leaduri{margin-bottom:24px!important}
#dash-deschise>div>div:first-child,#dash-alerts>section>header{
  display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px!important;
}
#dash-deschise>div>div:first-child>span:first-child,#dash-leaduri>.section-title,#dash-alerts>section>header h3{
  font-size:18px!important;font-weight:650!important;line-height:1.4!important;
  color:var(--ink)!important;text-transform:none!important;letter-spacing:normal!important;
}
#dash-leaduri>.section-title{display:flex;align-items:center;gap:10px;margin:0 0 16px}
#dash-deschise>div>div:first-child>span:not(:first-child),#dash-leaduri .dl-badge{
  border-radius:99px!important;padding:3px 9px!important;font-size:12px!important;
  line-height:1.4;font-weight:650!important;
}
#dash-leaduri .dl-badge{background:#e6f7f5;color:#0f766e;margin:0}
#dash-deschise .cd-rand{border-radius:12px!important;border-left-width:1px!important;margin:0 0 8px!important}
#dash-deschise .cd-rand:last-child{margin-bottom:0!important}
#dash-deschise .cd-cap{display:grid!important;grid-template-columns:10px minmax(0,1fr) minmax(150px,230px) 105px 44px;min-height:52px;padding:8px 14px!important;gap:12px!important}
#dash-deschise .cd-created{display:block;margin-top:2px;font-size:11px;font-weight:400;color:var(--muted);line-height:1.3}
#dash-deschise .cd-cap>div{font-size:14px!important;font-weight:650!important;line-height:1.4}
#dash-deschise .cd-cap>span{font-size:12px;line-height:1.4}
#dash-deschise .cd-doctor{font-size:12px;color:var(--muted);min-width:0;max-width:100%;white-space:nowrap}
#dash-deschise .cd-doctor>img,#dash-deschise .cd-doctor>span:first-child:not(:last-child){flex-shrink:0}
#dash-deschise .cd-doctor>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#dash-leaduri .dl-lista{display:grid;gap:8px;border-radius:0;box-shadow:none;overflow:visible;margin:0}
#dash-leaduri .dl-item{
  min-height:78px;padding:14px 16px;border:1px solid #e2e8f0;border-radius:12px;
  background:#fff;gap:12px;
}
#dash-leaduri .dl-item{background:linear-gradient(90deg,#f0faf5 0%,#f8fcfa 38%,#fff 76%)}
#dash-leaduri .dl-item.dl-vechi{background:linear-gradient(90deg,#fff1f2 0%,#fff8f8 38%,#fff 76%)}
#dash-leaduri .dl-item:hover{background:linear-gradient(90deg,#e8f7ee 0%,#f3fbf6 38%,#fff 76%)}
#dash-leaduri .dl-item.dl-vechi:hover{background:linear-gradient(90deg,#ffe9ec 0%,#fff4f5 38%,#fff 76%)}
#dash-leaduri .dl-main{gap:3px}
#dash-leaduri .dl-main strong{font-size:14px;font-weight:650;line-height:1.4;color:var(--ink)}
#dash-leaduri .dl-meta,#dash-leaduri .dl-data{font-size:12px;line-height:1.4;color:var(--muted);font-weight:400}
#dash-leaduri .dl-form-name{font-size:12px;font-weight:600;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
#dash-leaduri .dl-meta{flex-direction:column;align-items:flex-start;gap:3px}
#dash-leaduri .dl-request-code{font-size:11px;font-weight:500;line-height:1.4}
#dash-leaduri .dl-age{font-size:12px;font-weight:700;line-height:1.4;color:var(--muted)}
#dash-leaduri .dl-age.dl-age-late{color:var(--red)}
#dash-leaduri .dl-request-options{display:flex;flex-direction:column;gap:2px;font-size:12px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
#dash-leaduri .dl-request-options b{font-weight:600}
#dash-leaduri .dl-request-options:not(:has(span)){display:none}
#dash-leaduri .dl-alerta{font-size:12px;line-height:1.4;font-weight:500;color:var(--red)}
#dash-leaduri .dl-right{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0;margin-left:auto}
#dash-leaduri .dl-phone{font-size:13px;font-weight:700;line-height:1.4;color:var(--ink);white-space:nowrap}
#dash-leaduri .dl-phone-button{font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;background:#f0fdfa;border:1px solid #ccebe5;border-radius:8px;padding:6px 9px;color:#0f766e;cursor:pointer;min-height:34px}
#dash-leaduri .dl-phone-button:hover{background:#ccfbf1}
#dash-leaduri .dl-call-receiver{display:inline-block;color:#dc2626;font:700 17px/1 'Segoe UI Symbol',sans-serif;vertical-align:-1px;margin-right:3px}
#dash-leaduri .dl-phone-button:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
.call-preview h2{font-size:20px;margin:0}
.call-preview-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}
.call-preview-head p,.call-preview-info{font-size:13px;line-height:1.6;color:var(--muted);margin:6px 0 16px}
.call-preview-number{font-size:24px;font-weight:700;text-align:center;background:#f0fdfa;color:#0f766e;border-radius:12px;padding:18px;margin:4px 0 22px}
.call-preview fieldset{border:0;margin:0;padding:0;display:grid;gap:10px}
.call-preview legend{font-size:13px;font-weight:600;margin-bottom:10px}
.call-extension{display:flex;align-items:center;gap:12px;border:1px solid #e2e8f0;border-radius:12px;padding:14px;cursor:pointer}
.call-extension:has(input:checked){background:#f0fdfa;border-color:var(--teal)}
.call-extension.call-unavailable{background:#f8fafc;border-color:#e2e8f0;cursor:not-allowed}
.call-extension.call-unavailable small{color:#b45309}
.call-extension input{accent-color:var(--teal);width:17px;height:17px}
.call-extension b{font-size:14px;display:block}.call-extension small{font-size:12px;color:var(--muted);display:block;margin-top:3px}
.call-preview-info{margin:16px 0 10px}.call-preview-notice{font-size:12px;color:#92400e;background:#fffbeb;border-radius:8px;padding:10px;line-height:1.5}
.call-preview-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px;flex-wrap:wrap}
#dash-leaduri .dl-mai{background:transparent;padding:8px 0 0;text-align:left;font-size:12px}
#dash-leaduri .dl-mai{border:0;font-family:inherit}
#dash-leaduri .dl-item[hidden]{display:none!important}
#dash-callbacks{width:100%;margin:0 0 24px}
#dash-callbacks[hidden]{display:none!important}
#dash-callbacks .callback-queue{width:100%;display:grid;gap:8px;background:#fff;border:1px solid #e7edf3;border-radius:16px;padding:20px;margin:0;box-shadow:0 3px 14px rgba(15,23,42,.035)}
#dash-callbacks .callback-queue>h3{font-size:18px;font-weight:650;line-height:1.4;margin:0 0 8px!important;color:var(--ink)}
#dash-callbacks .callback-row{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:52px;padding:8px 14px;border:1px solid #e2e8f0;border-radius:12px;background:#fff;gap:12px}
#dash-callbacks .callback-row{background:linear-gradient(90deg,#fff9e9 0%,#fffdf5 38%,#fff 76%);cursor:pointer}
#dash-callbacks .callback-row:hover{background:linear-gradient(90deg,#fff4d6 0%,#fffbee 38%,#fff 76%)}
#dash-callbacks .callback-row:focus-visible{outline:2px solid var(--teal);outline-offset:2px}
#dash-callbacks .callback-row[hidden]{display:none!important}
#dash-callbacks .callback-more{border:0;background:transparent;padding:8px 0 0;text-align:left;font:600 12px 'Segoe UI',sans-serif;color:var(--teal);cursor:pointer}
#dash-callbacks .callback-phone{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
#dash-callbacks .dl-phone{font-size:13px;font-weight:700;white-space:nowrap;color:var(--ink)}
#dash-callbacks .dl-phone-button{font-family:inherit;font-size:12px;font-weight:600;line-height:1.4;background:#f0fdfa;border:1px solid #ccebe5;border-radius:8px;padding:6px 9px;color:#0f766e;cursor:pointer;min-height:34px}
#dash-callbacks .dl-call-receiver{color:#dc2626;font-size:17px;margin-right:3px}
#dash-callbacks .callback-row strong{font-size:14px;font-weight:650;line-height:1.4}
#dash-callbacks .callback-meta{font-size:12px;line-height:1.4;margin-top:2px;color:var(--muted)}
#dash-callbacks .callback-row>div:first-child{min-width:0;flex:1}
#dash-callbacks .callback-actions{display:flex;align-items:center;align-self:center;gap:6px;flex-shrink:0}
#dash-callbacks .callback-actions .btn{min-height:32px;padding:5px 10px;font-size:12px;line-height:1.4}
@media(max-width:880px){#dash-callbacks .callback-queue{padding:16px}}
@media(max-width:560px){#dash-callbacks .callback-row{gap:6px}#dash-callbacks .callback-actions{align-self:flex-end}}
#dash-alerts [data-personal]>section,#dash-alerts [data-equipment]>section{margin:0!important;padding:0!important;border:0!important;box-shadow:none!important}
#dash-alerts [data-equipment] article,#dash-alerts [data-personal] div:has(>a.btn){
  background:#fff!important;border:1px solid #e2e8f0;border-radius:12px!important;padding:14px 16px!important;min-height:78px;
}
#dash-alerts [data-equipment] article strong:first-child{font-size:14px;font-weight:650;line-height:1.4;color:var(--ink)}
#dash-alerts [data-equipment] article strong:last-child:not(:first-child){font-weight:500!important;line-height:1.4}
#dash-alerts .btn{border:1px solid #e2e8f0;border-radius:9px;background:#f8fafc;font-size:12px;font-weight:600;min-height:34px;padding:7px 12px;text-decoration:none}
#dash-alerts p{font-size:12px;line-height:1.5}
@media(max-width:880px){
  #dash-deschise>div,#dash-leaduri,#dash-alerts>section{padding:16px!important}
  #dash-deschise .cd-cap{grid-template-columns:10px minmax(0,1fr) 95px 38px;gap:6px 8px!important}
  #dash-deschise .cd-cap>.cd-sageata{grid-column:1;grid-row:1 / 3}
  #dash-deschise .cd-cap>div{grid-column:2;grid-row:1}
  #dash-deschise .cd-cap>.cd-doctor{grid-column:2;grid-row:2}
  #dash-deschise .cd-cap>span:nth-last-child(2){grid-column:3;grid-row:1 / 3}
  #dash-deschise .cd-cap>span:last-child{grid-column:4;grid-row:1 / 3;min-width:0!important}
}
@media(max-width:560px){
  #dash-leaduri .dl-item{align-items:flex-start;flex-wrap:wrap}
  #dash-leaduri .dl-main{flex-basis:100%}
  #dash-leaduri .dl-data{font-size:11px}
}

#dash-leaduri>.section-title::before{content: "👥";font-size:20px}
/* Compact phone cards: names on the left, operational details on the right. */
@media(max-width:880px){
 #dash-deschise,#dash-leaduri,#dash-callbacks{margin-bottom:16px}
 #dash-deschise>div,#dash-leaduri,#dash-callbacks .callback-queue{padding:12px!important;border-radius:8px!important}
 #dash-deschise>div>div:first-child,#dash-leaduri>.section-title{margin-bottom:10px!important;gap:7px}
 #dash-deschise>div>div:first-child>span:first-child,#dash-leaduri>.section-title,#dash-callbacks .callback-queue>h3{font-size:16px!important}
 #dash-deschise .cd-rand{border-radius:6px!important;margin-bottom:6px!important}
 #dash-deschise .cd-cap{grid-template-columns:7px minmax(0,1fr) minmax(75px,28%) 30px;gap:3px 6px!important;min-height:0;padding:8px 9px!important}
 #dash-deschise .cd-cap>.cd-sageata{grid-column:1;grid-row:1/3}
 #dash-deschise .cd-cap>div{grid-column:2;grid-row:1/3;font-size:13px!important;line-height:1.25}
 #dash-deschise .cd-created{font-size:10px;line-height:1.25;margin-top:3px}
 #dash-deschise .cd-cap>.cd-doctor{grid-column:3/5;grid-row:1;justify-self:end;align-self:end;justify-content:flex-end;gap:4px!important;font-size:11px;line-height:1.2;text-align:right;white-space:normal}
 #dash-deschise .cd-doctor>img{width:18px!important;height:18px!important}
 #dash-deschise .cd-doctor>span:first-child:not(:last-child){width:18px!important;height:18px!important;font-size:9px!important}
 #dash-deschise .cd-doctor>span:last-child{white-space:normal;line-height:1.2}
 #dash-deschise .cd-cap>span:nth-last-child(2){grid-column:3;grid-row:2;align-self:start;text-align:right;font-size:10px;line-height:1.3;white-space:nowrap}
 #dash-deschise .cd-cap>span:last-child{grid-column:4;grid-row:2;align-self:start;font-size:10px;line-height:1.3;min-width:0!important}
 #dash-leaduri .dl-lista{gap:6px}
 #dash-leaduri .dl-item{display:grid;grid-template-columns:minmax(0,1fr) 108px;align-items:start;gap:8px;min-height:0;padding:9px 10px;border-radius:6px}
 #dash-leaduri .dl-main{flex-basis:auto;min-width:0;gap:2px}
 #dash-leaduri .dl-main strong{font-size:13px;line-height:1.25}
 #dash-leaduri .dl-form-name{font-size:11px;line-height:1.25;font-weight:500}
 #dash-leaduri .dl-meta{gap:2px}
 #dash-leaduri .dl-request-options{font-size:11px;line-height:1.25;gap:1px}
 #dash-leaduri .dl-request-code{font-size:10px;line-height:1.2;overflow-wrap:anywhere}
 #dash-leaduri .dl-code-after-options{font-size:10px;line-height:1.2}
 #dash-leaduri .dl-right{margin:0;gap:2px;min-width:0;width:108px;align-items:flex-end}
 #dash-leaduri .dl-phone{font-size:12px;line-height:1.3}
 #dash-leaduri .dl-data{font-size:10px;line-height:1.3;text-align:right}
 #dash-leaduri .dl-age{font-size:11px;line-height:1.3}
 #dash-leaduri .dl-phone-button{font-size:10px;padding:4px 5px;min-height:28px;max-width:100%;white-space:normal}
 #dash-leaduri .dl-call-receiver{font-size:13px;margin-right:2px}
 #dash-leaduri .dl-mai{padding-top:5px}
 #dash-callbacks .callback-queue{gap:6px}
 #dash-callbacks .callback-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;min-height:0;padding:9px 10px;border-radius:6px}
 #dash-callbacks .callback-row strong{font-size:13px;line-height:1.25}
 #dash-callbacks .callback-meta{font-size:11px;line-height:1.25}
 #dash-callbacks .callback-actions{align-self:center}
 #dash-callbacks .dl-phone{font-size:12px}
}
