﻿/* Task surfaces share the editor's blue/white visual language. */
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.product-home{grid-column:span 5;min-width:0;padding:22px;border:1px solid var(--line);border-radius:20px;background:#fff;box-shadow:var(--shadow);align-self:start}.product-home-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.product-home-heading h2{font-size:19px;line-height:1.6}.product-home-heading>span{font-size:10px;color:var(--blue);background:var(--light-blue);padding:6px 8px;border-radius:6px;white-space:nowrap}.product-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.product-home-grid>button{display:flex;flex-direction:column;align-items:flex-start;gap:13px;min-height:152px;padding:18px;text-align:start;min-width:0;border:1px solid #e0e8f5;border-radius:13px;background:#fbfcff;color:var(--ink);cursor:pointer}.product-home-grid>button:first-child{background:#edf4ff;border-color:#c6d8fd}.product-home-grid>button:hover{background:#eff5ff;border-color:#98b8f5}.product-home-grid>button>.icon{width:36px;height:36px;padding:8px;flex-shrink:0;color:var(--blue);background:#e9f1ff;border-radius:9px}.product-home-grid>button:first-child>.icon{background:var(--blue);color:white}.product-home-grid strong,.product-home-grid small{display:block}.product-home-grid strong{font-size:15px;line-height:1.65}.product-home-grid small{font-size:12px;color:var(--muted);line-height:1.8;margin-top:4px}.recovery-card{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px;margin-top:16px;border:1px solid #c8dcff;border-radius:12px;background:#eff5ff}.recovery-card>div{min-width:0}.recovery-card strong{font-size:14px}.recovery-card p{margin-top:5px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}.recovery-card .button{font-size:12px}
.product-entry{display:grid;grid-template-columns:1fr 1fr;gap:8px}.product-entry .panel-label{grid-column:1/-1;margin-bottom:3px}.product-command{display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;padding:9px 6px;border:1px solid var(--line);border-radius:9px;background:#fbfcff;color:#476080;font-size:12px;cursor:pointer}.product-command:hover{background:var(--light-blue);border-color:#b2caf8;color:var(--blue)}.product-command .icon{width:17px;height:17px}.product-entry .product-command-primary{grid-column:1/-1;color:var(--blue);background:#edf4ff;border-color:#c6d8fd;font-weight:700}
.product-dialog{width:min(650px,calc(100vw - 40px))}.product-note{font-size:13px;line-height:1.85;color:var(--muted);margin:12px 0;overflow-wrap:anywhere}.product-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:14px}.product-actions .button{min-height:44px;white-space:normal;font-size:13px}.product-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:20px 0}.product-form-grid label{font-size:13px;line-height:1.7;display:flex;flex-direction:column;gap:7px;min-width:0}.product-form-grid select,.product-form-grid input,.product-search-form input{width:100%;max-width:none;min-width:0;min-height:46px;padding:10px 12px;border:1px solid #ccd8e9;border-radius:10px;background:#fff;color:var(--ink);font-size:16px}.product-dialog textarea{width:100%;min-height:180px;padding:14px;font:16px/1.8 'Waraqa UI',Arial,sans-serif;border:1px solid #ccd8e9;border-radius:12px;background:#fff;resize:vertical}.product-dialog progress{width:100%;height:8px;accent-color:var(--blue);border:0;border-radius:9px;overflow:hidden}.product-dialog progress::-webkit-progress-bar{background:#e7eefb}.product-dialog progress::-webkit-progress-value{background:var(--blue)}.product-dialog .field-label{display:block;margin:14px 0 8px;font-size:13px}.product-dialog .checkbox-label{min-height:44px;font-size:14px;align-items:flex-start;color:#475e80}.product-dialog .checkbox-label input{flex:0 0 20px;width:20px;height:20px;margin-top:3px}.product-search-form{display:flex;gap:8px;margin-top:18px}.product-search-form .button{flex-shrink:0}.document-search-results{display:grid;gap:9px;max-height:360px;overflow:auto}.document-search-results button{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:14px;text-align:start;border:1px solid #dbe6f8;background:#f8fbff;border-radius:11px;cursor:pointer;min-height:65px}.document-search-results strong{color:var(--blue);font-size:12px}.document-search-results span{font-size:15px;line-height:1.7;overflow-wrap:anywhere;width:100%;unicode-bidi:plaintext}.document-search-results button:hover{background:#eff5ff;border-color:#a1bff7}#documentSearchHighlight{position:absolute;z-index:8;border:2px solid #b58a00;background:#ffe16b66;box-shadow:0 0 0 3px #fff8;pointer-events:none;min-width:4px;min-height:4px}.search-return-button{position:absolute;top:70px;inset-inline-end:16px;z-index:10;min-height:44px;border:1px solid #a9c5f8;border-radius:10px;padding:10px 14px;background:white;box-shadow:0 4px 15px #14213d14;color:var(--blue);font:inherit;font-size:13px;cursor:pointer}
.product-recovery-indicator{min-height:44px;padding:8px 4px;border:0;background:transparent;color:#536c92;font:inherit;font-size:12px;cursor:pointer;margin-inline-start:auto;white-space:nowrap}.product-recovery-indicator[data-state=error]{color:var(--danger)}.product-recovery-indicator[data-state=saved]{color:#25634b}.product-recovery-switch{display:flex;align-items:flex-start;gap:12px;padding:17px;border:1px solid #c9dcff;border-radius:13px;background:#f1f6ff;margin:20px 0}.product-recovery-switch input{width:22px;height:22px;flex-shrink:0;accent-color:var(--blue);margin-top:3px}.product-recovery-switch strong{display:block;font-size:15px;line-height:1.7}.product-recovery-switch small{display:block;font-size:13px;line-height:1.8;margin-top:5px;color:var(--muted)}
.image-import-list{list-style:none;margin:14px 0;padding:0;display:grid;gap:10px;max-height:290px;overflow:auto}.image-import-row{display:grid;grid-template-columns:80px minmax(0,1fr);gap:10px;align-items:center;padding:11px;border:1px solid var(--line);border-radius:12px;background:#f8fbff}.image-import-preview{width:80px;height:80px;object-fit:contain;border-radius:8px;background:#e9f0fb}.image-import-row strong,.image-import-row span{overflow-wrap:anywhere;font-size:13px}.image-import-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}.image-import-actions button{min-height:44px;min-width:44px;padding:8px;border:1px solid #d2dff2;border-radius:9px;background:#fff;color:#48648d;font-size:12px;cursor:pointer}#imagePdfError{color:var(--danger)}.image-import-empty{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;min-height:170px;margin:18px 0;padding:22px;text-align:center;border:1.5px dashed #c1d4f4;border-radius:14px;background:#f8fbff}.image-import-empty>.icon{width:38px;height:38px;color:var(--blue);stroke-width:1.5}.image-import-empty strong{font-size:16px}.image-import-empty p{font-size:12px;line-height:1.8;color:var(--muted)}
.file-text-intro{margin:0 0 18px;font-size:14px;line-height:1.8;color:var(--muted)}.file-text-settings{padding:16px;border:1px solid var(--line);border-radius:13px;background:#f8fbff}.file-text-settings .field-label{margin-top:0}.file-text-settings .product-form-grid{margin:0;grid-template-columns:1fr}.file-text-ocr-choice{display:flex;align-items:flex-start;gap:10px;min-height:44px;padding:13px 0 0;font-size:14px;line-height:1.8}.file-text-ocr-choice input{margin:3px 0 0;width:20px;height:20px;flex-shrink:0;accent-color:var(--blue)}.file-text-ocr-choice strong{font-size:14px}.file-text-ocr-choice small{display:block;font-size:12px;color:var(--muted);line-height:1.8}.file-text-settings #fileTextOcrOptions{margin-top:14px;border-top:1px solid var(--line);padding-top:14px}.file-text-settings #fileTextOcrOptions select{width:100%;max-width:none}.file-text-result-panel{margin-top:20px}.file-text-result-panel .field-label{font-weight:700;color:var(--ink)}.file-text-result-panel textarea{min-height:210px;background:#fcfdff}.file-text-footer{justify-content:flex-end;padding-top:14px;margin-top:0}.file-text-guidance{margin-top:20px;border-top:1px solid var(--line)}.file-text-guidance summary{min-height:44px;padding:13px 0;font-size:12px;color:#526987;cursor:pointer}.file-text-guidance .product-note{font-size:12px;margin:0 0 10px}
/* Grouped document menu: task hierarchy, then utilities. */
.mobile-more-dialog{width:min(650px,calc(100vw - 40px))}.mobile-menu-actions{display:grid;gap:20px}.mobile-menu-section-title{font-size:12px;line-height:1.8;color:#607493;margin:0 0 9px}.mobile-menu-section-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mobile-menu-section-actions>button,.mobile-menu-help{display:flex;align-items:center;gap:10px;min-height:74px;padding:12px;text-align:start;border:1px solid var(--line);border-radius:11px;background:#fafcff;color:var(--ink);min-width:0}.mobile-menu-section-actions>button>.icon:first-child,.mobile-menu-help>.icon:first-child{width:23px;height:23px;color:var(--blue)}.mobile-menu-section-actions>button>.icon:last-child,.mobile-menu-help>.icon:last-child{display:none}.mobile-menu-section-actions>button>span,.mobile-menu-help>span{min-width:0;flex:1}.mobile-menu-section-actions strong,.mobile-menu-help strong{display:block;font-size:13px;line-height:1.65}.mobile-menu-section-actions button>span>span,.mobile-menu-help>span>span{display:block;font-size:11px;line-height:1.65;color:var(--muted);margin-top:3px}.mobile-menu-section-actions>button:hover,.mobile-menu-help:hover{background:var(--light-blue);border-color:#a9c5f8}.mobile-menu-section-actions>.product-command-primary{grid-column:1/-1;background:#eaf2ff;border-color:#bdd4ff;color:var(--blue);min-height:75px}.mobile-menu-section-actions>.product-command-primary>.icon:first-child{width:39px;height:39px;padding:9px;border-radius:10px;background:var(--blue);color:white}.mobile-menu-section[data-menu-section=edit] .mobile-menu-section-actions{grid-template-columns:1fr}.mobile-menu-section[data-menu-section=edit] button{min-height:64px}.mobile-menu-help{min-height:58px;background:#fff;border-color:transparent;border-top-color:var(--line);border-radius:0;padding:12px 2px}.mobile-more-dialog>.signature-note{margin-top:8px;font-size:11px}
@media(max-width:1100px) and (min-width:761px){.product-home{grid-column:span 6;padding:17px}.product-home-heading{flex-wrap:wrap;gap:7px;margin-bottom:14px}.product-home-heading h2{font-size:17px}.product-home-grid{gap:9px}.product-home-grid>button{padding:13px;min-height:153px}.product-home-grid strong{font-size:13px}.product-home-grid small{font-size:11px}.search-return-button{top:104px}}
@media(max-width:760px),(max-height:500px) and (pointer:coarse){.product-home{padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;width:100%;margin:0}.product-home-heading{margin-bottom:12px}.product-home-heading h2{font-size:18px}.product-home-heading>span{font-size:10px;background:#e6efff;padding:5px 7px}.product-home-grid{gap:10px}.product-home-grid>button{min-height:143px;padding:15px 13px;gap:10px;border-radius:14px;background:#fff}.product-home-grid>button:first-child{background:#eaf2ff}.product-home-grid strong{font-size:14px}.product-home-grid small{font-size:12px;line-height:1.7}.product-home-grid>button>.icon{width:34px;height:34px;padding:8px}.recovery-card{padding:13px;flex-wrap:wrap}.recovery-card .button{width:100%}.product-entry{display:none}.product-dialog,.mobile-more-dialog{width:100%;max-width:none;max-height:calc(100dvh - 16px);margin:auto 0 0;padding:22px 18px calc(22px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0}.product-dialog .product-note{font-size:12px}.product-form-grid{gap:12px}.product-form-grid label{font-size:13px}.product-dialog .product-actions .button{font-size:13px;padding-inline:13px}.product-recovery-indicator{font-size:10px;min-height:44px;padding:5px 0;max-width:100px;white-space:normal;line-height:1.6;text-align:center}.document-search-results{max-height:38dvh}.search-return-button{font-size:12px;top:64px;inset-inline-end:8px;padding:8px 12px}.image-import-row{gap:9px;padding:10px}.image-import-actions{gap:5px}.image-import-actions .button{font-size:11px;padding-inline:8px}.file-text-settings{padding:14px}.file-text-result-panel textarea{min-height:180px}.file-text-footer{justify-content:stretch}.file-text-footer .button{flex:1}.mobile-menu-actions{gap:18px}.mobile-menu-section-actions>button{padding:11px 10px;gap:8px}.mobile-menu-section-actions strong{font-size:12px}.mobile-menu-section-actions button>span>span{font-size:10px}.mobile-menu-section-actions>button>.icon:first-child{width:20px;height:20px}.mobile-menu-section-actions>.product-command-primary strong{font-size:14px}.mobile-menu-section-actions>.product-command-primary>span>span{font-size:11px}}
@media(max-width:430px){.search-return-button{top:101px}}
@media(max-width:360px){.product-home-heading h2{font-size:17px}.product-home-grid>button{padding:13px 11px;min-height:142px}.product-home-grid strong{font-size:13px}.product-home-grid small{font-size:11px}.product-recovery-indicator{max-width:78px;font-size:9px}.mobile-menu-section-actions>button{flex-direction:column;align-items:flex-start;gap:8px}.mobile-menu-section-actions>.product-command-primary{flex-direction:row;align-items:center}.mobile-menu-section[data-menu-section=edit] button{flex-direction:row;align-items:center}.product-form-grid{grid-template-columns:1fr}.file-text-settings .product-form-grid{grid-template-columns:1fr}}
@media(max-height:500px) and (pointer:coarse){.search-return-button{top:57px}.mobile-menu-section-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.mobile-menu-section-actions>.product-command-primary{grid-column:auto}.product-dialog,.mobile-more-dialog{max-height:calc(100dvh - 12px)}}
