/* Classic white/gray receipt/payment form; no impact on sales/purchase invoice styles. */
.phce-root{background:#fff!important;border:1px solid #d8d8d8!important;border-radius:2px!important;max-width:none!important;overflow:visible!important;color:#1f2530}
.phce-root .phce-titlebar{display:flex;justify-content:space-between;align-items:center;color:#b5b5b5!important;background:#f4f4f4!important;border-bottom:1px solid #d7d7d7!important;height:auto!important;min-height:49px!important;padding:9px 15px!important;font-size:14px!important}
.phce-root .phce-titlebar>.btn{color:#305b87;background:#fff;border:1px solid #d5d5d5;font-size:12px}
.phce-root .phce-fields{padding:27px 28px 0;max-width:1080px}
.phce-root .phce-topline,.phce-root .phce-pair-row{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:0 0 17px}
.phce-root .phce-topline{grid-template-columns:180px minmax(250px,360px)}
.phce-root .phce-field{min-width:0;display:block;color:#293544;font-size:12px;font-weight:normal}
.phce-root .phce-field>span:first-child{display:block;font-weight:700;margin-bottom:7px}
.phce-root .phce-field input,.phce-root .phce-field select{width:100%;min-height:34px;max-width:100%;border:1px solid #ccd1d6;background:#fff;border-radius:3px;padding:6px 9px;box-shadow:none;color:#20242c;font-size:12px}
.phce-root .phce-field input:focus,.phce-root .phce-field select:focus,.phce-root .phce-table input:focus,.phce-root .phce-table select:focus{outline:1px solid #6e9ecb;border-color:#6e9ecb}
.phce-root .phce-date-wrap{display:flex;position:relative;align-items:center}
.phce-root .phce-date-wrap>[data-phce-date-view]{padding-right:40px}
.phce-root [data-phce-native-date]{position:absolute;right:0;top:0;width:39px!important;height:34px;min-height:34px!important;border:0;opacity:0;cursor:pointer;z-index:1;padding:0}
.phce-root .phce-date-wrap:after{content:'▦';position:absolute;right:14px;color:#4e6377;pointer-events:none;font-size:17px}
.phce-root .phce-contact select{height:34px}
.phce-root .phce-description{margin:0 0 20px}
.phce-root .phce-line-box{border-top:1px solid #e2e2e2;padding:13px 0}
.phce-root .phce-scroll{width:100%;overflow:auto}
.phce-root .phce-table{min-width:670px;width:100%;border-collapse:collapse;table-layout:fixed}
.phce-root .phce-table th{color:#374354;font-size:12px;text-align:left;font-weight:700;padding:0 6px 8px}
.phce-root .phce-table td{padding:2px 5px 6px;vertical-align:top}
.phce-root .phce-table th:nth-child(1){width:26%}
.phce-root .phce-table th:nth-child(2){width:27%}
.phce-root .phce-table th:nth-child(3){width:11%}
.phce-root .phce-table th:nth-child(4){width:16%}
.phce-root .phce-table th:nth-child(5){width:15%}
.phce-root .phce-table th:nth-child(6){width:5%}
.phce-root .phce-table input,.phce-root .phce-table select{width:100%;height:32px;padding:5px 7px;border:1px solid #ced4da;border-radius:3px;background:#fff;font-size:12px}
.phce-root [data-phce-total]{color:#305b87;background:#f8f9fa!important}
.phce-root .phce-remove{border:0;background:transparent;color:#8b8b8b;font-size:19px;cursor:pointer}
.phce-root .phce-remove:hover{color:#a43c3c;background:#f1f1f1}
.phce-root .phce-add{margin:8px 0 0;background:#fff;border:1px solid #d3d3d3;color:#294f77}
.phce-root .phce-total-foot{display:flex;justify-content:flex-end;border-top:1px solid #ddd;padding:14px 2px;color:#184981;font-size:16px}
.phce-root .phce-live-info{min-height:16px;color:#637083;margin-bottom:8px;font-size:12px}
.phce-root .phce-live-info.phce-error{color:#aa2424}
.phce-root .phce-foot-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;background:#f5f5f5;border-top:1px solid #d6d6d6;padding:14px;margin:12px -28px 0}
.phce-root .phce-foot-actions .btn{margin:0}
.phce-root .phce-muted{color:#77808c;font-size:11px;margin-left:10px}
@media(max-width:700px){.phce-root .phce-fields{padding:15px}.phce-root .phce-topline,.phce-root .phce-pair-row{grid-template-columns:1fr}.phce-root .phce-foot-actions{margin-left:-15px;margin-right:-15px}}
/* Search by typing instead of an all-contact dropdown. */
.phce-root .phce-native-contact{display:none!important}
.phce-root .phce-contact-help{display:block;font-size:10px;font-weight:400;color:#677684;margin-top:4px}
.phce-float-options{position:fixed;z-index:2147483000;overflow-y:auto;overscroll-behavior:contain;background:#fff;border:1px solid #c7d1dc;border-radius:4px;box-shadow:0 7px 24px rgba(34,43,55,.18);padding:2px}
.phce-float-options[hidden]{display:none!important}
.phce-choice{display:block;width:100%;min-height:38px;text-align:left;padding:7px 9px;background:#fff;border:0;border-bottom:1px solid #edf0f2;color:#214771;cursor:pointer}
.phce-choice strong{display:block;font-size:12px;font-weight:700}
.phce-choice small{display:block;margin-top:3px;font-size:10px;color:#647587}
.phce-choice:hover,.phce-choice.chosen{background:#f0f0f0}
