/* GARAGEM88: importar contatos sem alterar layout das listas ou dos formulários. */
# g88CadastrosScreen .gc-header-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
#g88CadastrosScreen .gc-import-contacts{box-sizing:border-box;min-height:42px;padding:10px 15px;border:1px solid #a9ccef;border-radius:10px;background:#edf6ff;color:#135caa;font:700 12px Inter,'Segoe UI',Arial,sans-serif;cursor:pointer}
#g88CadastrosScreen .gc-import-contacts:hover{background:#dfedff;border-color:#75aae8}
.gc-ci-overlay{position:fixed;inset:0;z-index:100500;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(6,25,43,.64);box-sizing:border-box}
.gc-ci-dialog,.gc-ci-dialog *{box-sizing:border-box}
.gc-ci-dialog{display:flex;flex-direction:column;min-width:0;width:min(900px,100%);max-height:calc(100dvh - 32px);border:1px solid #dce8f4;border-radius:16px;background:#f7faff;color:#102a46;font-family:Inter,'Segoe UI',Arial,sans-serif;box-shadow:0 25px 65px #0004;overflow:hidden;outline:none}
.gc-ci-head{display:flex;align-items:flex-start;justify-content:space-between;padding:18px 23px;background:#fff;border-bottom:1px solid #dfebf5;gap:12px}
.gc-ci-head h2{margin:0 0 5px;font-size:23px;letter-spacing:-.5px;color:#0d2748}
.gc-ci-head p{margin:0;color:#6b819a;font-size:12px}
.gc-ci-close{border:0;border-radius:9px;width:36px;height:36px;background:#eef3f8;color:#264967;font-size:25px;cursor:pointer}
.gc-ci-content{padding:20px 23px;overflow-y:auto;overscroll-behavior:contain;min-height:0}
.gc-ci-intro{margin:0 0 17px;color:#526d86;line-height:1.55;font-size:13px}
.gc-ci-intro strong{color:#185c9e}
.gc-ci-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.gc-ci-option{display:flex;flex-direction:column;gap:5px;padding:17px;text-align:left;border:1px solid #cbdff5;border-radius:12px;background:white;color:#155eab;cursor:pointer;font-family:inherit}
.gc-ci-option strong{font-size:14px}
.gc-ci-option small{font-size:12px;font-weight:400;color:#6c8197}
.gc-ci-option:hover:not(:disabled){border-color:#488de6;background:#f1f7ff}
.gc-ci-option:disabled{opacity:.48;cursor:not-allowed}
.gc-ci-helper{padding:12px 14px;background:#eaf3ff;border:1px solid #d4e6f8;border-radius:10px;color:#426687;font-size:12px;line-height:1.55}
.gc-ci-message{font-size:12px;color:#316b9b;margin:13px 0}
.gc-ci-message[data-kind="error"]{color:#c2263b;font-weight:700}
.gc-ci-review-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:14px 0 11px}
.gc-ci-review-head h3{margin:0 0 4px;font-size:16px;color:#12314f}
.gc-ci-review-head p{margin:0;font-size:12px;color:#657b94}
.gc-ci-review-head button{padding:9px 11px;background:#edf4fc;border:1px solid #cadcf0;border-radius:8px;font:700 11px Inter,sans-serif;color:#185c9c;cursor:pointer;white-space:nowrap}
.gc-ci-results{max-height:340px;overflow-y:auto;border:1px solid #dce8f4;border-radius:10px;background:#fff}
.gc-ci-row{display:grid;grid-template-columns:24px minmax(0,1.5fr) minmax(0,1.1fr) minmax(135px,.8fr);gap:10px;align-items:center;padding:11px 12px;border-bottom:1px solid #edf2f8;min-width:0}
.gc-ci-row:last-child{border-bottom:0}
.gc-ci-row>input[type="checkbox"]{height:18px;width:18px;cursor:pointer;accent-color:#126ee4}
.gc-ci-row>label{display:flex;flex-direction:column;gap:5px;min-width:0;color:#687e98;font-size:10px}
.gc-ci-row>label input{height:37px;border:1px solid #cddfed;border-radius:7px;padding:7px 9px;min-width:0;width:100%;font:500 12px Inter,sans-serif;color:#1e3852;background:#fff}
.gc-ci-row>label input:focus{outline:2px solid #9cc8fc;border-color:#4c98e8}
.gc-ci-state{font-size:10px;line-height:1.35;font-weight:700}
.gc-ci-state.ready{color:#16754b}
.gc-ci-state.duplicate{color:#a06921}
.gc-ci-state.invalid{color:#bd3044}
.gc-ci-footer{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:14px 23px;border-top:1px solid #e0eaf5;background:#fff}
.gc-ci-footer button{min-height:42px;padding:10px 17px;border-radius:9px;font:750 12px Inter,sans-serif;cursor:pointer}
.gc-ci-cancel{border:1px solid #d2dfec;background:#f3f7fc;color:#325572}
.gc-ci-confirm{border:1px solid #1373df;background:#1373df;color:#fff}
.gc-ci-confirm:disabled{opacity:.45;cursor:not-allowed}
.gc-ci-dialog button:focus-visible{outline:3px solid #8abaff;outline-offset:2px}
@media(max-width:600px){
 #g88CadastrosScreen .gc-header-actions{width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 #g88CadastrosScreen .gc-header-actions .gc-primary,#g88CadastrosScreen .gc-header-actions .gc-import-contacts{width:100%!important;min-width:0!important;margin:0!important;min-height:44px!important;padding:8px 6px!important;font-size:11px!important;white-space:normal}
 .gc-ci-overlay{padding:7px;align-items:stretch}
 .gc-ci-dialog{width:100%;max-height:calc(100dvh - 14px);border-radius:13px}
 .gc-ci-head{padding:14px}
 .gc-ci-head h2{font-size:20px}
 .gc-ci-content{padding:14px}
 .gc-ci-options{gap:8px}
 .gc-ci-option{padding:12px 9px}
 .gc-ci-option strong{font-size:12px}
 .gc-ci-option small{font-size:10px}
 .gc-ci-review-head{align-items:flex-start;flex-direction:column}
 .gc-ci-row{grid-template-columns:22px minmax(0,1fr);gap:8px 9px;padding:12px 10px}
 .gc-ci-row>label:nth-of-type(1){grid-column:2;grid-row:1}
 .gc-ci-row>label:nth-of-type(2){grid-column:2;grid-row:2}
 .gc-ci-state{grid-column:2;grid-row:3}
 .gc-ci-results{max-height:44dvh}
 .gc-ci-footer{padding:12px}
 .gc-ci-footer button{flex:1;padding:10px 8px;font-size:11px}
}
/* GARAGEM88 Mobile: importar contatos em linha própria abaixo de Novo cliente. */
@media(max-width:740px){
 #g88CadastrosScreen .gc-header-actions{width:100%;display:flex;flex-direction:column;align-items:stretch;gap:10px}
 #g88CadastrosScreen .gc-header-actions .gc-primary,#g88CadastrosScreen .gc-header-actions .gc-import-contacts{width:100%!important;min-height:45px!important;white-space:normal!important;box-sizing:border-box}
 #g88CadastrosScreen .gc-header-actions .gc-import-contacts{font-size:14px!important;padding:12px 15px!important}
}
