body { display: block; padding: 0; background: #f3f8f6; }
.hub-shell { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 25px 0 75px; }
.hub-header { display: flex; align-items: center; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid #d9e8e3; }
.hub-brand { display: flex; align-items: center; gap: 13px; }
.hub-brand .logo { width: 52px; height: 52px; padding: 3px; object-fit: contain; border-radius: 11px; background: #fff; }
.hub-brand .eyebrow { margin: 0 0 3px; color: #28877e; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hub-brand strong { font-size: 18px; }
.hub-header-actions { position: relative; margin-left: auto; display: flex; align-items: center; gap: 9px; }
.profile-link { display: flex; align-items: center; gap: 11px; padding: 7px 11px 7px 7px; border: 1px solid #d8e8e2; border-radius: 13px; background: #fff; color: #173d42; text-decoration: none; }
.profile-link:hover { background: #f8fbfa; }
.profile-link:focus-visible, .notification-toggle:focus-visible, .notification-panel button:focus-visible, .notification-panel a:focus-visible, .hub-back:focus-visible, .hub-tool:focus-visible { outline: 3px solid #98d9cd; outline-offset: 3px; }
.profile-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; background: #dceee8; color: #0d5752; font-size: 12px; font-weight: 800; }
.profile-link strong, .profile-link small { display: block; }
.profile-link strong { font-size: 13px; }
.profile-link small { margin-top: 2px; color: #607a7c; font-size: 11px; }
.profile-link > span:last-child { margin-left: 7px; color: #46736f; font-size: 22px; }
.hub-shell > .message { margin: 13px 0 0; }
.hub-shell > .message:empty { display: none; }
.notification-toggle { position: relative; width: 52px; height: 52px; display: grid; place-items: center; padding: 0; border: 1px solid #d8e8e2; border-radius: 13px; background: #fff; color: #155751; cursor: pointer; }
.notification-toggle:hover, .notification-toggle[aria-expanded="true"] { background: #e9f4f0; }
.notification-toggle svg { width: 24px; height: 24px; }
.notification-count { position: absolute; top: -8px; right: -8px; min-width: 21px; height: 21px; display: grid; place-items: center; padding: 0 4px; border: 2px solid #f3f8f6; border-radius: 12px; background: #b45520; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.notification-panel { position: absolute; z-index: 20; top: calc(100% + 10px); right: 0; width: min(380px, calc(100vw - 28px)); padding: 16px; border: 1px solid #d6e5df; border-radius: 17px; background: #fff; box-shadow: 0 20px 45px #173d4233; color: #173d42; }
.notification-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.notification-panel-head strong { font-size: 16px; }
.notification-panel-head button { border: 0; border-radius: 8px; padding: 8px 10px; background: #e6f1ed; color: #155751; font: inherit; font-size: 12px; font-weight: 750; cursor: pointer; }
.notification-summary { margin: 8px 0 12px; color: #607a7c; font-size: 13px; }
.notification-list { max-height: min(54vh, 420px); margin: 0; padding: 0; overflow-y: auto; list-style: none; }
.notification-list li + li { border-top: 1px solid #e2ece8; }
.notification-list a { display: block; padding: 11px 3px; color: #173d42; text-decoration: none; }
.notification-list a:hover { background: #f5faf8; }
.notification-list strong, .notification-list small { display: block; }
.notification-list strong { font-size: 13px; line-height: 1.35; }
.notification-list small { margin-top: 3px; color: #607a7c; font-size: 11px; }
.notification-list .urgent strong { color: #9a3e20; }
.notification-all { display: block; margin-top: 10px; padding-top: 12px; border-top: 1px solid #e2ece8; color: #155751; font-size: 13px; font-weight: 750; text-decoration: none; }
.notification-all:hover { text-decoration: underline; }
.notification-panel label{font-size:12px;color:#607a7c}.notification-panel select{width:100%;padding:8px;margin-top:5px;border:1px solid #ccded7;border-radius:8px;background:white;color:#173d42}
.hub-shell .sector-intro { margin-top: 47px; }
.hub-shell .sector-intro h1 { margin: 8px 0 10px; font-size: clamp(30px, 4vw, 46px); letter-spacing: -.04em; }
.hub-access { width: min(100%, 440px); margin: 60px auto 0; }
.hub-access h1 { margin: 0 0 9px; font-size: 26px; }
.hub-access p { color: #607a7c; }
.hub-detail { margin-top: 30px; }
.hub-back { display: inline-block; padding: 8px 0; color: #145752; font-weight: 700; text-decoration: none; }
.hub-back:hover { text-decoration: underline; }
.hub-detail .sector-page-heading { margin-top: 20px; }
.hub-detail .sector-page-heading h1 { margin: 7px 0 8px; font-size: clamp(29px, 4vw, 38px); letter-spacing: -.03em; }
.hub-tool-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hub-tool { min-height: 130px; display: flex; flex-direction: column; gap: 8px; padding: 21px; border: 1px solid #dce8e4; border-radius: 16px; background: #fff; color: #173d42; text-decoration: none; box-shadow: 0 8px 28px #123b370d; }
.hub-tool:hover { border-color: #8dbfb4; box-shadow: 0 13px 30px #123b3718; }
.hub-tool strong { font-size: 17px; }
.hub-tool span { color: #607a7c; font-size: 13px; line-height: 1.5; }
.hub-tool small { margin-top: auto; color: #267b6f; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.hub-tool.pending { cursor: default; background: #f8fbfa; }
.hub-tool.pending small { color: #827359; }
.hub-footer { margin-top: 48px; padding: 18px 0 0; border-top: 1px solid #d9e8e3; color: #607a7c; font-size: 12px; text-align: center; }
[hidden] { display: none !important; }
.employee-hub { background:#f4f7f6; }
.employee-hub .hub-header { background:#075b58; border:0; color:#fff; padding:18px 24px; border-radius:0 0 24px 24px; }
.employee-hub .hub-brand .eyebrow,.employee-hub .hub-brand strong { color:#fff; }
.employee-hub .hub-brand .logo { width:43px;height:43px; }
.employee-hub .notification-toggle,.employee-hub .profile-link { background:#ffffff24;border-color:#ffffff45;color:#fff; }
.employee-hub .hub-header-actions .notification-toggle { margin-top:0;flex:none; }
.employee-hub .profile-avatar { border-radius:50%;background:#d9eee8;color:#075b58; }
.employee-hub .profile-link small,.employee-hub .profile-link > span:last-child { color:#e0f0ec; }
.employee-hub .notification-panel { color:#173d42; }
.employee-hub .hub-breadcrumbs { display:none; }
.employee-home-hero { padding:32px 28px 0; background:linear-gradient(150deg,#075b58,#117972 70%,#44a89b); color:#fff; border-radius:0 0 34px 34px; }
.employee-home-hero .eyebrow { margin:0;color:#bde9dc;letter-spacing:.13em;text-transform:uppercase;font-weight:800;font-size:12px; }
.employee-home-hero h1 { margin:5px 0 28px;font-size:clamp(34px,5vw,54px);letter-spacing:-.045em; }
.employee-day-card { transform:translateY(22px);background:#fff;color:#153d42;border:1px solid #d6e5df;border-radius:22px;padding:23px;box-shadow:0 16px 36px #103e3730; }
.employee-day-head { display:flex;justify-content:space-between;align-items:start;gap:12px; }
.employee-day-head span { font-size:12px;font-weight:800;color:#367c76;text-transform:uppercase;letter-spacing:.08em; }
.employee-day-head h2 { margin:5px 0 16px;font-size:22px;letter-spacing:-.025em; }
.employee-day-head a { color:#0b625d;font-size:12px;font-weight:800;text-decoration:none;white-space:nowrap; }
.employee-day-shifts { display:grid;gap:9px;min-height:68px; }
.employee-day-shift { display:flex;align-items:center;gap:14px;padding:13px 16px;border-radius:13px;background:#eaf5f1;color:#153d42;text-decoration:none; }
.employee-day-shift:hover { background:#d9eee7; }
.employee-day-shift .shift-symbol { flex:none;display:grid;place-items:center;width:38px;height:38px;border-radius:11px;background:#d5ebe3;color:#126e65;font-size:19px; }
.employee-day-shift strong { font-size:15px; }
.employee-day-shift small { display:block;margin-top:2px;color:#52716e;font-size:12px; }
.employee-day-empty { padding:14px;color:#526f6d;background:#f4f8f7;border-radius:12px; }
.employee-day-controls { display:flex;align-items:center;justify-content:center;gap:17px;margin-top:16px; }
.employee-day-controls button { width:34px;height:34px;border:0;border-radius:50%;background:#e2f3ed;color:#075b58;font-size:25px;line-height:1;cursor:pointer; }
.employee-day-controls button { display:grid;place-items:center;flex:none;margin-top:0;padding:0; }
.employee-day-controls button:disabled { opacity:.35;cursor:default; }
.employee-day-controls span { min-width:115px;text-align:center;color:#536f6d;font-size:12px;font-weight:750; }
.employee-shortcuts { display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:56px 0 28px; }
.employee-shortcuts a { display:flex;align-items:center;flex-direction:column;gap:8px;color:#183d42;text-decoration:none;text-align:center; }
.employee-shortcuts a > span { display:grid;place-items:center;width:64px;height:64px;border:1px solid #d5e4df;border-radius:50%;background:#fff;color:#106b64;font-size:27px;box-shadow:0 5px 15px #123b370d; }
.employee-shortcuts strong { font-size:13px; }
.employee-home-summary { padding:23px 27px;border:1px solid #dce9e4;border-radius:20px;background:#fff;box-shadow:0 8px 25px #123b370e; }
.employee-home-summary h2 { margin:0 0 13px;font-size:20px; }
.employee-summary-row { display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 0;border-top:1px solid #e4eeea; }
.employee-summary-row span { color:#5c7775;font-size:13px; }
.employee-summary-row strong,.employee-summary-row a { color:#135f58;font-size:13px;font-weight:800;text-align:right; }
.employee-bottom-nav { display:flex;justify-content:space-around;margin-top:28px;padding:15px;border-top:1px solid #dce9e4; }
.employee-bottom-nav a { display:flex;flex-direction:column;align-items:center;gap:4px;min-width:70px;color:#64807c;text-decoration:none;font-size:23px; }
.employee-bottom-nav span { font-size:11px; }
.employee-bottom-nav .active { color:#0d6860;font-weight:800; }
.employee-home button:focus-visible,.employee-home a:focus-visible { outline:3px solid #86d2c3;outline-offset:3px; }
@media (max-width: 760px) { .hub-tool-grid { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .hub-shell { width: calc(100% - 28px); padding-top: 14px; } .hub-header { gap: 8px; } .hub-brand .logo { width: 45px; height: 45px; } .hub-brand strong { font-size: 15px; } .hub-header-actions { gap: 8px; } .notification-toggle { width: 50px; height: 50px; } .profile-link { padding: 5px; } .profile-link small, .profile-link > span:last-child { display: none; } .profile-link strong { display: none; } .hub-shell .sector-intro { margin-top: 30px; } }
@media (max-width:680px) { .employee-hub .hub-shell { width:100%;padding-top:0; } .employee-hub .hub-header { border-radius:0;padding:20px; } .employee-hub .hub-shell > .message,.employee-hub .hub-access,.employee-hub .hub-detail,.employee-hub .hub-footer { margin-left:16px;margin-right:16px; } .employee-home-hero { padding:26px 16px 0; } .employee-home-hero h1 { margin-bottom:24px; } .employee-day-card { padding:18px; } .employee-day-head h2 { font-size:18px; } .employee-day-head a { max-width:98px;white-space:normal;text-align:right; } .employee-shortcuts { margin:51px 15px 27px;gap:4px; } .employee-shortcuts a > span { width:56px;height:56px; } .employee-shortcuts strong { font-size:11px; } .employee-home-summary { margin:0 15px;padding:20px; } .employee-bottom-nav { position:sticky;bottom:0;z-index:5;background:#ffffffed;backdrop-filter:blur(12px); } }
@media (max-width:680px) {
  .employee-hub .hub-header { gap:12px;padding:18px 16px; }
  .employee-hub .hub-brand { min-width:0; }
  .employee-hub .hub-header-actions { flex:none;gap:8px; }
  .employee-hub .notification-toggle,.employee-hub .profile-link { width:48px;height:48px;flex:none;margin:0;padding:0;justify-content:center; }
  .employee-hub .profile-link { gap:0; }
  .employee-hub .profile-link > span:not(.profile-avatar) { display:none; }
  .employee-hub .profile-avatar { width:34px;height:34px;flex:none; }
  .employee-day-card { width:100%; }
}

/* Início do funcionário: a escala e os atalhos seguem a mesma grade no celular. */
.employee-hub .hub-header { background:#075b58;border-radius:0; }
.employee-hub .notification-toggle,.employee-hub .profile-link { border:0;background:transparent;box-shadow:none; }
.employee-hub .notification-toggle:hover,.employee-hub .notification-toggle[aria-expanded="true"],.employee-hub .profile-link:hover { background:#ffffff1c; }
.employee-hub .profile-avatar { background:#d5efe7; }
.employee-home-hero { position:relative;isolation:isolate;background:linear-gradient(145deg,#075b58 0%,#08746e 75%,#37a698 100%);border-radius:0 0 28px 28px; }
.employee-home-hero::before { content:"";position:absolute;z-index:-1;right:0;bottom:0;width:68%;height:44%;background:#ffffff15;border-radius:100% 0 28px 0; }
.employee-home-hero h1 { margin-bottom:20px; }
.employee-day-card { max-width:740px;margin:0 auto;padding:20px;border:0;border-radius:20px; }
.employee-day-head { display:grid;grid-template-columns:38px minmax(0,1fr) 38px;align-items:center;gap:10px;margin-bottom:17px;text-align:center; }
.employee-day-head h2 { margin:4px 0 0;font-size:17px;font-weight:500;letter-spacing:0; }
.employee-day-head span { color:#153d42;font-size:20px;font-weight:800;letter-spacing:-.025em;text-transform:none; }
.employee-day-head button { display:grid;place-items:center;width:38px;height:38px;flex:none;margin:0;padding:0;border:0;border-radius:50%;background:#e1f3ed;color:#075b58;font-size:28px;line-height:1;cursor:pointer; }
.employee-day-head button:disabled { opacity:.35;cursor:default; }
.employee-day-shift { min-height:55px;padding:9px 13px; }
.employee-day-shift .shift-symbol { background:transparent;font-size:24px; }
.employee-day-shift small { margin-top:0; }
.employee-day-footer { display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:22px;margin-top:15px;color:#56817a;font-size:12px; }
.employee-day-footer::before { content:"";width:54px; }
.employee-day-footer span { font-weight:800;text-align:center; }
.employee-day-footer a { margin-left:auto;color:#0b625d;font-weight:800;text-align:right;text-decoration:none; }
.employee-shortcuts { max-width:740px;margin:52px auto 26px; }
.employee-shortcuts a > span { border:0;background:#dcf4ed;box-shadow:none; }
.employee-home-summary { max-width:740px;margin:0 auto; }
.employee-bottom-nav { border-top:1px solid #e1ebe8;background:#fff; }
@media (max-width:680px) {
  .employee-hub .hub-header { padding:16px 20px 12px; }
  .employee-hub .notification-toggle,.employee-hub .profile-link { width:42px;height:42px; }
  .employee-hub .profile-avatar { width:36px;height:36px; }
  .employee-home-hero { padding:24px 15px 0; }
  .employee-home-hero h1 { margin-bottom:18px;font-size:36px; }
  .employee-day-card { padding:18px 15px; }
  .employee-day-head { grid-template-columns:34px minmax(0,1fr) 34px;gap:6px; }
  .employee-day-head button { width:34px;height:34px; }
  .employee-day-head span { font-size:18px; }
  .employee-day-head h2 { font-size:14px; }
  .employee-day-shift { gap:7px; }
  .employee-day-footer::before { display:none; }
  .employee-shortcuts { margin:48px 15px 24px;gap:4px; }
  .employee-shortcuts a > span { width:54px;height:54px; }
  .employee-home-summary { margin:0 15px; }
  .employee-bottom-nav { margin-top:25px;padding:12px 4px; }
  .employee-bottom-nav a { min-width:0;flex:1; }
}

/* Início do supervisor: mesmo padrão visual do Hub, com acesso rápido às três áreas. */
.management-hub { background:#f4f8f6; }
.management-hub .hub-header { padding:18px 24px;border:0;border-radius:0 0 22px 22px;background:#075b58;color:#fff; }
.management-hub .hub-brand .eyebrow,.management-hub .hub-brand strong { color:#fff; }
.management-hub .hub-brand .logo { width:44px;height:44px; }
.management-hub .notification-toggle,.management-hub .profile-link { border-color:#ffffff42;background:#ffffff1e;color:#fff; }
.management-hub .notification-toggle:hover,.management-hub .profile-link:hover { background:#ffffff32; }
.management-hub .profile-avatar { border-radius:50%;background:#d8eee8;color:#075b58; }
.management-hub .profile-link small,.management-hub .profile-link > span:last-child { color:#d7eee7; }
.management-hub .notification-panel { color:#173d42; }
.management-hub .hub-breadcrumbs { display:none; }
.management-hub .hub-shell .sector-intro { margin:22px 0 18px;padding:26px 28px;border-radius:20px;background:linear-gradient(135deg,#075b58,#117a73);color:#fff; }
.management-hub .sector-intro .eyebrow { margin:0;color:#bde9dc; }
.management-hub .sector-intro h1 { margin:7px 0 9px;font-size:clamp(29px,4vw,40px); }
.management-hub .sector-intro p { color:#e5f4ef; }
.management-hub .sector-grid { grid-template-columns:repeat(2,minmax(0,1fr));gap:12px; }
.management-hub .sector-card { min-height:112px;display:grid;grid-template-columns:48px minmax(0,1fr) 20px;grid-template-rows:auto auto;align-content:center;align-items:center;column-gap:15px;row-gap:3px;padding:18px;border-radius:17px; }
.management-hub .sector-card-icon { grid-column:1;grid-row:1 / span 2;width:48px;height:48px;margin:0;border-radius:14px;font-size:23px; }
.management-hub .sector-card strong { grid-column:2;grid-row:1;font-size:17px;line-height:1.2; }
.management-hub .sector-card > span:not(.sector-card-icon) { grid-column:2;grid-row:2;margin:0;font-size:12px;line-height:1.35; }
.management-hub .sector-card small { display:none; }
.management-hub .sector-card::after { content:'›';grid-column:3;grid-row:1 / span 2;color:#37847a;font-size:28px;line-height:1; }
.management-hub .hub-detail { margin-top:20px; }
.management-hub .hub-back { margin-bottom:12px;padding:7px 0;font-size:13px; }
.management-hub .hub-detail .sector-page-heading {
  margin:0 0 16px;padding:25px 28px;border-radius:20px;
  background:linear-gradient(135deg,#075b58,#117a73);color:#fff;
}
.management-hub .hub-detail .sector-page-heading .eyebrow { margin:0;color:#bde9dc; }
.management-hub .hub-detail .sector-page-heading h1 { margin:5px 0 8px;font-size:clamp(29px,4vw,39px); }
.management-hub .hub-detail .sector-page-heading p:last-child { margin:0;color:#e5f4ef;font-size:14px; }
.management-hub .hub-tool-grid { gap:12px; }
.management-hub .hub-tool {
  position:relative;min-height:112px;gap:6px;padding:20px 45px 20px 20px;
  border-radius:17px;box-shadow:0 8px 24px #103b380d;
}
.management-hub .hub-tool::after { content:'›';position:absolute;right:18px;top:50%;transform:translateY(-50%);color:#37847a;font-size:28px; }
.management-hub .hub-tool strong { font-size:17px;line-height:1.25; }
.management-hub .hub-tool span { font-size:12px;line-height:1.4; }
.management-hub .hub-tool small { margin-top:5px; }

/* Carregamento da sessão: mantém a estrutura do painel sem mostrar dados antes da validação. */
.hub-is-loading .hub-footer { display:none; }
.hub-loading { padding-top:20px; }
.hub-loading-hero { display:grid;gap:13px;align-content:center;min-height:146px;padding:25px 28px;border-radius:20px;background:#075b58; }
.hub-loading-line,.hub-loading-icon { display:block;border-radius:8px;background:#dcece7; }
.hub-loading-hero .hub-loading-line { background:#ffffff56; }
.hub-loading-line { width:42%;height:13px; }
.hub-loading-line.short { width:21%;height:10px; }
.hub-loading-line.title { width:49%;height:28px; }
.hub-loading-line.medium { width:64%; }
.hub-loading-line.long { width:82%; }
.hub-loading-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px; }
.hub-loading-card { display:grid;gap:13px;align-content:center;min-height:132px;padding:20px;border:1px solid #dce8e4;border-radius:17px;background:#fff; }
.hub-loading-icon { width:42px;height:42px;border-radius:12px; }
@media (prefers-reduced-motion: no-preference) {
  .hub-loading-line,.hub-loading-icon { animation:hub-loading-pulse 1.45s ease-in-out infinite alternate; }
  @keyframes hub-loading-pulse { from { opacity:.48; } to { opacity:1; } }
}
@media (max-width:680px) {
  .management-hub .hub-shell { width:100%;padding-top:0; }
  .management-hub .hub-header { gap:10px;padding:16px;border-radius:0; }
  .management-hub .hub-brand { min-width:0; }
  .management-hub .hub-brand .logo { width:42px;height:42px; }
  .management-hub .hub-header-actions { flex:none;gap:7px; }
  .management-hub .notification-toggle,.management-hub .profile-link { width:42px;height:42px;flex:none;margin:0;padding:0;justify-content:center; }
  .management-hub .profile-avatar { width:34px;height:34px; }
  .management-hub .hub-shell .sector-intro { margin:0 0 18px;padding:30px 20px 28px;border-radius:0 0 22px 22px; }
  .management-hub .sector-intro h1 { font-size:32px; }
  .management-hub .sector-grid { grid-template-columns:1fr;gap:10px;margin:0 16px; }
  .management-hub .sector-card { min-height:96px;grid-template-columns:44px minmax(0,1fr) 16px;column-gap:12px;padding:15px; }
  .management-hub .sector-card-icon { width:44px;height:44px; }
  .management-hub .sector-card strong { font-size:16px; }
  .management-hub .hub-detail,.management-hub .hub-footer { margin-left:16px;margin-right:16px; }
  .management-hub .hub-detail { margin-top:16px; }
  .management-hub .hub-detail .sector-page-heading { margin:0 -16px 16px;padding:26px 20px;border-radius:0 0 22px 22px; }
  .management-hub .hub-detail .sector-page-heading h1 { font-size:32px; }
  .management-hub .hub-tool-grid { grid-template-columns:1fr;gap:10px; }
  .management-hub .hub-tool { min-height:94px;padding:15px 42px 15px 16px; }
  .management-hub .hub-tool strong { font-size:16px; }
  .management-hub .hub-tool small { display:none; }
  .hub-loading { padding:16px; }
  .hub-loading-hero { min-height:135px;padding:21px; }
  .hub-loading-hero .hub-loading-line.title { width:75%; }
  .hub-loading-grid { grid-template-columns:1fr;gap:10px;margin-top:15px; }
  .hub-loading-card { min-height:96px;grid-template-columns:42px minmax(0,1fr);column-gap:13px;align-content:center; }
  .hub-loading-card .hub-loading-icon { grid-row:1 / span 2; }
  .hub-loading-card .hub-loading-line { width:70%; }
  .hub-loading-card .hub-loading-line.long { width:90%; }
}

