/* Cabeçalho e degradê originais permanecem intocados. */
#contractsPortal{display:grid;grid-template-rows:auto minmax(0,1fr);height:100dvh;min-height:0;overflow:hidden}
#contractsPortal .controller-layout{display:grid;position:relative;grid-template-columns:64px minmax(0,1fr);min-height:0;overflow:hidden}
#contractsPortal .controller-main{grid-column:2;min-width:0;min-height:0;overflow-y:auto;overflow-x:hidden}
#contractsPortal .controller-sidebar{position:absolute;inset:0 auto 0 0;z-index:90;width:64px;padding:10px 6px;overflow-x:hidden;overflow-y:auto;background:linear-gradient(180deg,#66374c,#34273b);transition:width .24s ease}
#contractsPortal.nav-expanded .controller-sidebar{width:min(288px,86vw);box-shadow:15px 0 36px #021b23a8}
#contractsNavToggle{position:sticky;top:0;z-index:2;flex:none;width:42px;min-height:40px;margin:0 4px 12px;border:1px solid #cfabb9;border-radius:8px;background:#804a61;color:#fff;font-size:23px;cursor:pointer}
#contractsNavScrim{position:absolute;z-index:80;inset:0;border:0;border-radius:0;background:#031d2488;cursor:pointer}
#contractsPortal .controller-sidebar nav{display:grid;gap:4px}
#contractsPortal .controller-sidebar .controller-nav-link{display:flex;align-items:center;justify-content:center;width:48px;min-height:44px;margin:0;padding:7px;font-size:0;border-radius:8px}
#contractsPortal .controller-sidebar .controller-nav-link::before{content:attr(data-nav-icon);flex:none;width:25px;text-align:center;font:21px Arial,sans-serif;color:#f6e9ee}
#contractsPortal.nav-expanded .controller-sidebar .controller-nav-link{justify-content:flex-start;gap:12px;width:100%;font-size:12px;text-align:left}
#contractsPortal .controller-sidebar>p{display:none}#contractsPortal.nav-expanded .controller-sidebar>p{display:block}
#contractsPortal .controller-nav-link.active{background:#99536f;box-shadow:inset 3px 0 #ffd0b1}
#contractsPortal :focus-visible{outline:2px solid #ffb656;outline-offset:3px}
#contractsPortal.contracts-home-active .controller-main{background:linear-gradient(110deg,#06192ca8,#132b4180),url('supplies-procurement-background-v1.png') center/cover no-repeat;background-attachment:local;padding:clamp(20px,2vw,32px)}
#contractsOverview{max-width:1560px;margin:0 auto;color:#f0f7ff}
#contractsOverview .controller-welcome,#contractsOverview .contracts-glass,#contractsOverview .contracts-metric{border:1px solid #c28b51bf;border-radius:13px;background:linear-gradient(120deg,#102b3cef,#233749df);box-shadow:0 0 15px #f8aa422e,0 10px 25px #0004;backdrop-filter:blur(8px)}
#contractsOverview .controller-welcome{display:flex;align-items:center;justify-content:space-between;gap:28px;padding:30px 35px;margin:0 0 22px;border-color:#e6a455}
#contractsOverview .controller-welcome p{color:#f3f7ff;letter-spacing:.28em;font-size:11px}
#contractsOverview .controller-welcome h1{font-size:clamp(30px,3.2vw,47px);margin:8px 0 14px;color:#ffb54c;line-height:1.15}
#contractsOverview .controller-welcome span{color:#edf5fc;font-size:15px;line-height:1.6}
#contractsOverview svg,.contracts-planned-metrics svg{width:35px;height:35px;fill:none;stroke:currentColor;stroke-width:1.4;stroke-linecap:round;stroke-linejoin:round}
#contractsOverview .contracts-hero-side{display:flex;align-items:center;gap:25px;border-left:2px solid #fbb64c;padding-left:30px;min-width:270px}
#contractsOverview .contracts-hero-side svg{width:65px;height:80px;color:#ffb34e}
#contractsOverview .contracts-hero-side span{font-size:12px;letter-spacing:.09em;font-weight:700}
#contractsOverview .contracts-hero-side em{font-style:normal;color:#ffb34e;font-size:17px}
#contractsOverview .contracts-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:15px}
#contractsOverview .contracts-metric{min-width:0;padding:23px;display:flex;flex-direction:column;align-items:flex-start;min-height:245px;border-top:2px solid #ebac55}
#contractsOverview .contracts-icon{color:#ffce89;background:#70471988;border:1px solid #bd8e45;border-radius:11px;padding:10px;display:inline-flex;margin-bottom:13px}
#contractsOverview .contracts-metric:nth-child(2) .contracts-icon{color:#bcd5ff;background:#243f7855;border-color:#749be9}
#contractsOverview .contracts-metric:nth-child(3) .contracts-icon{color:#9ff2d6;background:#21644777;border-color:#41927c}
#contractsOverview .contracts-metric:nth-child(4) .contracts-icon{color:#ffc8d0;background:#702c4355;border-color:#c37084}
#contractsOverview .contracts-metric:nth-child(5) .contracts-icon{color:#decaff;background:#59378077;border-color:#9369d0}
#contractsOverview .contracts-metric strong{color:#fff;font-size:35px;line-height:1;margin:14px 0 10px}
#contractsOverview .contracts-metric h3{color:#fff;font-size:15px;line-height:1.4;margin:0}
#contractsOverview .contracts-metric small{font-size:11px;color:#d0dfeb}
#contractsOverview .contracts-metric details{font-size:10px;color:#d7e7f1;margin-top:auto;padding-top:12px;line-height:1.6}
#contractsOverview summary{cursor:pointer;color:#ffe1b3}
#contractsOverview .contracts-scope{font-size:11px;color:#d5e7f6;line-height:1.6}
#contractsOverview .contracts-home-bottom{display:grid;grid-template-columns:1.4fr 1fr;gap:22px;margin:22px 0}
#contractsOverview .contracts-glass{padding:23px;min-width:0}
#contractsOverview .contracts-glass h2{color:#fff;font-size:20px;margin:0 0 18px}
#contractsOverview .contracts-quick-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
#contractsOverview .contracts-quick-links button,#contractsOverview .contracts-shortcut-preparing{display:flex;align-items:center;gap:11px;min-width:0;padding:13px 10px;min-height:74px;border:1px solid #9eb8cd66;border-radius:9px;background:#30485888;color:#f7fbff;font:inherit;font-size:12px;text-align:left}
#contractsOverview .contracts-quick-links svg{flex:none;width:26px;height:30px;color:#ffce8c}
#contractsOverview .contracts-quick-links button{cursor:pointer}#contractsOverview .contracts-quick-links button:hover{background:#385770}
#contractsOverview .contracts-shortcut-preparing{flex-wrap:wrap}#contractsOverview .contracts-shortcut-preparing small{color:#c0ceda;font-size:10px;width:100%}
#contractsOverview #contractsNoticesAll{background:transparent;border:0;padding:4px;color:#d4f1ff;font:inherit;font-size:11px;cursor:pointer;white-space:nowrap}
#contractsOverview #contractsHomeNotices{color:#c7dceb;font-size:13px;line-height:1.6}
#contractsOverview .contracts-home-notice{display:flex;gap:12px;align-items:center;width:100%;text-align:left;padding:12px 0;border:0;border-bottom:1px solid #bbd1e22b;background:transparent;color:#ecf7ff;cursor:pointer;font:inherit;font-size:12px}
#contractsOverview .contracts-home-notice::before{content:'';width:8px;height:8px;border-radius:50%;background:#ffae48;box-shadow:0 0 8px #ffae48;flex:none}
#contractsOverview .contracts-home-notice time{margin-left:auto;color:#b8c9d8;white-space:nowrap;font-size:11px}
#contractsOverview .contracts-home-footer{display:flex;justify-content:space-between;flex-wrap:wrap;gap:14px;margin:24px 0 0;padding:18px 0;border-top:1px solid #a1becb33;color:#c2d3e0;font-size:11px;line-height:1.6}
#contractsOverview .contracts-home-footer a{color:#83e8fd}#contractsOverview>.portal-favorites{background:#102a3eee;border-color:#7794aa;color:#e2f0fc}
.contracts-planned-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0}
.contracts-planned-metrics article{min-width:0;border:1px solid #ccd7e0;background:#f6f9fc;border-radius:10px;padding:18px}
.contracts-planned-metrics h3{font-size:15px}.contracts-planned-metrics strong{display:block;font-size:27px}.contracts-planned-metrics small{display:block}.contracts-planned-metrics details{font-size:12px;margin-top:12px}.contracts-planned-metrics svg{color:#905a30}
@media(max-width:1150px){#contractsOverview .contracts-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}#contractsOverview .contracts-home-bottom{grid-template-columns:1fr}#contractsOverview .contracts-hero-side{min-width:190px;gap:15px;padding-left:18px}}
@media(max-width:800px){#contractsOverview .contracts-hero-side{display:none}#contractsOverview .contracts-metrics,.contracts-planned-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){#contractsPortal .controller-layout{grid-template-columns:54px minmax(0,1fr)}#contractsPortal .controller-sidebar{width:54px;padding-inline:3px}#contractsPortal .controller-sidebar .controller-nav-link{width:45px}#contractsNavToggle{margin-inline:3px}#contractsPortal .controller-main,#contractsPortal.contracts-home-active .controller-main{padding:16px 12px}#contractsOverview .controller-welcome{padding:22px 18px}#contractsOverview .controller-welcome h1{font-size:30px}#contractsOverview .contracts-metrics,.contracts-planned-metrics{grid-template-columns:1fr}#contractsOverview .contracts-metric{min-height:200px;padding:20px}#contractsOverview .contracts-glass{padding:18px 13px}#contractsOverview .contracts-quick-links{grid-template-columns:1fr}#contractsOverview .contracts-home-notice{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){#contractsPortal .controller-sidebar{transition:none}}
