:root {
  color-scheme: light;
  --blue-1300: #252c4e;
  --green-1200: #61ce70;
  --dark-1100: #1a1b1b;
  --gold-1000: #b18722;
  --blue-900: #172554;
  --blue-800: #1e40af;
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --green-700: #047857;
  --green-100: #d1fae5;
  --amber-700: #b45309;
  --amber-100: #fef3c7;
  --red-700: #b91c1c;
  --red-100: #fee2e2;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --radius: 14px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background:
    radial-gradient(
      circle at top right,
      rgba(219, 234, 254, 0.55),
      transparent 30%
    ),
    var(--slate-50);
  color: var(--slate-900);
  min-width: 320px;
}

button,
a {
  font: inherit;
}
button:not(:disabled),
a[href] {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}

.fonts_global {
  font-family: "Inter";
}

.image.png {
  border-radius: 1px;
}

.main {
  min-width: 0;
}
.imagem {
  width: 180px;
  height: auto;
}
.topbar-container {
  min-height: 122px;
  max-width: 1520px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 20px 32px;
  background: #ffff;
  backdrop-filter: blur(12px);
}
input[type="checkbox"]:checked ~ nav {
  display: flex;
  background-color: #ffff;
  color: var(--dark-1100);
}

.topbar-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 18px;
}
.navigation_menu {
  display: flex;
  align-items: center;
}
.navigation_menu label {
  display: none;
}
.topbar-brand h1 {
  margin: 0;
  font-size: 21px;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 9px;
  border: 0;
  background: transparent;
}
.menu-toggle img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.breadcrumb {
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 600;
}
.button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid transparent;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 150ms ease,
    background 150ms ease,
    border-color 150ms ease;
}
.link {
  color: var(--dark-1100);
  text-decoration: none;
  font-size: 16px;
  font-weight: 700;
  padding: 15px 0px;
}
.link:hover {
  color: var(--gold-1000);
}
.button:active {
  transform: scale(0.97);
}
.button.primary {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: white;
}
.button.primary:hover {
  background: var(--blue-800);
}

.content {
  max-width: 1520px;
  margin: 0 auto;
  padding: 30px 32px 48px;
}
.alert {
  margin-bottom: 18px;
  padding: 13px 16px;
  border: 1px solid var(--amber-100);
  border-radius: 10px;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.5;
}
.alert.error {
  border-color: var(--red-100);
  background: #fff1f2;
  color: var(--red-700);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.summary-card {
  min-height: 91px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
}
.summary-label {
  color: var(--slate-400);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.summary-card strong {
  font-size: 14px;
}
.summary-card .summary-number {
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.workspace {
  display: grid;
  grid-template-columns: 370px minmax(0, 1fr);
  align-items: start;
  gap: 20px;
  margin-top: 20px;
}
.calendar-column {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 18px;
}
.panel {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  background: white;
  box-shadow: var(--shadow);
}
.calendar-panel {
  padding: 20px;
}
.panel-heading,
.deadlines-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}
.panel-heading h2,
.deadlines-heading h2 {
  margin: 0;
  font-size: 15px;
}
.panel-heading p {
  margin: 5px 0 0;
  color: var(--slate-500);
  font-size: 11px;
}
.text-button {
  padding: 5px 8px;
  border: 0;
  border-radius: 7px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 36px 1fr 36px;
  align-items: center;
  margin: 18px 0 12px;
}
.calendar-toolbar button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--slate-700);
  font-size: 22px;
}
.calendar-toolbar button:hover {
  background: var(--slate-100);
}
.calendar-toolbar strong {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
}
.weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
}
.weekdays {
  padding: 7px 0 9px;
  border-bottom: 1px solid var(--slate-100);
}
.weekdays span {
  color: var(--slate-400);
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
}
.calendar-day {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--slate-900);
  font-size: 12px;
}
.calendar-day:hover {
  background: var(--blue-50);
  color: var(--blue-800);
}

.calendar-day.today {
  box-shadow: inset 0 0 0 1px var(--blue-100);
  color: var(--blue-800);
  font-weight: 800;
}
.calendar-day.has-deadline {
  font-weight: 800;
}
.calendar-day.has-deadline::after {
  content: "";
  position: absolute;
  bottom: 5px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue-600);
}
.calendar-day.selected {
  background: var(--blue-700);
  color: white;
  box-shadow: 0 7px 15px rgba(29, 78, 216, 0.22);
}
.calendar-day.selected::after {
  background: white;
}
.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 13px;
  padding-top: 13px;
  border-top: 1px solid var(--slate-100);
  color: var(--slate-500);
  font-size: 10px;
}
.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.legend-dot.deadline {
  background: var(--blue-600);
}
.legend-dot.selected {
  background: var(--blue-800);
  box-shadow: 0 0 0 2px var(--blue-100);
}

