:root{font-family:Arial,sans-serif;color:#24313a;background:#f2f5f7;--primary:#176b75;--primary-dark:#10545c;--primary-soft:#e9f4f4;--border:#c7d3d8;--muted:#60717a}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:grid;place-items:center;padding:24px}.card,.wide-card{background:#fff;width:min(100%,460px);padding:32px;border-radius:12px;box-shadow:0 8px 30px #1837441a}.wide-card{width:min(100%,1180px);overflow:hidden}img{max-width:190px;height:auto}header{display:flex;align-items:center;justify-content:space-between}h1{color:var(--primary)}label{display:grid;gap:7px;margin:0;font-weight:700;min-width:0;max-width:100%}input,select,button,.button{font:inherit;padding:12px;border:1px solid #aebbc1;border-radius:6px}input,select{display:block;width:100%;min-width:0;max-width:100%}input:focus,select:focus{border-color:var(--primary);outline:3px solid #176b7526}button,.button{background:var(--primary);color:#fff;border:0;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.button:hover{background:var(--primary-dark)}.secondary{background:#596970}.error{padding:12px;background:#fff0f0;color:#8d1d1d;border-left:4px solid #b52b2b}.notice{margin:0 0 24px;padding:14px 16px;background:#f0f7f8;color:#314850;border-left:4px solid var(--primary);border-radius:4px;line-height:1.45}.search-form{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1.35fr) auto;grid-template-areas:"provider provider provider" "type term action";gap:14px;margin:26px 0 20px;align-items:end;max-width:100%}.search-form label:nth-of-type(1){grid-area:provider}.search-form label:nth-of-type(2){grid-area:type}.search-form label:nth-of-type(3){grid-area:term}.search-form button{grid-area:action;white-space:nowrap}.table-wrap{max-width:100%;overflow-x:auto}table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:12px;border-bottom:1px solid #dce4e7}th{background:#edf4f5}

/* Tela de acesso */
.login-page{background:radial-gradient(circle at 12% 10%,#fff 0,transparent 30%),linear-gradient(145deg,#edf4f5 0%,#f7f9fa 52%,#e8eff1 100%)}
.login-card{position:relative;background:#fff;width:min(100%,500px);padding:38px 42px 32px;border:1px solid #fff;border-radius:18px;box-shadow:0 22px 55px #1638411f;overflow:hidden}
.login-card::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#168273 0 50%,#e83b2e 50% 100%)}
.login-brand{display:flex;align-items:center;min-height:88px;margin-bottom:18px}
.login-brand img{display:block;width:180px;max-width:52%;mix-blend-mode:multiply}
.login-heading{margin-bottom:26px}
.eyebrow{display:inline-block;margin-bottom:8px;color:var(--primary);font-size:.75rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.login-heading h1{margin:0 0 8px;color:#174f58;font-size:clamp(1.8rem,6vw,2.25rem);line-height:1.1}
.login-heading p{margin:0;color:var(--muted);line-height:1.5}
.login-card .error{margin:0 0 20px;border-radius:7px}
.login-form{display:grid;gap:10px}
.login-form label{display:block;margin-top:4px;color:#253840;font-size:.93rem}
.login-form input{min-height:50px;margin-bottom:6px;padding:13px 14px;border:1px solid var(--border);border-radius:8px;background:#fbfcfc;color:#1d2c32;transition:border-color 160ms ease,box-shadow 160ms ease,background 160ms ease}
.login-form input::placeholder{color:#8a989e}
.login-form input:focus{background:#fff;box-shadow:0 0 0 3px #176b751a}
.login-form button{width:100%;min-height:52px;margin-top:8px;border-radius:8px;font-weight:700;box-shadow:0 8px 18px #176b7529;transition:background 160ms ease,transform 160ms ease,box-shadow 160ms ease}
.login-form button:hover{transform:translateY(-1px);box-shadow:0 10px 22px #176b7538}
.login-help{margin:18px 0 22px;padding:12px 14px;border-radius:8px;background:var(--primary-soft);color:#3b5b61;font-size:.87rem;line-height:1.4;text-align:center}
.back-link{display:flex;justify-content:center;align-items:center;gap:7px;color:var(--primary);font-size:.92rem;font-weight:700;text-decoration:none}
.back-link:hover{color:var(--primary-dark);text-decoration:underline}

/* Tela de consulta */
.search-page{display:block;padding:48px 24px;background:radial-gradient(circle at 8% 5%,#fff 0,transparent 25%),linear-gradient(145deg,#edf4f5 0%,#f7f9fa 55%,#e8eff1 100%)}
.search-shell{position:relative;width:min(100%,1120px);margin:0 auto;background:#fff;border:1px solid #fff;border-radius:18px;box-shadow:0 22px 55px #1638411a;overflow:hidden}
.search-shell::before{content:"";position:absolute;inset:0 0 auto;height:5px;background:linear-gradient(90deg,#168273 0 50%,#e83b2e 50% 100%)}
.search-header{padding:30px 38px 18px;border-bottom:1px solid #e9eff1}
.search-brand{display:inline-flex;align-items:center}
.search-brand img{display:block;width:168px;max-width:100%;mix-blend-mode:multiply}
.logout-form{margin:0}
.logout-button{display:inline-flex;align-items:center;gap:7px;padding:10px 15px;background:#edf3f4;color:#38545b;border:1px solid #d8e2e5;border-radius:8px;font-weight:700;box-shadow:none}
.logout-button:hover{background:#dfeaec;color:#243f45}
.search-intro{padding:30px 38px 4px}
.search-intro h1{margin:0 0 9px;color:#174f58;font-size:clamp(1.75rem,4vw,2.25rem);line-height:1.15}
.search-intro p{max-width:720px;margin:0;color:var(--muted);font-size:1rem;line-height:1.55}
.search-message{display:grid;gap:3px;margin:22px 38px 0;border-radius:8px}
.search-panel{margin:26px 38px 22px;padding:24px;border:1px solid #dce7e9;border-radius:12px;background:#fbfcfc}
.search-panel-heading{display:flex;align-items:center;gap:13px;margin-bottom:22px}
.search-panel-heading h2{margin:0 0 4px;color:#26454c;font-size:1.1rem}
.search-panel-heading p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.4}
.step-number{display:grid;flex:0 0 34px;height:34px;place-items:center;border-radius:50%;background:var(--primary);color:#fff;font-weight:800}
.search-panel .search-form{grid-template-columns:minmax(190px,.9fr) minmax(260px,1.4fr) auto;grid-template-areas:"provider provider provider" "type term action";gap:15px;margin:0;align-items:end}
.search-panel .search-form label>span{color:#293f46;font-size:.9rem}
.search-panel .search-form input,.search-panel .search-form select{min-height:50px;padding:12px 14px;border-color:var(--border);border-radius:8px;background:#fff;color:#21343a}
.search-button{display:inline-flex;min-height:50px;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border-radius:8px;font-weight:700;box-shadow:0 7px 16px #176b7524}
.tuss-tip{display:flex;align-items:flex-start;gap:10px;margin-top:18px;padding-top:17px;border-top:1px solid #e3ebed;color:#50676e;font-size:.88rem}
.tuss-tip p{margin:1px 0 0;line-height:1.45}
.tip-icon{display:grid;flex:0 0 21px;height:21px;place-items:center;border-radius:50%;background:#d9eeee;color:var(--primary);font-size:.8rem;font-weight:800}
.search-shell>.notice{display:flex;align-items:flex-start;gap:13px;margin:0 38px 28px;padding:17px 18px;background:#eef7f7;border:1px solid #d7eaea;border-left:0;border-radius:10px;color:#314b52}
.search-shell>.notice .notice-icon{display:grid;flex:0 0 28px;height:28px;place-items:center;border-radius:50%;background:var(--primary);color:#fff;font-weight:800}
.search-shell>.notice strong{display:block;margin:1px 0 4px;color:#23444b}
.search-shell>.notice p{margin:0;font-size:.9rem;line-height:1.5}
.results-section{margin:0 38px 30px;border:1px solid #dce7e9;border-radius:12px;overflow:hidden}
.results-heading{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:22px 24px;background:#f8fbfb;border-bottom:1px solid #e1eaec}
.results-heading .eyebrow{margin-bottom:5px}
.results-heading h2{margin:0;color:#29464d;font-size:1.2rem}
.results-badge{padding:7px 11px;border-radius:999px;background:var(--primary-soft);color:var(--primary-dark);font-size:.78rem;font-weight:800}
.results-section .table-wrap{overflow-x:auto}
.results-section table{min-width:900px}
.results-section th{padding:13px 16px;background:#edf4f5;color:#35545b;font-size:.76rem;letter-spacing:.03em;text-align:center;text-transform:uppercase;white-space:nowrap}
.results-section td{padding:16px;color:#31464c;font-size:.9rem;text-align:center;vertical-align:middle}
.results-section th:first-child,.results-section td:first-child{text-align:left}
.results-section tbody tr:hover{background:#fafcfc}
.code-value{display:inline-block;padding:5px 8px;border-radius:5px;background:#f0f3f4;color:#2e4b52;font-family:Consolas,monospace;font-weight:700;white-space:nowrap}
.money-value,.copay-value{white-space:nowrap;font-variant-numeric:tabular-nums}
.copay-value{color:var(--primary)!important;font-weight:800}
.percentage-badge{display:inline-block;min-width:44px;padding:5px 8px;border-radius:999px;background:#e7f3ee;color:#20634f;font-weight:800;text-align:center}
.empty-results{padding:42px 24px;text-align:center;color:var(--muted)}
.empty-results>span{display:grid;width:48px;height:48px;margin:0 auto 14px;place-items:center;border-radius:50%;background:var(--primary-soft);font-size:1.2rem}
.empty-results h3{margin:0 0 7px;color:#29464d}
.empty-results p{margin:0}
.search-footer{display:flex;justify-content:center;padding:0 38px 30px}

@media(max-width:760px){.search-form,.search-panel .search-form{grid-template-columns:1fr;grid-template-areas:"provider" "type" "term" "action"}.search-form button{width:100%}.results-section table{min-width:0}.results-section thead{display:none}.results-section tbody,.results-section tr,.results-section td{display:block;width:100%}.results-section tr{padding:12px 16px;border-bottom:1px solid #dce4e7}.results-section tr:last-child{border-bottom:0}.results-section td{display:grid;grid-template-columns:minmax(110px,38%) 1fr;gap:14px;padding:8px 0;border:0;text-align:right}.results-section td::before{content:attr(data-label);color:#60717a;font-size:.78rem;font-weight:700;text-align:left}.results-section td strong{font-weight:700}.code-value{justify-self:end}}
@media(max-width:650px){body{padding:12px}.card,.wide-card{padding:20px}.login-card{padding:30px 24px 26px;border-radius:14px}.login-brand{min-height:72px;margin-bottom:12px}.login-brand img{width:160px;max-width:58%}header{align-items:flex-start;gap:16px}img{max-width:150px}.search-page{padding:12px}.search-shell{border-radius:14px}.search-header{padding:24px 20px 16px}.search-brand img{width:142px}.search-intro{padding:25px 20px 2px}.search-panel{margin:22px 16px 18px;padding:20px 16px}.search-panel-heading{align-items:flex-start}.search-shell>.notice{margin:0 16px 22px;padding:15px}.results-section{margin:0 16px 24px}.results-heading{align-items:flex-start;padding:18px 16px}.results-badge{display:none}.search-footer{padding:0 20px 26px}.search-message{margin:20px 16px 0}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
