#message{padding:15px;background:#edf5ef;border-radius:12px;margin-bottom:15px}#message.error{background:#ffecec;color:#933}#tabs{display:flex;position:sticky;top:0;z-index:4;background:#f4f7f5;padding:12px 0;overflow:auto;flex-wrap:nowrap}#tabs button{white-space:nowrap}.custodyFilters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:18px 0}.custodyFilters label{display:block}.custodyFilters input,.custodyFilters select{width:100%;margin-top:6px}.custodyFilters .wide{grid-column:1/-1}.custodySelection{max-height:430px;overflow:auto;border:1px solid #dce8df;border-radius:12px;padding:12px}.custodyChoice{display:flex;align-items:center;gap:12px;padding:10px;border-bottom:1px solid #edf3ef}.custodyChoice input[type=checkbox]{width:20px;flex:0 0 20px}.custodyChoice small{display:block;color:#61746a}.custodyActions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0}.custodySummary{display:flex;gap:12px;flex-wrap:wrap;margin:15px 0}.custodySummary span{background:#edf5ef;padding:12px;border-radius:10px}.custodyPreview{border:1px solid #ccdcd1;padding:18px;border-radius:12px}.custodyLabel{border:1px dashed #aaa;box-sizing:border-box;text-align:center;overflow:hidden;display:flex;flex-direction:column;justify-content:center;padding:2mm;break-inside:avoid}.custodyLabel img{width:100%;height:14mm;object-fit:contain}.custodyLabel b{font-size:9pt}.custodyLabel small{font-size:7pt;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.labelSheet{display:grid;gap:2mm;direction:ltr}.labelSheet.small{grid-template-columns:repeat(3,50mm)}.labelSheet.medium{grid-template-columns:repeat(2,70mm)}.labelSheet.large{grid-template-columns:repeat(1,100mm)}.small .custodyLabel{width:50mm;height:30mm}.medium .custodyLabel{width:70mm;height:40mm}.large .custodyLabel{width:100mm;height:50mm}.printBrand{display:flex;align-items:center;gap:15px;border-bottom:2px solid #246642;padding-bottom:12px}.printBrand img{width:70px;height:70px;object-fit:contain}.printMeta{display:flex;flex-wrap:wrap;gap:16px;font-size:11pt}.printNote{font-size:10pt}#custodyPrint{display:none}
@media(max-width:760px){.custodyFilters{grid-template-columns:1fr}.custodySelection{max-height:380px}.custodyChoice{font-size:13px}#tabs button{flex:0 0 auto}}
@media print{@page{size:A4;margin:10mm}body>*{display:none!important}#custodyPrint{display:block!important;direction:rtl;color:#000}#custodyPrint table{width:100%;border-collapse:collapse}#custodyPrint th,#custodyPrint td{border:1px solid #888;padding:5px;font-size:9pt;overflow-wrap:anywhere}#custodyPrint thead{display:table-header-group}#custodyPrint tr{break-inside:avoid}#custodyPrint .tablewrap{overflow:visible}#custodyPrint .opTable{min-width:0}#custodyPrint .opPrintSignatures{break-inside:avoid;margin-top:35px}#custodyPrint h1{font-size:19pt}#custodyPrint h2{font-size:15pt}#custodyPrint a,#custodyPrint button{display:none}#custodyPrint .printBrand img{display:block}#custodyPrint .labelSheet{direction:ltr}}
