/* Shared presentation for quotation, deposit and contract sharing. */

.share-customer{background:#f3f7f8;color:#24354d}
.share-customer .container{max-width:860px;padding:24px 20px}
.share-customer .card{border:1px solid #e0e8ed;border-radius:14px;box-shadow:0 5px 20px #29415b08}
.share-customer .card-header{padding:20px 24px;background:#fff;border-color:#e2eaf0;gap:16px}
.share-customer .card-header h2{font-size:20px;overflow-wrap:anywhere}
.share-customer .card-body{padding:24px}
.share-customer .share-summary{margin-bottom:20px}
.share-overview-row{display:flex;justify-content:space-between;align-items:center;gap:12px}
.share-customer .share-summary p{margin-top:12px}
.share-customer .summary-row{gap:20px;align-items:baseline}
.share-customer .summary-row .value{min-width:0;text-align:right;overflow-wrap:anywhere}
.share-customer .btn{min-height:46px;border-radius:9px;text-align:center;text-decoration:none}
.share-customer .customer-share-actions{display:grid;gap:12px;margin-top:20px}
.share-customer .customer-share-actions .btn{margin:0}
.share-customer .sheet-only-page{min-height:0;background:transparent}
.share-customer .sheet-only-image{max-width:100%;border-radius:10px;border:1px solid #e0e8ed;box-shadow:none}
.share-customer .confirm-section{padding:20px}
.share-customer .footer{color:#8794a3}
@media(max-width:600px){.share-customer .container{padding:16px 12px}.share-customer .card-header,.share-customer .card-body{padding:18px}.share-customer .card-header h2{font-size:18px}}
.share-panel{--share-accent:#24C1AE;display:grid;gap:20px;color:#24354d;font-size:14px;line-height:1.65;min-width:0}
.share-panel *{box-sizing:border-box}
.share-summary{padding:18px 20px;border:1px solid #cceee8;border-radius:12px;background:#f3fcfa}
.share-kind{display:inline-flex;align-items:center;padding:3px 10px;border-radius:20px;background:#def6f0;color:#087f72;font-size:12px;font-weight:700}
.share-summary h3{margin:10px 0 5px;color:#172b3b;font-size:19px;font-weight:700;overflow-wrap:anywhere}
.share-summary p,.share-help{margin:0;color:#66788a;font-size:13px}
.share-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.share-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-weight:600;color:#34475b}
.share-field input,.share-field select,.share-link input{width:100%;height:46px;min-width:0;border:1px solid #cddce3;border-radius:9px;padding:10px 12px;background:#fff;color:#172b3b;font:inherit;outline:none}
.share-field input:focus,.share-link input:focus{border-color:#24C1AE;box-shadow:0 0 0 3px #24c1ae20}
.share-field small{font-size:12px;color:#748395;font-weight:400}
.share-notice{margin:0;padding:13px 16px;border:1px solid #e1e9ee;border-radius:10px;background:#f7f9fb;color:#66788a;font-size:13px}
.share-link{display:flex;gap:10px;align-items:center;min-width:0}
.share-link input{background:#f8fafb;font-size:13px}
.share-link .btn{flex:none;min-height:44px;white-space:nowrap}
.share-result-actions{display:flex;flex-wrap:wrap;gap:10px}.share-result-actions .btn{flex:1;min-height:46px}
.share-record-list{display:grid;gap:12px;max-height:55vh;overflow:auto}
.share-record{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center;padding:15px;border:1px solid #e0e8ed;border-radius:11px;background:#fff}
.share-record h3{font-size:15px;margin:0 0 8px;overflow-wrap:anywhere}.share-record p{margin:5px 0 0;font-size:12px;color:#748395}.share-record .btn{min-height:40px}
.share-status{display:inline-block;padding:3px 9px;border-radius:20px;font-size:12px;background:#edf2f6;color:#607084}.share-status.active,.share-status.confirmed{background:#def6ef;color:#087f72}.share-status.expired,.share-status.revoked{background:#f5eeeb;color:#99684e}
.share-empty{padding:36px 16px;text-align:center;color:#748395;border:1px dashed #dce5eb;border-radius:12px}
#modal-overlay .modal:has(.share-panel){width:min(640px,calc(100vw - 32px));max-width:640px}
#modal-overlay .modal:has(.share-panel) .modal-body{padding:24px}
#modal-overlay .modal:has(.share-panel) .modal-footer{padding:16px 24px;border-top:1px solid #e2eaf0;gap:10px}
#modal-overlay .modal:has(.share-panel) .modal-footer .btn{min-height:44px;padding:10px 20px;border-radius:9px}
@media(max-width:600px){.share-fields{grid-template-columns:1fr}.share-summary{padding:16px}.share-panel{gap:16px}.share-link{flex-wrap:wrap}.share-link input{flex-basis:100%}.share-result-actions{flex-direction:column}.share-record-list{max-height:none}.share-record{grid-template-columns:1fr}.share-record>.btn{justify-self:start}}


#fullpage-overlay:has(.share-panel) .fullpage-body{padding:20px 16px;background:#f7fafb}
#fullpage-overlay:has(.share-panel) .fullpage-foot .btn{min-height:44px;border-radius:9px}
@media(prefers-color-scheme:dark){.share-customer .card{background:#fff}.share-customer .quote-title,.share-customer .summary-row .value,.share-customer .summary-row.total .label,.share-customer .error-page h2,.share-customer .success-page h2{color:#24354d}.share-customer .form-group input{background:#fff;border-color:#cddce3;color:#24354d}.share-customer .declaration{background:#f3fcfa;border-color:#cceee8}.share-customer .btn-secondary{background:#f0f4f7;color:#52617a}}


.share-result-actions .btn{justify-content:center;text-align:center}
#modal-overlay .modal:has(.share-panel) .btn-primary,#fullpage-overlay:has(.share-panel) .btn-primary{background:#24C1AE;color:#fff;border-color:#24C1AE}
#modal-overlay .modal:has(.share-panel) .btn-primary:hover,#fullpage-overlay:has(.share-panel) .btn-primary:hover{background:#1ca694}
.share-activity-section{display:grid;gap:14px;padding-top:4px;border-top:1px solid #e2eaf0}.share-activity-loading,.share-activity-error{margin:0;color:#748395}.share-activity-error{color:#b55050}.share-activity-summary{display:flex;align-items:baseline;justify-content:space-between;gap:12px}.share-activity-summary strong{font-size:15px}.share-activity-summary span,.share-activity-record p,.share-watermark p{margin:0;color:#748395;font-size:12px}.share-activity-list{display:grid;gap:8px;max-height:260px;overflow:auto}.share-activity-record{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;border:1px solid #e0e8ed;border-radius:10px;background:#fff}.share-activity-record strong{display:block;font-size:14px}.share-activity-record .btn{flex:0 0 auto;min-height:38px}.share-watermark{display:grid;grid-template-columns:1fr auto;gap:10px 14px;padding:14px;border:1px solid #cceee8;border-radius:10px;background:#f3fcfa}.share-watermark>div{grid-column:1/-1}.share-watermark label{display:flex;align-items:center;gap:7px;min-width:0;color:#34475b;font-size:13px}.share-watermark select,.share-watermark input[type=number]{width:88px;height:36px;border:1px solid #cddce3;border-radius:7px;padding:4px 7px;background:#fff;font:inherit}.share-watermark .btn{grid-column:1/-1;justify-self:start;min-height:40px}
.share-watermark select,.share-watermark input[type=number]{height:46px}


@media(max-width:600px){
  .share-customer .table-scroll{overflow:visible}
  .share-customer .table{min-width:0;width:100%}
  .share-customer .t-head{display:none}
  .share-customer .t-row:not(.t-head):not(.t-subtotal){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px 8px;padding:16px 0;align-items:start}
  .share-customer .t-row .t-c{width:auto;min-width:0;padding:0;text-align:left;overflow-wrap:anywhere}
  .share-customer .t-row .c-idx{display:none}
  .share-customer .t-row .c-name{grid-column:1/3;grid-row:1}
  .share-customer .t-name-main{font-size:14px;font-weight:600}
  .share-customer .t-row .c-img{grid-column:3;grid-row:1/3;justify-content:flex-end}
  .share-customer .t-row .c-qty{grid-column:1;grid-row:2}
  .share-customer .t-row .c-unit{grid-column:2;grid-row:2}
  .share-customer .t-row .c-price{grid-row:3}
  .share-customer .t-row .c-price:last-of-type{text-align:right}
  .share-customer .t-row .c-remark{grid-column:1/-1;grid-row:4}
  .share-customer .t-row .t-c[data-label]::before{content:attr(data-label);display:block;margin-bottom:4px;font-size:11px;font-weight:400;color:#748395}
  .share-customer .t-row .t-original{text-decoration:none}
  .share-customer .t-subtotal{padding:12px;border-radius:8px}
  .share-customer .t-subtotal>div{padding:0}
  .share-activity-summary,.share-activity-record{align-items:flex-start;flex-direction:column}.share-activity-list{max-height:none}.share-watermark{grid-template-columns:1fr}.share-watermark label{justify-content:space-between}.share-watermark .btn{width:100%;justify-self:stretch}
}
