/* src/styles.css */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --app-bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --border: #dbe3ef;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-soft: #94a3b8;
  --primary: #3c50e0;
  --primary-hover: #3346c8;
  --focus-ring: rgba(60, 80, 224, 0.18);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 22px rgba(15, 23, 42, 0.08);
}
body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial,
    sans-serif;
  font-size: 14px;
  line-height: 1.5;
  background: var(--app-bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 14px;
}
input,
select,
textarea,
.field-input,
.field-input-sm,
.field-input-md,
.input-date {
  border-radius: 8px !important;
}
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px var(--focus-ring) !important;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
}
.breadcrumb-link {
  color: #3c50e0;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.12s;
}
.breadcrumb-link:hover {
  color: #3346c8;
  text-decoration: underline;
}
.breadcrumb-separator {
  color: #94a3b8;
  font-size: 13px;
}
.breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}
a {
  color: #3c50e0;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.05s ease;
}
button:active:not(:disabled) {
  transform: translateY(1px);
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  box-shadow: none;
}
button:focus-visible {
  outline: 2px solid rgba(60, 80, 224, 0.45);
  outline-offset: 2px;
}
.btn-save,
.btn-primary-action,
.btn.btn-save {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(
      180deg,
      #4a5ee8 0%,
      #3c50e0 100%);
  color: #fff;
  border: 1px solid #3c50e0;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(60, 80, 224, 0.05);
  white-space: nowrap;
}
.btn-save:hover,
.btn-primary-action:hover,
.btn.btn-save:hover {
  background:
    linear-gradient(
      180deg,
      #4254d9 0%,
      #3346c8 100%);
  border-color: #3346c8;
  box-shadow: 0 2px 6px rgba(60, 80, 224, 0.28);
}
.btn-add {
  min-height: 42px;
  background:
    linear-gradient(
      180deg,
      #4a5ee8 0%,
      #3c50e0 100%);
  color: #fff;
  border: 1px solid #3c50e0;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(60, 80, 224, 0.05);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-add::before {
  content: "+";
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}
.btn-add:hover {
  background:
    linear-gradient(
      180deg,
      #4254d9 0%,
      #3346c8 100%);
  border-color: #3346c8;
  box-shadow: 0 2px 6px rgba(60, 80, 224, 0.28);
}
.btn,
.btn-secondary,
.btn-grey-action,
.btn-sm-grey,
.menu-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.btn:hover,
.btn-secondary:hover,
.btn-grey-action:hover,
.btn-sm-grey:hover,
.menu-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}
.btn-danger-action,
.btn-delete,
.btn-remove-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.btn-danger-action:hover,
.btn-delete:hover,
.btn-remove-link:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 1px 4px rgba(220, 38, 38, 0.25);
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background:
    linear-gradient(
      180deg,
      #4a5ee8 0%,
      #3c50e0 100%);
  border: 1px solid #3c50e0;
  color: #fff;
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(60, 80, 224, 0.05);
}
.btn-back:hover {
  background:
    linear-gradient(
      180deg,
      #4254d9 0%,
      #3346c8 100%);
  border-color: #3346c8;
  color: #fff;
  box-shadow: 0 2px 6px rgba(60, 80, 224, 0.28);
  text-decoration: none;
}
.btn-back .back-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}
.action-link {
  color: #3c50e0;
  cursor: pointer;
  font-weight: 600;
  font-size: 12.5px;
  transition: color 0.12s ease;
}
.action-link:hover {
  color: #2c3eaa;
  text-decoration: underline;
}
.page-btn,
.pg {
  min-width: 38px;
  height: 38px;
  padding: 0 13px;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}
.page-btn:hover:not(:disabled),
.pg:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #1e293b;
}
.page-btn.active,
.pg.active {
  background:
    linear-gradient(
      180deg,
      #4a5ee8 0%,
      #3c50e0 100%);
  color: #fff;
  border-color: #3c50e0;
  box-shadow: 0 3px 8px rgba(60, 80, 224, 0.35);
}
.page-btn.page-ellipsis,
.pg.page-ellipsis {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  color: #64748b;
  opacity: 1;
}
.dropdown button {
  background: none;
  border: none;
  border-radius: 0;
  padding: 10px 16px;
  font-weight: 500;
  color: #334155;
  font-size: 13px;
  text-align: left;
  width: 100%;
  box-shadow: none;
  min-height: 40px;
}
.dropdown button:hover {
  background: #f8fafc;
  border-color: transparent;
  box-shadow: none;
}
.dropdown button.del {
  color: #dc2626;
}
.dropdown button.del:hover {
  background: #fef2f2;
  color: #b91c1c;
}
.empty-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  max-width: min(100%, 420px);
  word-break: break-word;
}
.empty-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.menu-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #94a3b8;
}
.menu-btn:hover {
  color: #475569;
}
.status-btn {
  padding: 8px 18px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #64748b;
}
.status-btn:hover {
  background: #fff;
  border-color: #cbd5e1;
}
.status-btn.approved.sel {
  background: #16a34a;
  color: #fff;
  border-color: #16a34a;
}
.status-btn.withdrawn.sel {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.status-btn.removed.sel {
  background: #64748b;
  color: #fff;
  border-color: #64748b;
}
.chip-remove {
  background: none;
  border: none;
  padding: 0 2px;
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  box-shadow: none;
}
.chip-remove:hover {
  background: none;
  color: #1d4ed8;
  box-shadow: none;
}
.archive-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  font-size: 14px;
  font-weight: 700;
  box-shadow: none;
}
.archive-btn:hover {
  background: #f1f5f9;
  color: #334155;
}
.archive-btn.archived {
  background: #fef3c7;
  color: #92400e;
  border-color: #fcd34d;
}
.cell-date app-workday-date-input,
.cell-date .workday-date-input,
.cell-date .date-trigger.input-date {
  display: block;
  width: 100%;
}
@media (max-width: 1180px) {
  .main-content .page-wrap,
  .main-content .page-body {
    padding: 24px 18px !important;
  }
}
@media (max-width: 900px) {
  .main-content .page-wrap,
  .main-content .page-body {
    padding: 22px 16px !important;
  }
}

/* angular:styles/global:styles */
