/* Reception, longitudinal records and actionable follow-up. */
.queue-empty{color:#3f5b68!important}
.reception-entry{display:flex;align-items:center;gap:15px;padding:18px 22px;margin-bottom:20px;background:linear-gradient(115deg,#c9e7df,#d7e6f1);border:1px solid #aecfc8;border-radius:16px;color:#164853;box-shadow:0 5px 18px #173f5010}
.reception-entry>span{display:grid;place-items:center;width:45px;height:45px;border-radius:12px;background:#eff8f4;border:1px solid #bdd7cd;flex-shrink:0}.reception-entry svg{width:23px;height:23px}.reception-entry>svg{margin-right:auto;width:18px}.reception-entry strong{display:block;font-size:17px}.reception-entry small{display:block;font-size:14px;color:#3e606b;margin-top:4px}
.reception-filters{display:flex;align-items:end;gap:16px;margin-bottom:22px;flex-wrap:wrap}.reception-filters label{font-size:14px;flex:1;min-width:150px;margin:0}.reception-filters input,.reception-filters select{width:100%;font-size:16px;min-height:44px;background:#edf6f4;border:1px solid #b8d2ce;border-radius:9px;margin-top:7px;padding:8px 10px}.reception-count{font-size:13px;color:#3a5d6b;flex-basis:100%;border-top:1px solid #cadae0;padding-top:12px}
.reception-board{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:13px;align-items:start;margin-bottom:24px}.queue-column{border:1px solid #b9d0d8;border-radius:16px;background:#dce8ee;min-width:0;overflow:hidden}.queue-column>header{padding:14px 12px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #bed2da;background:#d1e2e9}.queue-column h3{font-size:16px;margin:0}.queue-column>header>b{font:600 14px Manrope;margin-right:auto;border-radius:7px;background:#eff6f7;padding:3px 7px;color:#234e60}.queue-symbol{height:29px;width:29px;display:grid;place-items:center;background:#edf6f7;border-radius:9px;color:#306c7c;flex-shrink:0}.queue-symbol svg{width:17px;height:17px}.queue-arrived{background:#d9eae2;border-color:#bad1c4}.queue-arrived>header{background:#c9e0d3;border-color:#adcaba}.queue-waiting{background:#e1e3ef;border-color:#c5c9dd}.queue-waiting>header{background:#d2d7e8;border-color:#bec5de}.queue-treatment{background:#cce4df;border-color:#a8cbc2}.queue-treatment>header{background:#194d5d;border-color:#286675}.queue-treatment h3{color:#fff}.queue-done{background:#dce9e3;border-color:#bfd3c7}.queue-done>header{background:#d1e3d9;border-color:#b8d1c3}.queue-cards{padding:10px;display:grid;gap:12px}.queue-card{background:#f1f7f7;border:1px solid #bed3d8;border-radius:12px;padding:13px 11px;box-shadow:0 4px 10px #163f4c08;min-width:0}.queue-card-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:9px}.queue-card time{font:600 16px Manrope;color:#174c61}.queue-open{height:28px;width:28px;background:#deebe9;border:1px solid #bdd5ce;border-radius:7px;color:#286257}.queue-card .patient-name-link{font-size:16px;line-height:1.8;display:flex;align-items:center;gap:4px}.queue-card .patient-name-link svg{width:13px;height:13px;flex-shrink:0}.queue-card p{font-size:14px;color:#3c5c6a;line-height:1.8;margin:8px 0}.queue-doctor,.queue-plan{display:flex;align-items:center;gap:5px;font-size:12px;color:#365e68;line-height:1.8;margin:6px 0}.queue-doctor svg,.queue-plan svg{width:14px;height:14px;flex-shrink:0}.queue-timing{font-size:13px;color:#3a5c69;background:#dfecea;border:1px solid #c8ddda;border-radius:7px;padding:7px;margin-top:12px}.queue-actions{display:grid;gap:7px;margin-top:12px}.queue-actions button,.queue-actions a{font-size:13px;line-height:1.7;min-height:38px;background:#d0e5dd;border:1px solid #afd0c2;border-radius:8px;color:#174f43;padding:7px;text-align:center;display:flex;align-items:center;justify-content:center;gap:5px}.queue-actions svg{width:15px;height:15px}.queue-actions button:hover{background:#bcdacf}.queue-empty{min-height:150px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:14px;color:#4d6873;font-size:13px;line-height:1.8}.queue-empty svg{width:30px;height:30px;padding:8px;box-sizing:content-box;background:#edf5f2;border-radius:14px}
.operation-hint{font-size:14px;color:#3d5f70;background:#e0edf0;border:1px solid #c1d9df;padding:13px 15px;border-radius:10px;line-height:1.85}.negative-money{color:#854153!important}
.patient-summary{position:sticky;top:12px;z-index:20;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:1px;border:1px solid #b6ccd3;background:#bdcfd5;border-radius:14px;overflow:hidden;margin:0 0 22px;box-shadow:0 8px 22px #163c5018}.patient-summary>div{display:flex;align-items:center;gap:10px;background:#dcebea;padding:15px;min-width:0}.patient-summary>div:nth-child(2){background:#d9e6ee}.patient-summary>div:nth-child(3){background:#e0e6ef}.patient-summary>.summary-allergy{background:#efe1e5}.patient-summary>.summary-due{background:#184859;color:#fff}.patient-summary svg{width:22px;height:22px;flex-shrink:0}.patient-summary>div>span{font-size:12px;display:block;line-height:1.65;min-width:0}.patient-summary strong{display:block;font-size:15px;margin-top:6px;line-height:1.7;overflow-wrap:anywhere}.summary-due small{color:#d7ede9}.summary-allergy strong{color:#6e3d4e}
.timeline-panel{margin-top:20px}.timeline-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:28px}.timeline-filters button{padding:8px 14px;border-radius:9px;border:1px solid #c2d7de;background:#e1edf0;color:#325c6e;font-size:14px;min-height:38px}.timeline-filters button.active{background:#1b4b5e;color:#fff;border-color:#1b4b5e}.patient-timeline{position:relative}.patient-timeline:before{content:'';position:absolute;right:21px;top:15px;bottom:25px;width:2px;background:#b9d2d8}.timeline-event{position:relative;display:grid;grid-template-columns:44px minmax(0,1fr);gap:15px;margin-bottom:20px}.timeline-icon{display:grid;place-items:center;width:44px;height:44px;border-radius:13px;background:#c9e5dc;color:#266456;border:3px solid #eff6f5;z-index:1}.timeline-icon svg{width:21px;height:21px}.timeline-event>div{padding:17px 20px;border:1px solid #bdd6cf;background:#e0eee8;border-radius:13px;min-width:0}.timeline-event header{display:flex;justify-content:space-between;gap:12px;align-items:center;font-size:12px;color:#405e6b;flex-wrap:wrap}.timeline-event h3{font-size:17px;margin:9px 0;color:#183e51;line-height:1.7}.timeline-event p{font-size:14px;color:#3b5c68;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0 10px}.timeline-event.event-visits>div{background:#e0eaf2;border-color:#c1d3e0}.timeline-event.event-files>div{background:#e8e6f2;border-color:#d0cae0}.timeline-event.event-payments>div{background:#d7eae1;border-color:#b8d2c3}.timeline-event footer button{background:none;color:#09695c;font-size:14px;padding:7px 0}.timeline-amount{font-size:19px;color:#215e50;display:block;margin:9px 0}.timeline-included{font-size:13px;line-height:1.8;color:#335b61;display:block}.patient-attachment-image{max-width:100%;max-height:55vh;object-fit:contain;display:block;margin:20px auto;border-radius:12px;border:1px solid #d0e1e4}
.payment-actions{display:flex;gap:7px;flex-wrap:wrap}.payment-actions .refund-action{color:#793c51;background:#eadce2;border-color:#d6b9c5}.adjustment-history{margin-top:25px;border-top:1px solid #d1e2e5;padding-top:20px}.adjustment-history h3{font-size:16px;margin-bottom:14px}.adjustment-history article{padding:14px;background:#e8f0f1;border:1px solid #cbdde1;border-radius:10px;margin-bottom:10px}.adjustment-history article>div{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:14px}.adjustment-history time{font-size:13px;color:#4b6271}.adjustment-history p{font-size:14px;color:#3e5e6e;white-space:pre-wrap;overflow-wrap:anywhere;margin:9px 0}.adjustment-history article>span{font-size:14px;display:block}.adjustment-history small{display:block;font-size:12px;line-height:1.8;margin-top:9px}.receipt-net{background:#dcebe5;border:1px solid #bcd4c9;padding:16px;border-radius:10px;margin-top:15px;display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;font-size:14px}.receipt-net strong{font-size:22px;color:#175445}
.plan-installments{display:flex;justify-content:space-between;align-items:center;gap:12px;border-top:1px solid #c0d8cc;padding:14px 0;font-size:13px;flex-wrap:wrap;color:#365a62}.plan-installments>span{display:flex;align-items:center;gap:5px}.plan-installments svg{width:15px;height:15px}.plan-installments strong{font-size:13px;color:#57456b}.dashboard .plan-card-actions{display:flex;gap:7px;flex-wrap:wrap}.dashboard .plan-card-actions button{flex:1;min-width:70px;min-height:36px;font-size:13px;padding:8px}.installment-builder{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin:24px 0}.installment-builder label{flex:1;min-width:120px;margin:0}.installment-builder .btn{font-size:13px}.installment-edit-row{display:grid;grid-template-columns:22px 1fr 1fr 28px;gap:10px;align-items:center;border:1px solid #cddfe3;background:#eef5f5;border-radius:10px;padding:12px;margin-bottom:12px}.installment-edit-row label{font-size:13px!important;margin:0}.installment-edit-row button{font-size:22px;background:#e4dce4;color:#6a4659;border-radius:7px;height:30px}.installment-edit-row>span{font:600 14px Manrope;color:#315b69}.installment-edit-row input{width:100%;min-width:0}
.followup-reports{margin-bottom:28px}.action-report-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.action-report-tabs button{display:flex;align-items:center;gap:10px;background:#dce9f0;border:1px solid #bcd2df;border-radius:12px;color:#284f64;padding:16px;font-size:14px;min-width:0;text-align:right}.action-report-tabs button>svg{width:22px;height:22px;flex-shrink:0}.action-report-tabs button>b{font:600 18px Manrope;margin-right:auto;padding:4px 7px;background:#edf5f7;border-radius:7px;color:#264d61}.action-report-tabs button.active{background:#1b4b5e;color:#fff;border-color:#1b4b5e}.action-report-tabs button.active>b{background:#326274;color:#fff}.report-toolbar{display:flex;align-items:center;justify-content:space-between;gap:15px;margin:26px 0 17px;flex-wrap:wrap}.report-toolbar h3{font-size:18px;margin:0}.report-toolbar h3 span{font:500 15px Manrope;color:#315b6d;margin-right:10px}.report-toolbar label{font-size:14px;display:flex;align-items:center;gap:10px;margin:0}.report-toolbar select{font-size:14px;padding:7px 12px;border:1px solid #bfd6dd;border-radius:8px;background:#e1edf0;color:#2c566b}.followup-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.followup-card{background:#e1eee8;border:1px solid #bed6c9;border-radius:14px;padding:20px;min-width:0}.followup-card:nth-child(even){background:#e1eaf2;border-color:#bfd2df}.followup-identity{display:flex;gap:12px;align-items:start;flex-wrap:wrap}.followup-identity .avatar{width:40px;height:40px;flex-shrink:0;background:#bfded2;color:#235d4e;border:2px solid #f0f8f3}.followup-identity>div{flex:1;min-width:120px}.followup-identity .patient-name-link{font-size:17px;display:flex;align-items:center;gap:6px}.followup-identity .patient-name-link svg{width:14px;height:14px}.followup-identity h4{font-size:15px;color:#254d5f;line-height:1.8;margin:7px 0 4px}.followup-identity p{font-size:13px;color:#3e5d6a;margin:0;line-height:1.85}.followup-identity>strong{color:#77475c;font-size:18px}.followup-actions{display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid #c1d6d1;margin-top:16px;padding-top:14px}.followup-actions button,.followup-actions a{display:flex;gap:6px;align-items:center;background:#d1e5db;border:1px solid #adcdbb;border-radius:8px;padding:8px 11px;font-size:13px;color:#235c4b;min-height:36px}.followup-actions svg{width:15px;height:15px}.contact-note{font-size:13px;color:#335e54;background:#d0e5d9;border:1px solid #b5d2bf;padding:10px;border-radius:9px;display:flex;align-items:start;gap:7px;margin-top:15px;line-height:1.8}.contact-note svg{width:16px;height:16px;flex-shrink:0;margin-top:4px}.contact-note span{white-space:pre-wrap;overflow-wrap:anywhere}
.cash-chart{height:220px;display:flex;align-items:stretch;justify-content:space-around;gap:8px;direction:ltr;padding:0 7px;margin:15px 0 25px}.cash-day{position:relative;flex:1;min-width:0}.cash-positive{height:140px;display:flex;align-items:end;justify-content:center;gap:4px;border-bottom:1px solid #668b9c;background:repeating-linear-gradient(to top,transparent 0,transparent 34px,#bed4dc 35px)}.cash-positive i{display:block;width:15px;max-width:35%;min-height:1px;background:#159b8b;border-radius:5px 5px 0 0}.cash-positive i:nth-child(2){background:#a8d4cd}.cash-negative{height:55px;display:flex;align-items:start;justify-content:center}.cash-negative i{display:block;width:15px;max-width:35%;background:#a35a71;border-radius:0 0 5px 5px}.cash-day>span{position:absolute;bottom:-6px;left:0;right:0;font-size:12px;color:#3d5f6e;text-align:center;white-space:nowrap}.cash-chart-note{font-size:12px;color:#405e6b;line-height:1.8;margin:0}.receipt-dialog .adjustment-history{break-inside:avoid}
@media(max-width:1250px){.reception-board{grid-template-columns:repeat(3,minmax(0,1fr))}.action-report-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-summary>div{padding:12px;gap:7px}.patient-summary strong{font-size:14px}}
@media(max-width:760px){.reception-entry{padding:16px;gap:11px}.reception-entry strong{font-size:16px}.reception-entry small{font-size:13px}.reception-entry>span{width:38px;height:38px}.reception-entry>svg{display:none}.reception-board{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.queue-column>header{padding:12px 10px;gap:6px}.queue-column h3{font-size:15px}.queue-symbol{width:25px;height:25px}.queue-cards{padding:8px}.queue-card{padding:12px 9px}.queue-card .patient-name-link{font-size:15px}.queue-card .patient-name-link svg{display:none}.queue-card p{font-size:13px}.queue-doctor{font-size:12px}.queue-actions button,.queue-actions a{font-size:13px}.reception-filters{gap:12px}.reception-filters label{min-width:120px}.reception-filters label:last-of-type{flex-basis:100%}.queue-column:last-child{grid-column:1/-1}.queue-done .queue-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.patient-summary{top:0;border-radius:10px;display:flex;overflow-x:auto;scrollbar-width:thin;gap:1px;margin-bottom:20px}.patient-summary>div{min-width:150px;max-width:210px;flex-shrink:0;padding:11px}.patient-summary strong{font-size:13px;max-height:45px;overflow:auto}.patient-summary>div>span{font-size:12px}.patient-summary svg{width:18px;height:18px}.timeline-event{gap:10px;grid-template-columns:34px minmax(0,1fr)}.timeline-icon{width:34px;height:34px;border-radius:11px}.timeline-icon svg{width:17px;height:17px}.patient-timeline:before{right:16px}.timeline-event>div{padding:14px}.timeline-event h3{font-size:16px}.timeline-event header{font-size:12px;gap:5px}.timeline-filters{gap:6px}.timeline-filters button{font-size:13px;padding:7px 10px}.followup-list{grid-template-columns:1fr}.action-report-tabs{gap:9px}.action-report-tabs button{padding:13px 10px;gap:7px;font-size:13px}.action-report-tabs button>svg{width:18px;height:18px}.action-report-tabs button>b{font-size:16px}.followup-card{padding:17px}.installment-edit-row{gap:7px;grid-template-columns:17px minmax(0,1fr) minmax(0,.8fr) 25px;padding:10px}.installment-edit-row input{padding:8px 5px!important}.installment-builder{gap:10px}.installment-builder .btn{width:100%}.payment-actions{min-width:150px}.cash-chart{gap:4px;padding:0}.cash-day>span{font-size:12px}.cash-chart-note{font-size:12px}.adjustment-history article>div{font-size:13px}.patient-summary .summary-due small{font-size:12px}}
@media(max-width:380px){.reception-board{grid-template-columns:1fr}.queue-column:last-child{grid-column:auto}.queue-done .queue-cards{grid-template-columns:1fr}.action-report-tabs button{flex-wrap:wrap}.action-report-tabs button>span{flex:1}.action-report-tabs button>b{margin-right:0}.timeline-event>div{padding:12px}.installment-edit-row{grid-template-columns:16px minmax(0,1fr) 25px}.installment-edit-row label:nth-of-type(2){grid-column:2}.installment-edit-row>button{grid-column:3;grid-row:1}}
@media print{.patient-summary{position:static}.receipt-dialog .adjustment-history article{break-inside:avoid}}
@media(max-width:760px){.patient-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;gap:1px;background:#bdcfd5}.patient-summary>div{min-width:0;max-width:none;padding:10px;align-items:start}.patient-summary strong{max-height:44px;font-size:13px;margin-top:4px}.patient-summary>div>span{font-size:12px}}