.status-panel {
  padding: 16px;
}
.status-panel > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.status-panel strong {
  font-size: 11px;
}
.status-panel p {
  margin: 7px 0 0;
  color: var(--slate-500);
  font-size: 10px;
  line-height: 1.55;
}
.cache-badge {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 9px;
  font-weight: 800;
}
.cache-badge.stale {
  background: var(--amber-100);
  color: var(--amber-700);
}

.deadlines-panel {
  min-width: 0;
  padding: 22px;
}
.deadlines-heading {
  align-items: flex-end;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--slate-100);
}
.deadlines-heading span {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.deadlines-heading h2 {
  margin-top: 6px;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.count-badge {
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 10px;
  white-space: nowrap;
}
.deadline-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  max-height: 790px;
  overflow-y: auto;
  padding-right: 3px;
  scrollbar-width: thin;
  scrollbar-color: var(--slate-300) transparent;
}
.deadline-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  background: white;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}
.deadline-card:hover {
  transform: translateY(-1px);
  border-color: var(--blue-100);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.07);
}
.kind-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 900;
}
.kind-mark.filing {
  background: var(--slate-100);
  color: var(--slate-700);
}
.deadline-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}
.tag {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}
.tag.filing {
  background: var(--slate-100);
  color: var(--slate-600);
}
.code {
  color: var(--slate-500);
  font:
    500 10px ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.due-status {
  margin-left: auto;
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 9px;
  font-weight: 700;
}
.due-status.today {
  background: var(--amber-100);
  color: var(--amber-700);
}
.due-status.past {
  background: var(--slate-100);
  color: var(--slate-600);
}
.deadline-card h3 {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
}
.deadline-description {
  margin: 5px 0 0;
  color: var(--slate-600);
  font-size: 11px;
  line-height: 1.55;
}
.metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 18px;
  margin-top: 10px;
  color: var(--slate-500);
  font-size: 10px;
}
.metadata strong {
  color: var(--slate-700);
}
.deadline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--slate-100);
}
.deadline-links a {
  color: var(--blue-700);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}
.deadline-links a:hover {
  text-decoration: underline;
}
.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  padding: 28px;
  border: 1px dashed var(--slate-300);
  border-radius: 12px;
  background: var(--slate-50);
  color: var(--slate-500);
  font-size: 12px;
  text-align: center;
  line-height: 1.6;
}
.skeleton {
  height: 142px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    var(--slate-100) 25%,
    #fff 50%,
    var(--slate-100) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite linear;
}

noscript {
  display: block;
  padding: 12px;
  background: var(--red-100);
  color: var(--red-700);
  text-align: center;
}

@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}

@media (max-width: 1080px) {
  .summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .workspace {
    grid-template-columns: 340px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  .topbar-container {
    min-height: auto;
    align-items: stretch;
    flex-direction: column;
    padding: 22px 18px;
  }
  .menu-toggle {
    display: block;
    position: absolute;
    top: 20px;
    right: 18px;
  }
  .navigation_menu {
    display: block;
  }
  .navigation_menu label {
    display: block;
    cursor: pointer;
  }
  .navigation_menu label img {
    display: block;
    width: 32px;
    height: 32px;
    object-fit: contain;
  }
  .topbar-nav {
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 18px;
    padding: 8px;
    background: #111;
  }
  .topbar-nav.is-open {
    display: flex;
  }

  .topbar-nav .button {
    width: 100%;
    padding: 12px;
    color: #fff;
    text-align: left;
  }
  .topbar-nav .button {
    justify-content: flex-start;
    margin-top: 4px;
  }
  .content {
    padding: 20px 16px 36px;
  }
  .workspace {
    grid-template-columns: 1fr;
  }
  .calendar-column {
    position: static;
  }
  .deadline-list {
    max-height: none;
    overflow: visible;
  }
}

@media (max-width: 560px) {
  .topbar-brand {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-nav {
    width: 100%;
  }
  .button {
    flex: 1;
  }
  .summary-grid {
    grid-template-columns: 1fr;
  }
  .summary-card {
    min-height: 76px;
  }
  .calendar-panel,
  .deadlines-panel {
    padding: 16px;
  }
  .calendar-day {
    font-size: 11px;
  }
  .deadline-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 13px;
  }
  .kind-mark {
    width: 34px;
    height: 34px;
  }
  .due-status {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
