/* Google Workspace-inspired product UI. Native controls, one light theme. */
:root {
  font-family: Arial, "Segoe UI", sans-serif;
  color: #202124;
  background: #f6f8fc;
  font-synthesis: none;
  --blue: #0b57d0;
  --ink: #202124;
  --muted: #59636f;
  --line: #e3e7ed;
  --surface: #fff;
  --soft: #eef3fc;
  --radius: 20px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button,
a {
  touch-action: manipulation;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  border: 0;
  background: transparent;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #91baff;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
svg {
  width: 21px;
  height: 21px;
  vertical-align: middle;
  flex: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -1px;
}
h2 {
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small,
.muted {
  color: var(--muted);
}
small {
  font-size: 12px;
}
strong {
  font-weight: 600;
}
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.primary,
.secondary,
.danger,
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 24px;
  font-weight: 600;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: #fff;
}
.primary:hover {
  background: #0847ad;
  box-shadow: 0 2px 6px #0b57d025;
}
.secondary {
  border: 1px solid #c9d1dc;
  background: #fff;
  color: #31517a;
}
.secondary:hover {
  background: #f2f6fc;
}
.text-button {
  color: var(--blue);
  padding: 8px 13px;
}
.text-button:hover {
  background: var(--soft);
}
.icon-button {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #5f6368;
  flex: none;
}
.icon-button:hover {
  background: #e9edf4;
}
.danger {
  color: #a3231d;
  background: #ffedea;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: none;
  background: #d3e3fd;
  color: var(--blue);
  border-radius: 14px;
  font-size: 28px;
  font-weight: 500;
}
.brand-icon.small {
  width: 40px;
  height: 40px;
  font-size: 25px;
}
.brand-dot {
  color: var(--blue);
}
.shell {
  display: flex;
  min-height: 100dvh;
}
.sidebar {
  width: 250px;
  flex: none;
  position: fixed;
  inset: 0 auto 0 0;
  padding: 29px 16px 20px;
  display: flex;
  flex-direction: column;
  background: #f6f8fc;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 10px;
  color: #333;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.6px;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  font-size: 12px;
  letter-spacing: 0.5px;
  margin-top: 6px;
}
.create-button {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  background: #c2e7ff;
  border-radius: 17px;
  margin: 30px 8px 26px;
  width: fit-content;
  color: #173455;
  font-weight: 600;
  box-shadow: 0 1px 2px #122a4220;
}
.create-button:hover {
  box-shadow: 0 3px 7px #122a4228;
}
.plus {
  font-size: 25px;
  line-height: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  width: 100%;
  padding: 13px 20px;
  border-radius: 28px;
  color: #414952;
  min-height: 48px;
  margin: 3px 0;
  font-size: 13px;
}
.nav-item:hover {
  background: #eaf0f8;
}
.nav-item.active {
  background: #d3e3fd;
  color: #124aa2;
  font-weight: 600;
}
.nav-item svg {
  width: 19px;
  height: 19px;
}
.nav-count {
  margin-left: auto;
  font-size: 12px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.workspace-label {
  font-size: 11px;
  font-weight: 600;
  margin: 12px 16px 22px;
  color: #556272;
  line-height: 1.7;
}
.workspace-label small {
  display: block;
  font-size: 10px;
  font-weight: 400;
  margin-left: 14px;
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #188658;
  border-radius: 50%;
  margin-right: 8px;
}
.main-shell {
  margin-left: 250px;
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.topbar {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 35px;
  gap: 16px;
}
.breadcrumb {
  font-size: 12px;
  color: #78828f;
  display: flex;
  gap: 14px;
}
.breadcrumb strong {
  color: #434d58;
  font-weight: 400;
}
.user-menu {
  display: flex;
  align-items: center;
  gap: 14px;
}
.workspace-tag {
  font-size: 11px;
  color: #697380;
}
.avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  background: #e0e9f8;
  color: #214e93;
  font-size: 12px;
  font-weight: 600;
}
.avatar.tiny {
  width: 28px;
  height: 28px;
  font-size: 10px;
  background: #edf2fa;
}
.mobile-only {
  display: none;
}
main {
  padding: 25px 35px 30px;
  max-width: 1680px;
  width: 100%;
  margin: auto;
  flex: 1;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.page-heading p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}
.heading-actions {
  display: flex;
  gap: 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin-bottom: 30px;
}
.metric {
  padding: 20px 22px;
  background: white;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  min-height: 119px;
}
.metric:first-child {
  background: #e8f0fe;
  border-color: #e8f0fe;
}
.metric-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #556273;
  font-size: 12px;
}
.metric-label svg {
  width: 18px;
  height: 18px;
  color: #748293;
}
.metric-value {
  font-size: 32px;
  line-height: 1.4;
  letter-spacing: -1px;
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-top: 7px;
}
.metric-value small {
  font-size: 11px;
  letter-spacing: 0;
}
.metric.alert .metric-value {
  color: #af3d29;
}
.panel {
  background: #fff;
  border-radius: 20px;
  border: 1px solid #e8ecf2;
  overflow: hidden;
}
.panel-heading {
  padding: 24px 24px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-heading h2 {
  font-size: 17px;
  letter-spacing: 0;
}
.panel-heading p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}
.view-toggle {
  display: flex;
  border: 1px solid var(--line);
  padding: 3px;
  border-radius: 9px;
  gap: 2px;
}
.view-toggle button {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.view-toggle button.active {
  background: #eaf1fd;
  color: var(--blue);
}
.view-toggle svg {
  width: 16px;
  height: 16px;
}
.filters {
  padding: 0 24px 19px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.search-field {
  position: relative;
  min-width: 210px;
  flex: 1;
  max-width: 330px;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 18px;
  height: 18px;
  color: #788491;
}
.search-field input {
  padding-left: 39px;
  width: 100%;
  background: #f6f8fc;
  border-color: #edf0f5;
}
.filters select {
  font-size: 12px;
  max-width: 190px;
  background: #fff;
  padding-right: 28px;
}
.filter-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #586575;
  white-space: nowrap;
}
.filter-check input {
  width: 15px;
  height: 15px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  color: #738092;
  padding: 13px 18px;
  background: #fafbfd;
  border-block: 1px solid #edf0f4;
  white-space: nowrap;
}
td {
  padding: 18px;
  font-size: 12px;
  border-bottom: 1px solid #eef1f5;
  vertical-align: middle;
}
th:first-child,
td:first-child {
  padding-left: 25px;
}
th:last-child,
td:last-child {
  padding-right: 24px;
}
tbody tr:hover {
  background: #f9fbff;
}
.task-title {
  font-size: 13px;
  font-weight: 600;
  color: #293d59;
  text-align: left;
  padding: 0;
  display: block;
  max-width: 330px;
}
.task-title:hover {
  color: var(--blue);
}
.task-subtitle {
  font-size: 10px;
  color: #77818f;
  margin-top: 5px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 10px;
  white-space: nowrap;
  font-weight: 500;
  background: #f0f2f5;
  color: #5f6975;
}
.badge.process {
  color: #215cae;
  background: #eaf2ff;
}
.badge.wait {
  color: #9a6410;
  background: #fff5da;
}
.badge.review {
  color: #78529f;
  background: #f4eefb;
}
.badge.done {
  color: #247452;
  background: #e5f3e9;
}
.badge.high {
  color: #ac4232;
  background: #fff0eb;
}
.badge.neutral {
  background: #edf1f5;
  color: #5b6674;
}
.priority {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.priority i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #94a4ba;
}
.priority.Alta i,
.priority.Urgente i {
  background: #c65a42;
}
.priority.Baja i {
  background: #679581;
}
.assignee {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
}
.progress-line {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 96px;
  font-size: 10px;
  color: #657287;
}
progress {
  appearance: none;
  border: 0;
  border-radius: 8px;
  height: 5px;
  width: 70px;
  background: #eaf0f8;
  overflow: hidden;
}
progress::-webkit-progress-bar {
  background: #eaf0f8;
}
progress::-webkit-progress-value {
  background: #6b9ce7;
  border-radius: 8px;
}
progress::-moz-progress-bar {
  background: #6b9ce7;
}
.due-date {
  font-size: 11px;
  white-space: nowrap;
}
.due-date.late {
  color: #b44834;
}
.due-date small {
  font-size: 9px;
  display: block;
  margin-top: 3px;
  color: inherit;
}
.table-footer {
  padding: 15px 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #788391;
  font-size: 11px;
}
.pagination {
  display: flex;
  align-items: center;
  gap: 9px;
}
.pagination button {
  border: 1px solid #e2e7ee;
  border-radius: 7px;
  width: 30px;
  height: 28px;
}
.pagination button:hover {
  background: #eef3fb;
}
.bottom-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
.soft-panel {
  background: #fff;
  border: 1px solid #e8ecf2;
  border-radius: 18px;
  padding: 23px;
}
.soft-panel h3 {
  font-size: 13px;
}
.soft-panel p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.overall-progress {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.overall-progress progress {
  height: 7px;
  flex: 1;
}
.overall-progress strong {
  font-size: 24px;
  font-weight: 500;
}
.integration-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 17px;
}
.connection-chip {
  font-size: 10px;
  padding: 6px 9px;
  border-radius: 7px;
  background: #f5f7fa;
  color: #5d6876;
}
.connection-chip svg {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 0 37px 22px;
  font-size: 10px;
  color: #8490a0;
}
.empty {
  text-align: center;
  padding: 54px 24px 60px;
  color: var(--muted);
}
.empty .empty-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 18px;
  background: #edf3fd;
  display: grid;
  place-items: center;
  color: #6b93c8;
}
.empty .empty-icon svg {
  width: 27px;
  height: 27px;
}
.empty h3 {
  color: #37455a;
  font-size: 16px;
  font-weight: 500;
}
.empty p {
  font-size: 12px;
  margin: 7px auto 21px;
  max-width: 400px;
}
.notice {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  border: 1px solid #dce7f7;
  background: #edf4ff;
  color: #3c5a84;
  border-radius: 14px;
  padding: 17px 20px;
  font-size: 12px;
  margin-bottom: 24px;
}
.notice svg {
  flex: none;
  margin-top: 2px;
}
.notice strong {
  display: block;
  color: #244b80;
  margin-bottom: 3px;
}
.notice p {
  color: inherit;
  font-size: 12px;
  line-height: 1.65;
}
.board {
  display: grid;
  grid-template-columns: repeat(4, minmax(225px, 1fr));
  gap: 14px;
  padding: 0 23px 22px;
  overflow: auto;
}
.board-column {
  background: #f6f8fc;
  border-radius: 13px;
  padding: 13px;
  min-height: 210px;
}
.board-column h3 {
  font-size: 12px;
  margin-bottom: 14px;
  display: flex;
  justify-content: space-between;
}
.board-card {
  display: block;
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #e2e8f1;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 10px;
}
.board-card h4 {
  margin: 7px 0 13px;
  font-size: 12px;
}
.board-card .card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 15px;
}
.board-note {
  padding: 0 24px 14px;
  font-size: 11px;
  color: #6b7582;
}
.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.content-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.content-card h3 {
  margin-bottom: 7px;
}
.content-card p {
  color: var(--muted);
  font-size: 13px;
}
.content-card form {
  margin-top: 24px;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.span-2 {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: #4f5b6d;
}
input,
select,
textarea {
  border: 1px solid #d7dfe9;
  border-radius: 8px;
  padding: 10px 12px;
  color: #27384d;
  background: #fff;
  min-height: 41px;
  max-width: 100%;
}
input::placeholder,
textarea::placeholder {
  color: #85909f;
  font-weight: 400;
}
textarea {
  resize: vertical;
  min-height: 100px;
  line-height: 1.6;
}
input[type="range"] {
  padding: 0;
  border: 0;
  accent-color: var(--blue);
}
input[type="checkbox"] {
  accent-color: var(--blue);
  min-height: 0;
}
input[type="file"] {
  font-size: 12px;
}
.error {
  font-size: 12px;
  color: #b3261e;
  min-height: 18px;
}
.form-actions {
  display: flex;
  gap: 9px;
  justify-content: flex-end;
  margin-top: 22px;
}
.task-dialog,
.mail-dialog {
  border: 1px solid #dfe5ed;
  border-radius: 22px;
  padding: 0;
  box-shadow: 0 18px 80px #16345930;
  color: var(--ink);
  width: min(1060px, calc(100vw - 36px));
  max-height: calc(100dvh - 40px);
}
dialog::backdrop {
  background: #1e2d4e66;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 25px 28px 21px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}
.dialog-header h2 {
  margin-top: 6px;
  font-size: 21px;
}
.dialog-header .eyebrow {
  font-size: 10px;
  color: var(--blue);
}
.task-layout {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
.task-edit {
  padding: 26px 28px;
  border-right: 1px solid var(--line);
}
.task-evidence {
  padding: 25px 25px 35px;
  background: #fbfcfe;
}
.evidence-section {
  margin-bottom: 26px;
}
.evidence-section h3 {
  font-size: 13px;
  margin-bottom: 12px;
}
.evidence-section .muted {
  font-size: 12px;
}
.evidence-section form {
  margin-top: 14px;
}
.note {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.note p {
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 7px;
  overflow-wrap: anywhere;
}
.note small {
  font-size: 10px;
}
.file-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.file-row svg {
  flex: none;
  color: #7b93b8;
}
.file-row small {
  display: block;
  font-size: 10px;
}
.timeline {
  padding-left: 11px;
  border-left: 2px solid #e4eaf3;
}
.timeline-item {
  position: relative;
  padding: 0 0 17px 10px;
  font-size: 11px;
}
.timeline-item:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b8cbe6;
  position: absolute;
  left: -15px;
  top: 5px;
}
.timeline-item small {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.timeline-item details {
  font-size: 10px;
  overflow-wrap: anywhere;
  color: #5c697a;
  margin-top: 4px;
}
.snapshot {
  font-size: 12px;
  padding: 13px;
  background: #eef4ff;
  border-radius: 10px;
  margin-top: 12px;
}
.snapshot small {
  display: block;
  margin-top: 5px;
}
.mail-list {
  width: 100%;
}
.mail-row {
  display: grid;
  grid-template-columns: 190px 1fr 90px;
  gap: 18px;
  text-align: left;
  padding: 19px 24px;
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.mail-row:hover {
  background: #f4f8ff;
}
.mail-row strong {
  font-size: 12px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-row p {
  font-size: 11px;
  color: #788594;
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mail-row time {
  font-size: 10px;
  color: #718093;
  text-align: right;
}
.mail-dialog {
  max-width: 850px;
}
.mail-content {
  padding: 28px;
}
.mail-content h2 {
  margin-bottom: 12px;
}
.mail-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
  border-block: 1px solid var(--line);
  margin: 22px 0;
  padding: 22px 0;
}
.mail-link-form {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.mail-link-form label {
  flex: 1;
}
.erp-search {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.erp-search input {
  flex: 1;
}
.client-result {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.client-result h3 {
  font-size: 13px;
}
.client-result p {
  font-size: 11px;
  margin-top: 3px;
}
.account-head {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.account-head h2 {
  font-size: 20px;
}
.account-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
}
.account-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 25px;
}
.account-total {
  padding: 16px;
  border-radius: 12px;
  background: #f3f7fd;
}
.account-total span {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.account-total strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
}
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  margin: 20px 0;
}
.contact {
  padding: 14px;
  background: #f7f9fc;
  border-radius: 10px;
  font-size: 12px;
}
.contact p {
  font-size: 12px;
}
.chat-wrap {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 200px);
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.chat-head p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.chat-welcome {
  padding: 60px 20px 40px;
  text-align: center;
}
.chat-welcome .brand-icon {
  margin: 0 auto 20px;
  width: 58px;
  height: 58px;
  border-radius: 20px;
}
.chat-welcome h1 {
  font-size: 31px;
}
.chat-welcome p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 28px auto 0;
  max-width: 700px;
}
.suggestion {
  background: white;
  border: 1px solid #e0e7f1;
  border-radius: 14px;
  padding: 19px;
  text-align: left;
  font-size: 12px;
  line-height: 1.65;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.suggestion:hover {
  background: #eef4ff;
}
.suggestion svg {
  color: #5d82b9;
}
.chat-messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 10px 6px 25px;
}
.chat-message {
  max-width: 93%;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid #e4eaf2;
  border-radius: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 13px;
  line-height: 1.8;
}
.chat-message.user {
  align-self: flex-end;
  background: #e6effe;
  border: 0;
  max-width: 80%;
}
.chat-message small {
  display: block;
  color: #7d8896;
  font-size: 10px;
  margin-bottom: 6px;
  white-space: normal;
}
.chat-compose {
  padding: 13px;
  border: 1px solid #dce4ef;
  border-radius: 23px;
  background: #fff;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  box-shadow: 0 3px 14px #182f5110;
}
.chat-compose textarea {
  border: 0;
  flex: 1;
  background: transparent;
  min-height: 47px;
  max-height: 150px;
  resize: vertical;
  padding: 11px 12px;
}
.chat-compose .primary {
  width: 44px;
  height: 44px;
  padding: 0;
  flex: none;
}
.chat-disclosure {
  text-align: center;
  font-size: 10px;
  color: #7c8897;
  margin-top: 10px;
}
.toast {
  position: fixed;
  bottom: 27px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  background: #25374c;
  color: #fff;
  padding: 14px 22px;
  border-radius: 12px;
  box-shadow: 0 5px 25px #16345930;
  max-width: min(600px, 90vw);
  font-size: 13px;
}
.toast.error-toast {
  background: #943c32;
}
.loading {
  padding: 65px;
  text-align: center;
  color: #788799;
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #c3d6f4;
  border-top-color: #3474d9;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 10px;
  vertical-align: middle;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.login-screen {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 44px 7vw;
  background: #f6f8fc;
}
.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 25px;
  letter-spacing: -0.5px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 430px;
  align-items: center;
  gap: 10vw;
  max-width: 1200px;
  width: 100%;
  margin: auto;
  padding: 70px 0;
}
.login-copy h1 {
  font-size: 58px;
  line-height: 1.15;
  letter-spacing: -2.5px;
  margin: 22px 0;
  color: #2a3e5a;
}
.login-copy p {
  font-size: 17px;
  line-height: 1.7;
  max-width: 400px;
  color: #69768a;
}
.login-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 35px;
}
.login-pills span {
  font-size: 11px;
  padding: 8px 12px;
  background: #e8eef8;
  color: #5d7391;
  border-radius: 8px;
}
.login-card {
  background: #fff;
  border: 1px solid #e0e7f1;
  border-radius: 28px;
  padding: 38px;
  box-shadow: 0 12px 45px #21385508;
}
.login-card h2 {
  margin-top: 23px;
  font-size: 29px;
}
.login-card p {
  color: #6d7989;
  font-size: 13px;
  margin-top: 7px;
  margin-bottom: 28px;
}
.login-card label {
  margin-top: 21px;
}
.login-card input {
  height: 47px;
}
.login-card .error {
  color: #b3261e;
  margin: 13px 0;
}
.login-card .primary {
  width: 100%;
  justify-content: space-between;
}
.login-card small {
  display: block;
  line-height: 1.6;
  font-size: 11px;
  margin-top: 25px;
  color: #7d8897;
}
.login-screen footer {
  font-size: 11px;
  color: #7f8b9d;
}
.settings-member {
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  align-items: center;
}
.settings-member strong {
  display: block;
  font-size: 12px;
}
.settings-member small {
  font-size: 10px;
}
.settings-member .badge {
  margin-left: auto;
}
@media (min-width: 1500px) {
  main {
    padding-top: 35px;
  }
  .metric {
    min-height: 132px;
  }
  .metrics {
    gap: 22px;
  }
  .page-heading {
    margin-bottom: 34px;
  }
  td {
    padding-top: 22px;
    padding-bottom: 22px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 221px;
    padding-inline: 12px;
  }
  .main-shell {
    margin-left: 221px;
  }
  .brand {
    font-size: 19px;
  }
  .brand-icon {
    width: 38px;
    height: 38px;
  }
  .nav-item {
    padding-inline: 15px;
    font-size: 12px;
  }
  main {
    padding: 22px;
  }
  .topbar {
    padding-inline: 23px;
  }
  .metric {
    padding: 17px;
  }
  .metric-value {
    font-size: 29px;
  }
  .metric-value small {
    display: none;
  }
  .login-layout {
    gap: 5vw;
  }
  .login-copy h1 {
    font-size: 47px;
  }
  .bottom-grid {
    grid-template-columns: 1fr 1fr;
  }
  .task-title {
    min-width: 175px;
  }
}
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.2s;
    box-shadow: 5px 0 25px #20375520;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .main-shell {
    margin-left: 0;
  }
  .mobile-only {
    display: inline-flex;
  }
  .topbar {
    height: 70px;
  }
  .breadcrumb {
    margin-right: auto;
  }
  .workspace-tag {
    display: none;
  }
  .task-layout,
  .two-column {
    grid-template-columns: 1fr;
  }
  .task-edit {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .login-layout {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }
  .login-copy h1 {
    font-size: 38px;
  }
  .login-card {
    padding: 26px;
  }
  .login-screen {
    padding: 28px;
  }
  .login-copy p {
    font-size: 15px;
  }
  .task-dialog {
    max-width: 730px;
  }
  .login-pills {
    display: none;
  }
  .mail-row {
    grid-template-columns: 130px 1fr 70px;
    gap: 12px;
  }
}
@media (max-width: 600px) {
  main {
    padding: 15px 14px 25px;
  }
  .topbar {
    padding: 0 13px;
    gap: 5px;
  }
  .breadcrumb {
    font-size: 11px;
    gap: 7px;
  }
  .user-menu {
    gap: 3px;
  }
  .page-heading {
    align-items: flex-start;
    margin-bottom: 21px;
    gap: 10px;
  }
  h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 12px;
    max-width: 235px;
  }
  .heading-actions .secondary {
    padding: 10px;
    min-height: 38px;
    font-size: 0;
  }
  .heading-actions .secondary svg {
    width: 18px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
  }
  .metric {
    padding: 15px 17px;
    min-height: 104px;
  }
  .metric-value {
    font-size: 28px;
  }
  .metric-label {
    font-size: 11px;
  }
  .panel-heading {
    padding: 19px 17px 16px;
  }
  .panel-heading h2 {
    font-size: 15px;
  }
  .filters {
    padding: 0 16px 15px;
    gap: 8px;
  }
  .search-field {
    min-width: 100%;
    max-width: none;
  }
  .filters select {
    max-width: calc(50% - 4px);
    flex: 1;
    min-width: 120px;
  }
  .bottom-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 18px;
  }
  .soft-panel {
    padding: 20px;
  }
  .table-footer {
    padding: 15px;
  }
  .app-footer {
    padding: 0 17px 18px;
  }
  .app-footer span:last-child {
    display: none;
  }
  .view-toggle button {
    font-size: 0;
    padding: 8px;
  }
  .view-toggle svg {
    width: 17px;
    height: 17px;
  }
  .form-grid {
    gap: 13px;
  }
  .form-grid label {
    min-width: 0;
  }
  .dialog-header {
    padding: 19px;
  }
  .dialog-header h2 {
    font-size: 18px;
  }
  .task-edit,
  .task-evidence {
    padding: 20px;
  }
  .task-dialog,
  .mail-dialog {
    width: calc(100vw - 14px);
    max-height: calc(100dvh - 20px);
    border-radius: 17px;
  }
  .content-card {
    padding: 20px;
  }
  .erp-search {
    flex-wrap: wrap;
  }
  .erp-search input {
    min-width: 100%;
  }
  .account-head {
    flex-direction: column;
  }
  .account-totals {
    grid-template-columns: 1fr;
    gap: 9px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .mail-row {
    grid-template-columns: 1fr 65px;
    padding: 15px 17px;
    gap: 7px;
  }
  .mail-row > span:nth-child(2) {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .mail-content {
    padding: 20px;
  }
  .mail-link-form {
    flex-direction: column;
    align-items: stretch;
  }
  .suggestions {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 22px;
  }
  .suggestion {
    padding: 13px 16px;
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .chat-welcome {
    padding: 32px 4px 20px;
  }
  .chat-welcome h1 {
    font-size: 25px;
  }
  .chat-head h2 {
    font-size: 19px;
  }
  .chat-head .secondary {
    font-size: 11px;
    padding: 9px 12px;
  }
  .chat-message {
    padding: 15px;
    max-width: 100%;
  }
  .chat-message.user {
    max-width: 92%;
  }
  .chat-disclosure {
    font-size: 9px;
  }
  .login-screen {
    padding: 25px 20px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
  .login-copy {
    display: none;
  }
  .login-card {
    max-width: 420px;
    width: 100%;
    margin: auto;
    padding: 30px;
  }
  .login-brand {
    font-size: 22px;
  }
  .login-screen footer {
    margin-top: auto;
  }
  .notice {
    padding: 15px;
    font-size: 11px;
  }
  .notice p {
    font-size: 11px;
  }
  .primary,
  .secondary {
    font-size: 12px;
  }
}
.ui-icon {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  flex: none;
  opacity: 0.75;
}
.nav-item .ui-icon {
  width: 19px;
  height: 19px;
}
.primary .ui-icon {
  filter: brightness(0) invert(1);
  opacity: 1;
}
.search-field .ui-icon {
  position: absolute;
  left: 12px;
  top: 11px;
  width: 18px;
  height: 18px;
}
.metric-label .ui-icon {
  width: 18px;
  height: 18px;
  opacity: 0.55;
}
.connection-chip .ui-icon {
  width: 12px;
  height: 12px;
  margin-right: 4px;
}
.view-toggle .ui-icon {
  width: 16px;
  height: 16px;
}
.empty-icon .ui-icon {
  width: 28px;
  height: 28px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.table-wrap {
  position: relative;
}
.filter-check {
  flex-direction: row;
}
.metric-value,
.progress-line,
.due-date {
  font-variant-numeric: tabular-nums;
}
h1,
h2,
h3 {
  text-wrap: balance;
}
.task-title {
  overflow-wrap: anywhere;
}
dialog {
  overscroll-behavior: contain;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px 20px;
  background: #fff;
  border: 2px solid var(--blue);
  border-radius: 10px;
  z-index: 200;
}
.skip-link:focus {
  top: 12px;
}
.task-dialog .error {
  margin-top: 15px;
}
@media (max-width: 600px) {
  .panel .table-wrap table,
  .panel .table-wrap tbody {
    display: block;
  }
  .panel .table-wrap thead {
    display: none;
  }
  .panel .table-wrap tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    border-bottom: 1px solid var(--line);
    padding: 16px 18px;
    gap: 12px 14px;
  }
  .panel .table-wrap td {
    display: block;
    border: 0;
    padding: 0;
    min-width: 0;
  }
  .panel .table-wrap td:first-child {
    grid-column: 1/-1;
    padding-right: 30px;
  }
  .panel .table-wrap td:last-child {
    position: absolute;
    right: 10px;
    top: 9px;
  }
  .panel .task-title {
    font-size: 13px;
    min-width: 0;
    max-width: none;
  }
  .panel .table-wrap td:nth-child(4):before {
    content: "Vencimiento";
    display: block;
    font-size: 9px;
    color: #7b8696;
    margin-bottom: 3px;
  }
  .panel .table-wrap td:nth-child(5):before {
    content: "Prioridad";
    display: block;
    font-size: 9px;
    color: #7b8696;
    margin-bottom: 3px;
  }
  .panel .table-wrap td:nth-child(6) {
    grid-column: 1/-1;
  }
  .panel .progress-line progress {
    flex: 1;
    height: 5px;
  }
  .panel .table-wrap .assignee {
    font-size: 10px;
    white-space: normal;
  }
  .panel .table-wrap td .icon-button {
    width: 32px;
    height: 32px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
