#notification-popup.no-padding.right {
  right: 16px;
}

/* ── Layout ───────────────────────────────── */
html.standalone {
  overflow: auto !important;
}

html.standalone body.fullmode {
  padding: 0 !important;
}

#user-dashboard .container {
  opacity: 1;
}

html.standalone body.fullmode #user-dashboard .container {
  padding-left: 61px;
  padding-right: 61px;
  padding-bottom: 61px;
}

@media screen and (max-width: 1131px) {
  html.standalone body.fullmode #user-dashboard .container {
    padding-left: 31px;
    padding-right: 31px;
    padding-bottom: 31px;
  }
}

@media screen and (max-width: 811px) {
  html.standalone body.fullmode #user-dashboard .container {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
  }
}

#user-dashboard .container.active {
  overflow: initial !important;
}

body.is-mays-access {
  background-color: #f6f6f6;
}

body.is-mays-access::before {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  background: url(/mays/assets/background-bottom.201ee010.svg) 100% 100% no-repeat;
  width: 600px;
  height: 300px;
  z-index: -1;
}

body.is-mays-access::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  background: url(/mays/assets/background-top.c0d0299d.svg) 100% 0 no-repeat;
  width: 600px;
  height: 600px;
  z-index: -1;
}

#user-dashboard .widget-container {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 20px;
  transition: all 0.3s ease;
}

#user-dashboard.has-active-widget .widget-container {
  grid-template-columns: 1fr;
}

/* ── Widget shell ─────────────────────────── */
#user-dashboard .widget {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 235px;
  background: #fff;
  border: 1px solid #e2e2e2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
}

#user-dashboard .widget:hover {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.1);
}

.widget.is-hidden {
  display: none !important;
}

.widget.is-active {
  min-height: calc(100vh - 40px);
  margin: 0;
  box-shadow: none !important;
  border-color: transparent;
}

/* ── Widget header ────────────────────────── */
#user-dashboard .widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-bottom: 1px solid #ececec;
  padding-bottom: 14px;
  margin-bottom: 20px;
}

#user-dashboard .widget-header .widget-icon {
  font-size: 20px;
  color: #f05200;
  line-height: 1;
}

#user-dashboard .widget-header h1 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #f05200;
  line-height: 1;
  margin: 0;
}

.widget-actions {
  margin-left: auto;
}

.action-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 6px;
  transition: all 0.2s;
}

.action-btn:hover {
  background: #f0f0f0;
  color: #333;
}

/* ── Widget content ───────────────────────── */
#user-dashboard .widget-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

#user-dashboard .widget-content .status {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

#user-dashboard .widget-content .info {
  font-size: 14px;
  color: #888;
  line-height: 1.4;
}

.status.online {
  color: #22c55e;
}
.status.away {
  color: #f59e0b;
}
.status.offline {
  color: #ef4444;
}

#user-dashboard .button-group {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

#user-dashboard .button {
  padding: 0 20px;
  font-size: 12px !important;
  height: 44px;
  line-height: 42px;
  border-radius: 8px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  background: #f05200;
  color: #fff;
  border: 1px solid #f05200;
}

#user-dashboard .button:hover {
  background: #fff;
  color: #f05200;
  border-color: #f05200;
}

#user-dashboard .button.secondary {
  background: #fff;
  border-color: #ddd;
  color: #555;
}

#user-dashboard .button.secondary:hover {
  border-color: #f05200;
  color: #f05200;
}

#user-dashboard .button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ── Progress bar ─────────────────────────── */
#user-dashboard .progress-track {
  width: 100%;
  height: 8px;
  background: #f0f0f0;
  border-radius: 99px;
  overflow: hidden;
}

#user-dashboard .progress-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Popups ───────────────────────────────── */
.dashboard-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 9999;
  animation: fadeIn 0.2s ease;
}

.dashboard-popup {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 100px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  width: 380px;
  max-width: calc(100vw - 40px);
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.comm-popup {
  width: 700px;
}

.dashboard-popup-overlay.active .dashboard-popup {
  opacity: 1;
}

/* ── Standalone (mays-access / no iframe): CSS-only centering ── */
html.standalone .dashboard-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.popup-header {
  padding: 24px 24px 18px;
  border-bottom: 1px solid #f0f0f0;
}

.popup-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #222;
}

.popup-body {
  padding: 24px;
}

.popup-body p {
  margin: 0 0 16px;
  font-size: 14px;
  color: #555;
  line-height: 1.5;
}

.popup-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ── Away Popup Grid ──────────────────────── */
.away-popup {
  width: 440px;
}

.input-group {
  margin-bottom: 24px;
}

.input-group:last-child {
  margin-bottom: 0;
}

.input-group label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.options-grid.durations {
  grid-template-columns: repeat(5, 1fr);
}

.options-grid.dates {
  grid-template-columns: repeat(5, 1fr);
}

.option-btn {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  padding: 10px 4px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #495057;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.option-btn:hover {
  background: #e9ecef;
  border-color: #dee2e6;
}

.option-btn.active {
  background: #f05200;
  color: #fff;
  border-color: #f05200;
}

/* ── Balance Rows ─────────────────────────── */
.balance-body {
  display: flex;
  flex-direction: column;
}

.balance-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #f8f9fa;
}

.balance-row:last-child {
  border-bottom: none;
}

.balance-divider {
  height: 1px;
  background: #eee;
  margin: 8px 0;
}

.balance-label {
  font-size: 14px;
  color: #666;
}

.balance-value {
  font-size: 16px;
  font-weight: 700;
  color: #222;
}

.balance-value.approved {
  color: #22c55e;
}
.balance-value.pending {
  color: #f59e0b;
}
.balance-value.remaining {
  color: #f05200;
  font-size: 18px;
}

/* ── Detail View ──────────────────────────── */
.widget.is-active .widget-detail {
  display: block;
}

.widget-detail {
  display: none;
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid #f0f0f0;
}

.dept-group {
  margin-bottom: 40px;
}

.dept-title {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  margin: 0 0 20px;
  padding-bottom: 8px;
  border-bottom: 3px solid #f05200;
  display: inline-block;
}

.func-group {
  margin-bottom: 25px;
  padding-left: 10px;
}

.func-title {
  font-size: 12px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

.users-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.user-row {
  background: #fafafa;
  padding: 12px 16px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #f0f0f0;
}

.user-main {
  display: flex;
  align-items: center;
  gap: 10px;
}

.user-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.user-status-dot.online {
  background: #22c55e;
}
.user-status-dot.away {
  background: #f59e0b;
}
.user-status-dot.offline {
  background: #cbd5e1;
}
.user-status-dot.vacation,
.user-status-dot.holiday {
  background: #8b5cf6;
}

.user-name {
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.user-off-tag {
  font-size: 10px;
  background: #f3e8ff;
  color: #7e22ce;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
  padding-left: 20px;
}

.away-reason {
  color: #f59e0b;
  font-style: italic;
}

/* ── Animations ───────────────────────────── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Skeleton loaders ─────────────────────── */
#user-dashboard .widget-skeleton {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

#user-dashboard .skel {
  background: linear-gradient(90deg, #f0f0f0 25%, #e4e4e4 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 6px;
}
#user-dashboard .skel-status {
  height: 36px;
  width: 50%;
}
#user-dashboard .skel-info {
  height: 20px;
  width: 70%;
}
#user-dashboard .skel-button {
  height: 44px;
  width: 100px;
  border-radius: 8px;
}
#user-dashboard .skel-progress {
  height: 8px;
  width: 100%;
  border-radius: 99px;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ── Worklog Table ───────────────────────── */
.worklog-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 20px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #eee;
}

.worklog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.worklog-table th {
  background: #f8f9fa;
  padding: 12px 10px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  font-size: 11px;
  border-bottom: 2px solid #eee;
  white-space: nowrap;
}

.worklog-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #f0f0f0;
  vertical-align: middle;
}

.worklog-table tr:hover {
  background: #fafafa;
}

.jira-link {
  color: #0052cc;
  text-decoration: none;
  font-weight: 600;
}

.jira-link:hover {
  text-decoration: underline;
}

.col-summary-text {
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #444;
}

.col-day {
  text-align: center;
  width: 60px;
}

.col-day-val {
  text-align: center;
  color: #999;
  font-weight: 500;
}

.col-day-val.has-val {
  color: #222;
  font-weight: 700;
  background: rgba(34, 197, 94, 0.05);
}

.col-action {
  text-align: center;
  width: 70px;
}

.col-action-btn {
  text-align: center;
}

.mini-btn {
  background: #f0f0f0;
  border: none;
  color: #f05200;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  margin: 0 auto;
}

.mini-btn:hover {
  background: #f05200;
  color: #fff;
}

.mini-btn .material-symbols-outlined {
  font-size: 18px;
}

/* ── Worklog Submit Modal ────────────────── */
.worklog-submit-popup,
.warnings-popup {
  width: 480px;
}

.issue-brief {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
  border-left: 4px solid #f05200;
}

.issue-key {
  display: block;
  font-weight: 800;
  color: #f05200;
  font-size: 12px;
  margin-bottom: 4px;
}

.issue-summary {
  margin: 0;
  font-weight: 600;
  color: #222;
  font-size: 14px;
  line-height: 1.4;
}

.option-select {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #ddd;
  padding: 0 12px;
  font-size: 14px;
  color: #444;
  background: #fff;
  cursor: pointer;
}

.option-select:focus {
  border-color: #f05200;
  outline: none;
}

.worklog-submit-popup .token-warning {
  text-align: center;
  padding: 20px 10px;
}
.worklog-submit-popup .token-warning .warning-icon {
  font-size: 48px;
  color: #ff9800;
  margin-bottom: 15px;
}
.worklog-submit-popup .token-warning h3 {
  margin: 0 0 10px 0;
  font-size: 1.2rem;
  color: #333;
}
.worklog-submit-popup .token-warning p {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.4;
}

.warning-inline {
  color: #ff9800;
  font-size: 18px !important;
  vertical-align: middle;
  margin-right: 5px;
  cursor: help;
  display: none !important;
}

.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dashboard-table th {
  text-align: left;
  padding: 10px;
  background-color: #f5f5f5;
  color: #333;
  font-weight: 600;
  border-bottom: 2px solid #ddd;
}
.dashboard-table td {
  padding: 10px;
  border-bottom: 1px solid #eee;
  vertical-align: middle;
}
.dashboard-table tr:hover td {
  background-color: #fafafa;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  text-transform: capitalize;
}
.status-badge.approved {
  background-color: #e6f4ea;
  color: #1e8e3e;
}
.status-badge.preapproved {
  background-color: #fff3e0;
  color: #ff9800;
}
.status-badge.waiting {
  background-color: #fce8e6;
  color: #d93025;
}
.status-badge.taken {
  background-color: #f1f3f4;
  color: #5f6368;
}

.form-select,
.form-input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 14px;
}
.meetings-controls {
  margin-bottom: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}
@media screen and (max-width: 768px) {
  .meetings-controls {
    display: none;
  }
}
.meetings-controls select {
  width: 100%;
  max-width: 180px;
}
.meetings-controls input {
  width: 100%;
}
.meetings-controls .button {
  margin: 0;
  padding: 8px 15px;
}

/* Grouped List Styles */
.widget-detail-grouped {
  display: flex;
  flex-direction: column;
}
.grouped-list-wrapper {
  padding-right: 5px;
  padding-bottom: 20px;
}
.grouped-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}
.grouped-section {
  margin-bottom: 20px;
}
.grouped-section-header {
  font-weight: 700;
  color: #555;
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  margin-bottom: 10px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.grouped-item-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background-color: #fff;
  border: 1px solid #eaeaea;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.item-main {
  flex: 1;
}
.item-title {
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
  font-size: 14px;
}
.item-calendar-id {
  font-size: 10px;
  color: #bbb;
  font-family: monospace;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 260px;
}
.item-meta {
  font-size: 12px;
  color: #777;
  display: flex;
  gap: 10px;
  align-items: center;
}
.meta-partial {
  background-color: #f0f0f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #555;
}
.meeting-time {
  width: 60px;
  display: flex;
  flex-direction: column;
  margin-right: 15px;
  border-right: 2px solid #eee;
  padding-right: 15px;
}
.time-main {
  font-weight: 700;
  color: #333;
  font-size: 14px;
}
.time-dur {
  font-size: 11px;
  color: #888;
  margin-top: 2px;
}
.empty-state {
  text-align: center;
  padding: 30px;
  color: #888;
  font-style: italic;
}

/* ── Availability Filters ────────────────── */
.detail-filters {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #eee;
}

@media screen and (max-width: 768px) {
  .detail-filters {
    gap: 10px;
  }

  .period-filter {
    display: none !important;
  }
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.filter-group label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: #888;
  letter-spacing: 0.5px;
}

.filter-select {
  height: 38px;
  padding: 0 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}

.filter-select:focus {
  border-color: #f05200;
}

/* ── Worklog Minutes ─────────────────────── */
.options-grid.durations.minutes {
  grid-template-columns: repeat(4, 1fr);
}

/* ── Sick Day and Time-Off Filters ────────── */
.sick-day-btn {
  background-color: #d93025 !important;
  color: #fff !important;
  border: 1px solid #d93025 !important;
}

.sick-day-btn:hover {
  background-color: #fff !important;
  color: #d93025 !important;
}

.timeoff-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  gap: 10px;
}

.filter-group {
  display: flex;
  /*background: #f1f3f4;*/
  padding: 2px;
  border-radius: 6px;
}

.filter-tab {
  padding: 6px 12px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #5f6368;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-tab:hover {
  color: #202124;
}

.filter-tab.active {
  background: #fff;
  color: #f05200;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.meta-user {
  display: inline-block;
  font-weight: 600;
  color: #202124;
  margin-right: 8px;
}

/* ── Sick Day Choice Cards ───────────────── */
.sick-choices-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 15px 0;
}

.sick-choice-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: all 0.2s;
}

.sick-choice-card:hover {
  border-color: #f05200;
  background: #fdf5f0;
}

.sick-choice-card.selected {
  border-color: #f05200;
  background: #fdf5f0;
  box-shadow: 0 0 0 1px #f05200;
}

.sick-choice-info {
  display: flex;
  flex-direction: column;
}

.sick-choice-label {
  font-size: 15px;
  font-weight: 600;
  color: #202124;
}

.sick-choice-date {
  font-size: 12px;
  color: #5f6368;
  margin-top: 2px;
}

.sick-choice-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 2px solid #bdc1c6;
  border-radius: 4px;
  transition: all 0.2s;
}

.sick-choice-card.selected .sick-choice-checkbox {
  background-color: #f05200;
  border-color: #f05200;
}

.sick-choice-checkbox .check-icon {
  color: #fff;
  font-size: 16px;
  display: none;
}

.sick-choice-card.selected .sick-choice-checkbox .check-icon {
  display: block;
}

/* ── Past Meeting Dimming ────────────────── */
.meeting-card.meeting-past {
  opacity: 0.5;
  transition: opacity 0.2s;
}

.meeting-card.meeting-past:hover {
  opacity: 0.85;
}

/* ── JIRA Issue Search ───────────────────── */
.search-group {
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.search-input-wrapper .search-icon {
  position: absolute;
  left: 12px;
  color: #80868b;
  font-size: 20px;
  pointer-events: none;
}

.search-input-wrapper .search-input {
  width: 100%;
  padding-left: 40px !important;
  font-size: 14px;
}

/* Spinner for Live API searching */
.spinner-inline {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid #f05200;
  border-top-color: transparent;
  border-radius: 50%;
  animation: searchSpinner 0.6s linear infinite;
}

@keyframes searchSpinner {
  to {
    transform: rotate(360deg);
  }
}

/* Search Dropdown Results Panel */
.search-results-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #dadce0;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(32, 33, 36, 0.15);
  max-height: 200px;
  overflow-y: auto;
  z-index: 100;
  margin-top: 4px;
}

.search-result-item {
  display: flex;
  flex-direction: column;
  padding: 10px 14px;
  border-bottom: 1px solid #f1f3f4;
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: #f8f9fa;
}

.res-left {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}

.res-key {
  font-weight: 600;
  color: #202124;
  font-size: 13px;
}

.mini-badge {
  font-size: 10px !important;
  padding: 2px 6px !important;
  font-weight: 600;
}

.res-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.res-summary {
  font-size: 13px;
  color: #3c4043;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

.res-project {
  font-size: 11px;
  color: #80868b;
  font-weight: 500;
  flex-shrink: 0;
}

/* Change Issue Button inside Brief */
.issue-brief {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fdf5f0;
  border: 1px dashed #f05200;
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 15px;
}

.brief-content {
  flex: 1;
  min-width: 0;
}

.change-issue-btn {
  color: #f05200 !important;
  border-color: #fdf5f0 !important;
  background: transparent !important;
  padding: 6px !important;
  border-radius: 50% !important;
  flex-shrink: 0;
  margin-left: 10px;
}

.change-issue-btn:hover {
  background: rgba(240, 82, 0, 0.08) !important;
  border-color: #f05200 !important;
}

/* ── Alerts Widget Styling ────────────────── */
/*.status.warning-status {
  color: #f05200 !important;
}

.status.success-status {
  color: #22c55e !important;
}*/

.warnings-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 15px;
  width: 100%;
}

.warning-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid;
  transition:
    transform 0.15s,
    box-shadow 0.15s,
    background-color 0.15s,
    border-color 0.15s;
}

.warning-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.04);
}

.warning-item.has-link {
  cursor: pointer;
  text-decoration: none;
}

.warning-item.has-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

.warning-item.warning.has-link:hover {
  background: #fff8d6;
  border-color: #ffd861;
}

.warning-item.error.has-link:hover {
  background: #ffe8e6;
  border-color: #ff8c85;
}

.warning-item-arrow {
  align-self: center;
  font-size: 20px;
  flex-shrink: 0;
  margin-left: auto;
  transition: transform 0.2s;
}

.warning-item.has-link:hover .warning-item-arrow {
  transform: translateX(3px);
}

.warning-item.warning {
  background: #fffbe6;
  border-color: #ffe58f;
  color: #d46b08;
}

.warning-item.error {
  background: #fff1f0;
  border-color: #ffa39e;
  color: #cf1322;
}

.warning-item-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.warning-content {
  flex: 1;
  min-width: 0;
}

.warning-title {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 2px;
  line-height: 1.4;
}

.warning-message {
  font-size: 12px;
  line-height: 1.4;
  opacity: 0.9;
}

.empty-state.no-warnings {
  background: #f6ffed;
  border: 1px solid #b7eb8f;
  color: #389e0d;
  padding: 24px 16px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  width: 100%;
}

.success-icon {
  font-size: 32px;
  color: #52c41a;
}

.empty-state.no-warnings p {
  font-size: 13px;
  font-weight: 600;
  margin: 0;
}

/* ── Dev Statistics Panel ─────────────────── */
.dev-info-section {
  margin-top: 24px;
  border-top: 1px dashed #e8e8e8;
  padding-top: 18px;
  width: 100%;
}

.dev-info-section h3 {
  font-size: 12px;
  font-weight: 700;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.dev-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

.dev-stat-card {
  background: #fdfdfd;
  border: 1px solid #f0f0f0;
  padding: 14px 10px;
  border-radius: 8px;
  text-align: center;
  transition:
    transform 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01);
}

.dev-stat-card:hover {
  transform: translateY(-2px);
  border-color: #f05200;
  box-shadow: 0 4px 10px rgba(240, 82, 0, 0.06);
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #f05200;
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: #7f8c8d;
}

/* ── Team Widget ─────────────────────────────────────────────────────── */
.team-detail-view {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

.team-header-banner {
  background: linear-gradient(135deg, rgba(52, 152, 219, 0.08) 0%, rgba(155, 89, 182, 0.08) 100%);
  border: 1px solid rgba(52, 152, 219, 0.15);
  padding: 16px 20px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.banner-title {
  font-size: 15px;
  font-weight: 700;
  color: #2c3e50;
}

.banner-subtitle {
  font-size: 12px;
  color: #7f8c8d;
  font-weight: 500;
}

.team-members-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.team-member-card {
  background: #ffffff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.team-member-card:hover {
  transform: translateY(-2px);
  border-color: #3498db;
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.06);
}

.team-member-card.expanded-card {
  border-color: #3498db;
  box-shadow: 0 8px 24px rgba(52, 152, 219, 0.08);
}

.member-summary {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.member-header {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.status-dot.online {
  background-color: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.6);
}

.status-dot.away {
  background-color: #f39c12;
  box-shadow: 0 0 8px rgba(243, 156, 18, 0.6);
}

.status-dot.offline {
  background-color: #bdc3c7;
}

.member-info-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

.member-name {
  font-size: 14px;
  font-weight: 700;
  color: #2c3e50;
}

.member-email {
  font-size: 11px;
  color: #95a5a6;
  font-weight: 500;
}

.expand-arrow {
  font-size: 20px;
  color: #95a5a6;
  transition: transform 0.3s;
}

.member-metrics {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 20px;
  border-top: 1px dashed #f5f5f5;
  padding-top: 12px;
}

.metric-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.metric-label {
  font-size: 11px;
  font-weight: 600;
  color: #7f8c8d;
}

.metric-value {
  font-size: 13px;
  font-weight: 700;
  color: #34495e;
}

.metric-sublabel {
  font-size: 10px;
  color: #95a5a6;
  font-weight: 500;
}

.progress-bar-wrapper {
  background: #f0f3f6;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 4px;
}

.progress-bar {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.progress-bar.success-bar {
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.progress-bar.warning-bar {
  background: linear-gradient(90deg, #f0932b, #eb4d4b);
}

/* Daily details dropdown */
.member-daily-detail {
  background: #fafbfc;
  border-top: 1px dashed rgba(52, 152, 219, 0.15);
  padding: 20px;
}

.detail-header-row {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
}

.detail-title {
  font-size: 12px;
  font-weight: 700;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.activity-table-wrapper {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #ebedf0;
}

.activity-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.activity-table th {
  background: #f4f6f8;
  font-size: 11px;
  font-weight: 700;
  color: #7f8c8d;
  padding: 10px 14px;
  border-bottom: 1px solid #ebedf0;
}

.activity-table td {
  padding: 10px 14px;
  font-size: 12px;
  color: #2c3e50;
  border-bottom: 1px solid #ebedf0;
}

.activity-table tr:last-child td {
  border-bottom: none;
}

.col-date {
  font-weight: 600;
}

.presence-time {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}

.time-icon {
  font-size: 14px;
  color: #95a5a6;
  vertical-align: middle;
}

.presence-none,
.jira-none {
  color: #bdc3c7;
  font-style: italic;
}

.jira-hours {
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: #2980b9;
}

.jira-icon {
  font-size: 14px;
  color: #3498db;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.status-badge.aligned {
  background: rgba(46, 204, 113, 0.1);
  color: #27ae60;
}

.status-badge.missing {
  background: rgba(231, 76, 60, 0.1);
  color: #c0392b;
}

.badge-icon {
  font-size: 12px;
}

.team-empty-state {
  text-align: center;
  padding: 40px;
  color: #95a5a6;
  font-size: 13px;
  font-weight: 500;
}

/* ── Team Worklog Audit Table ────────────────────────────────────── */
.team-worklog-table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin-top: 15px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #ebedf0;
}

.team-worklog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}

.team-worklog-table th {
  background: #f4f6f8;
  padding: 10px;
  font-weight: 700;
  color: #7f8c8d;
  text-transform: uppercase;
  font-size: 10px;
  border-bottom: 2px solid #ebedf0;
  white-space: nowrap;
}

.team-worklog-table td {
  padding: 10px;
  border-bottom: 1px solid #ebedf0;
  vertical-align: middle;
}

.team-worklog-table tr:hover {
  background: #fafbfc;
}

.presence-row-team {
  background: rgba(52, 152, 219, 0.02);
  border-bottom: 1px solid rgba(52, 152, 219, 0.1);
}

.col-team-meta {
  min-width: 260px;
  max-width: 320px;
}

.presence-team-lbl {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #2980b9;
}

.icon-inline-team {
  font-size: 16px;
  color: #3498db;
}

.col-day-presence-val {
  font-size: 11px;
  font-weight: 600;
  color: #7f8c8d;
  white-space: nowrap;
}

.col-day-presence-val.has-presence {
  color: #27ae60;
  background: rgba(46, 204, 113, 0.03);
}

.team-issue-card {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.team-issue-proj {
  font-size: 9px;
  font-weight: 700;
  color: #95a5a6;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.team-issue-key {
  font-size: 11px;
  font-weight: 700;
  color: #0052cc;
  text-decoration: none;
  width: fit-content;
}

.team-issue-key:hover {
  text-decoration: underline;
}

.team-issue-summary {
  font-size: 12px;
  color: #34495e;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.no-logs-team {
  text-align: center;
  padding: 24px;
  color: #bdc3c7;
  font-style: italic;
}

/* ── Grouping by Function ── */
.team-group-section {
  margin-bottom: 25px;
}

.team-group-header {
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 15px 0 10px 5px;
  padding-left: 8px;
  border-left: 3px solid #3498db;
}

/* ── JIRA Board Header inside Table ── */
.board-header-row-team {
  background: rgba(244, 246, 248, 0.4);
}

.col-board-title-cell {
  padding: 6px 10px !important;
  border-bottom: 1px solid #ebedf0;
}

.board-title-team-lbl {
  font-size: 10px;
  font-weight: 800;
  color: #7f8c8d;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

/* Centering N/A desk presence cell */
.col-day-presence-val.is-na {
  text-align: center;
  color: #bdc3c7;
  font-weight: 500;
}

/* ── Active Boards Quick View Summary Tags ── */
.boards-col-summary {
  flex: 1.5;
  min-width: 180px;
}

.board-summary-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.board-summary-tag {
  display: inline-flex;
  align-items: center;
  background: rgba(240, 243, 246, 0.75);
  border: 1px solid #e1e8ed;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.tag-board-name {
  padding: 3px 8px;
  color: #576574;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tag-board-hours {
  background: #34495e;
  color: #ffffff;
  padding: 3px 6px;
  font-weight: 800;
}

/* ── Today's Check-in/out Tag ── */
.member-name-row-team {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-today-presence-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 204, 113, 0.08);
  border: 1px solid rgba(46, 204, 113, 0.2);
  color: #27ae60;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  height: 18px;
}

.icon-today-presence {
  font-size: 12px !important;
  vertical-align: middle;
}

/* ── JIRA Issues Status Column in Team Widget ── */
.col-status-team-hdr {
  background: #f4f6f8;
  padding: 10px;
  font-weight: 700;
  color: #7f8c8d;
  text-transform: uppercase;
  font-size: 10px;
  border-bottom: 2px solid #ebedf0;
  white-space: nowrap;
  width: 90px;
}

.col-status-team-cell {
  padding: 10px;
  border-bottom: 1px solid #ebedf0;
  vertical-align: middle;
  width: 90px;
}

.col-status-team-cell.is-na {
  text-align: center;
  color: #bdc3c7;
  font-weight: 500;
}

/* ── Team Visibility Toolbar ── */
.team-visibility-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 16px;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-grow: 0;
  flex-shrink: 0;
}

.toolbar-icon {
  font-size: 16px !important;
  color: #94a3b8;
}

.toolbar-toggles {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #64748b;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.toggle-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #334155;
}

.toggle-btn.active {
  background: #34495e;
  border-color: #34495e;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(52, 73, 94, 0.2);
}

.toggle-btn.active .icon-toggle {
  color: #ffffff !important;
}

.icon-toggle {
  font-size: 14px !important;
}

/* ── Time-off Warning Styles ── */
.timeoff-col-summary {
  flex: 0 0 100%;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
  margin-top: 4px;
}

.timeoff-summary-tags {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}

.timeoff-summary-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  width: fit-content;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.timeoff-summary-tag.vacation {
  background: rgba(235, 152, 78, 0.08);
  border: 1px solid rgba(235, 152, 78, 0.2);
  color: #d35400;
}

.timeoff-summary-tag.holiday {
  background: rgba(155, 89, 182, 0.08);
  border: 1px solid rgba(155, 89, 182, 0.2);
  color: #8e44ad;
}

.icon-timeoff-tag {
  font-size: 12px !important;
}

.tag-timeoff-name {
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tag-timeoff-date {
  font-weight: 800;
  opacity: 0.9;
}

.timeoff-no-warn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 10px;
  font-weight: 600;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 4px 8px;
  border-radius: 6px;
  margin-top: 6px;
  width: fit-content;
}

.icon-timeoff-ok {
  font-size: 12px !important;
  color: #27ae60;
}

/* Override .member-metrics display grid to enable wrapping & exact row placements */
.member-metrics {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
}

.hours-metric-col {
  flex: 0 0 calc(80% - 10px) !important;
  min-width: 0 !important;
}

.checkin-metric-col {
  flex: 0 0 calc(20% - 10px) !important;
  min-width: 0 !important;
}

@media screen and (max-width: 768px) {
  .hours-metric-col {
    flex: 0 0 100% !important;
  }

  .checkin-metric-col {
    flex: 0 0 100% !important;
  }
}

.boards-col-summary {
  flex: 0 0 100% !important;
  width: 100% !important;
  border-top: 1px dashed #e2e8f0;
  padding-top: 12px;
  margin-top: 4px;
}

/* Today Time-off Warning Tag beside User Name in List */
.member-today-timeoff-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  margin-right: 8px;
  letter-spacing: 0.2px;
  border: 1px solid transparent;
}

.member-today-timeoff-tag.vacation {
  background: rgba(235, 152, 78, 0.08);
  border-color: rgba(235, 152, 78, 0.2);
  color: #d35400;
}

.member-today-timeoff-tag.holiday {
  background: rgba(155, 89, 182, 0.08);
  border-color: rgba(155, 89, 182, 0.2);
  color: #8e44ad;
}

.icon-today-timeoff {
  font-size: 12px !important;
  vertical-align: middle;
}

.mays-access-header {
  padding: 40px 0 20px 0;
  text-align: left;
}

@media screen and (max-width: 767px) {
  .mays-access-header {
    padding: 10px 0 10px 0;
  }
}

.mays-access-header .title {
  display: flex;
  align-items: center;
}

.mays-access-header .logotype {
  width: 190px;
  height: 80px;
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
  flex-grow: 0;
  flex-shrink: 0;
}

@media screen and (max-width: 767px) {
  .mays-access-header .logotype {
    width: 150px;
    height: 60px;
  }
}

.mays-access-header h1 {
  padding-top: 20px;
  font-size: 5.2rem;
  font-weight: 300;
  color: #f05200;
  font-size: 3.1rem;
  font-weight: bold;
  margin-left: 20px;
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #000;
}

@media screen and (max-width: 767px) {
  .mays-access-header h1 {
    font-size: 2.8rem;
    margin-left: 15px;
    margin-top: 0px;
    letter-spacing: 2px;
  }
}

/* ── Mays Access Premium Login Screen Styles ── */
.mays-access-login-wrapper {
  display: none;
  /*min-height: 100vh;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;*/
  justify-content: center;
  align-items: center;
  background-color: #383838;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  overflow: hidden;
}

.mays-access-login-wrapper .poly-left {
  background: url(/mays/assets/poly-bottom-left.70583e59.svg) 0 100% no-repeat;
  position: absolute;
  bottom: 0;
  left: 0;
  height: 500px;
  width: 70%;
  z-index: 6;
  pointer-events: none;
  opacity: 0.9;
}

.mays-access-login-wrapper .poly-right-top {
  background: url(/mays/assets/poly-top-right.89788c85.svg) 100% 0% no-repeat;
  position: absolute;
  top: 0;
  right: 0;
  height: 60vh;
  width: 55%;
  z-index: 7;
  opacity: 0.5;
  pointer-events: none;
  opacity: 0.9;
}

.mays-access-login-wrapper .poly-right-bottom {
  background: url(/mays/assets/poly-bottom-right.843bee3a.svg) 100% 100% no-repeat;
  position: absolute;
  bottom: 0;
  right: -50px;
  height: 60vh;
  width: 55%;
  z-index: 8;
  pointer-events: none;
  opacity: 0.9;
}

.mays-access-login-wrapper.active {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #383838;
  position: relative;
  width: 100%;
  height: 100%;
  overflow-y: auto;
}

.mays-access-login-wrapper .logotype {
  width: 190px;
  height: 80px;
  margin: auto;
  background-position: 50% 50%;
  background-size: contain;
  background-repeat: no-repeat;
}

.mays-access-login-wrapper h1.title {
  font-family: "Montserrat", "Arial", "sans-serif";
  font-size: 2.3rem;
  font-weight: bold;
  margin-bottom: 20px;
  margin-left: 6px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #000;
  text-align: center;
  margin-left: -30px;
  margin-right: -30px;
}

.login-card {
  background: white;
  border-radius: 6px;
  width: 390px;
  max-width: 90%;
  min-height: 350px;
  border: solid 1px #d7d7d7;
  padding: 30px 50px;
  position: relative;
  z-index: 20;
}

@keyframes loginFadeIn {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo-icon {
  font-size: 48px !important;
  color: #38bdf8;
  margin-bottom: 12px;
}

.login-card h1 {
  font-family: "League Gothic", sans-serif;
  font-size: 42px;
  letter-spacing: 2px;
  color: #ffffff;
  margin: 0;
  line-height: 1;
}

.login-subtitle {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
  font-weight: 700;
  margin: 6px 0 30px 0;
}

.input-group-premium {
  position: relative;
  margin-bottom: 20px;
}

.login-form .form-label {
  font-size: 1.1rem;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0 0 15px 25px;
  display: block;
}

.input-group-premium input {
  border: solid 1px #d7d7d7;
  height: 40px;
  width: 100%;
  border-radius: 6px !important;
  padding: 0 15px;
  background-color: #fff;
  font-weight: 300;
  color: #333;
  transition: border-color 0.3s linear;
  height: 4.6rem;
  line-height: 4.6rem;
  font-size: 1.5rem;
}

.input-group-premium input:hover,
.input-group-premium input:focus {
  border-color: #333333 !important;
}

.remember-row {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 24px;
}

.remember-label {
  color: #555555;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  user-select: none;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 16px;
}

.remember-label input {
  cursor: pointer;
  width: 16px;
  height: 16px;
  background-color: #fff !important;
  border: solid 1px #888 !important;
  transition: all 0.3s ease;
  accent-color: #555555;
}

.remember-label:hover input {
  border-color: #555555 !important;
}

.login-form .button-group {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.login-btn-premium {
  padding: 0 24px;
  cursor: pointer;
  text-align: center;
  border-radius: 6px;
  font-size: 1rem !important;
  text-transform: uppercase;
  display: inline-block;
  height: 40px;
  line-height: 38px;
  font-weight: 700;
  box-sizing: border-box;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  transition: all 0.3s ease;
  overflow: hidden;
  white-space: nowrap;
  background-color: #f05200;
  border: 1px solid #f05200;
}

.login-btn-premium span {
  color: #fff;
}

.login-btn-premium:hover:not(:disabled) {
  background-color: #fff;
  border-color: #f05200;
}

.login-btn-premium:hover:not(:disabled) span {
  color: #f05200;
}

.login-btn-premium:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.feedback-msg {
  margin-top: 20px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  animation: feedbackSlideIn 0.3s ease;
}

@keyframes feedbackSlideIn {
  0% {
    opacity: 0;
    transform: translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.feedback-msg.success {
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.2);
  color: #2ecc71;
}

.feedback-msg.error {
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: #e74c3c;
}

.feedback-icon {
  font-size: 18px !important;
}

/* ── Widget Warning Overlay ──────────────────── */
.status-with-warn {
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-warn-icon {
  background: none;
  border: none;
  cursor: pointer;
  color: #f59e0b;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  border-radius: 4px;
  transition:
    color 0.2s,
    background 0.2s;
  flex-shrink: 0;
}

.widget-warn-icon:hover {
  color: #d97706;
  background: rgba(245, 158, 11, 0.12);
}

.widget-warn-icon .material-symbols-outlined {
  font-size: 22px;
  animation: warnIconPulse 2s ease-in-out infinite;
}

@keyframes warnIconPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.65;
    transform: scale(0.9);
  }
}

.widget-warning-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  border-radius: 12px;
  background: rgba(255, 251, 235, 0.95);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}

.widget-warning-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.18);
  max-width: 280px;
}

.warn-overlay-icon {
  font-size: 42px !important;
  color: #f59e0b;
  animation: warnIconPulse 2s ease-in-out infinite;
}

.widget-warning-card p {
  font-size: 14px;
  font-weight: 600;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

/* ── Clickable Status Badge ───────────────────── */
.clickable-status {
  cursor: pointer;
  transition:
    filter 0.15s,
    transform 0.15s;
}

.clickable-status:hover {
  filter: brightness(0.88);
  transform: scale(1.06);
}

/* ── Issue Transition Popup ──────────────────── */
.transition-popup {
  width: 380px;
}

.transition-issue-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 20px;
}

.issue-key-label {
  font-weight: 800;
  font-size: 13px;
  color: #0052cc;
}

.transition-label {
  font-size: 11px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

.transition-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.transition-btn {
  padding: 8px 16px;
  border-radius: 6px;
  border: 1px solid #ddd;
  background: #f8f9fa;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  color: #444;
}

.transition-btn:hover {
  background: #f05200;
  border-color: #f05200;
  color: #fff;
}

.transition-btn.approved {
  border-color: #b7eb8f;
  color: #389e0d;
  background: #f6ffed;
}

.transition-btn.approved:hover {
  background: #389e0d;
  border-color: #389e0d;
  color: #fff;
}

.transition-btn.waiting {
  border-color: #ffa39e;
  color: #cf1322;
  background: #fff1f0;
}

.transition-btn.waiting:hover {
  background: #cf1322;
  border-color: #cf1322;
  color: #fff;
}

.transition-btn.preapproved {
  border-color: #ffd591;
  color: #d46b08;
  background: #fffbe6;
}

.transition-btn.preapproved:hover {
  background: #d46b08;
  border-color: #d46b08;
  color: #fff;
}

/* ── Games Widget ─────────────────────────── */
.games-detail-view {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.games-brand-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 16px;
  margin-bottom: 10px;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  flex-wrap: wrap;
}

/* Summary strip */
.games-summary-strip {
  display: flex;
  gap: 12px;
}

.games-stat-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 8px;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  min-width: 0;
}

.games-stat-chip .chip-value {
  font-size: 22px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.games-stat-chip .chip-label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 4px;
  text-align: center;
}

/* Section */
.games-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  margin-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.games-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 2px;
}

.games-section-title .section-subtitle {
  font-weight: 500;
  color: #aaa;
  text-transform: none;
  letter-spacing: 0;
}

/* Phase bars */
.phase-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.phase-bar-row {
  display: grid;
  grid-template-columns: 10px 120px 1fr 28px;
  align-items: center;
  gap: 8px;
}

.phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phase-name {
  font-size: 12px;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
}

.phase-bar-track {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.phase-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.phase-count {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-align: right;
}

/* Phase color variants */
.phase-dot.phase-concept,
.phase-bar-fill.phase-concept {
  background: #6366f1;
}
.phase-dot.phase-prototype,
.phase-bar-fill.phase-prototype {
  background: #8b5cf6;
}
.phase-dot.phase-art,
.phase-bar-fill.phase-art {
  background: #f59e0b;
}
.phase-dot.phase-dev,
.phase-bar-fill.phase-dev {
  background: #10b981;
}
.phase-dot.phase-live,
.phase-bar-fill.phase-live {
  background: #f05200;
}

/* Releases bars */
.releases-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.release-bar-row {
  display: grid;
  grid-template-columns: 44px 1fr 28px;
  align-items: center;
  gap: 8px;
}

.release-year {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  white-space: nowrap;
}

.release-bar-track {
  height: 8px;
  background: #f0f0f0;
  border-radius: 4px;
  overflow: hidden;
}

.release-bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 4px;
  transition: width 0.4s ease;
}

.release-count {
  font-size: 12px;
  font-weight: 700;
  color: #555;
  text-align: right;
}

/* Top games list */
.top-games-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.top-game-row {
  display: grid;
  grid-template-columns: 28px 1fr 26px 80px 52px;
  align-items: center;
  gap: 8px;
}

.top-game-rank {
  font-size: 11px;
  font-weight: 800;
  color: #bbb;
  text-align: right;
  flex-shrink: 0;
}

.top-game-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-pill {
  font-size: 9px;
  font-weight: 800;
  padding: 2px 5px;
  border-radius: 4px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}

.brand-pill.massive {
  background: #dbeafe;
  color: #1d4ed8;
}

.brand-pill.knucklehead {
  background: #fef3c7;
  color: #b45309;
}

.top-game-bar-track {
  height: 6px;
  background: #f0f0f0;
  border-radius: 3px;
  overflow: hidden;
}

.top-game-bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.top-game-bar-fill.massive {
  background: #3b82f6;
}
.top-game-bar-fill.knucklehead {
  background: #f59e0b;
}

.top-game-plays {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-align: right;
  white-space: nowrap;
}

/* ── Infrastructure Widget ────────────────────────── */
.infra-detail-view {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.infra-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  margin-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.infra-section-title {
  font-size: 11px;
  font-weight: 800;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin: 0 0 2px;
}

.infra-section-sub {
  font-weight: 500;
  color: #aaa;
  text-transform: none;
  letter-spacing: 0;
}

/* Server Health */
.server-health-bar {
  display: flex;
  align-items: center;
  gap: 0;
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  padding: 12px 20px;
}

.server-health-item {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  justify-content: center;
}

.server-health-divider {
  width: 1px;
  height: 28px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.server-health-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  flex-shrink: 0;
}

.server-health-dot.ok {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}
.server-health-dot.warning {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.server-health-dot.error {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.server-health-count {
  font-size: 20px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.server-health-label {
  font-size: 11px;
  font-weight: 600;
  color: #888;
}

.server-issues-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.server-issue-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s;
}

.server-issue-row.warning {
  background: #fffbeb;
  border-color: #fde68a;
}

.server-issue-row.error {
  background: #fff5f5;
  border-color: #fecaca;
}

.server-issue-row:hover {
  filter: brightness(0.97);
}

.server-issue-row .issue-icon {
  font-size: 16px !important;
  flex-shrink: 0;
}

.server-issue-row.warning .issue-icon {
  color: #f59e0b;
}
.server-issue-row.error .issue-icon {
  color: #ef4444;
}

.issue-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.issue-name {
  font-size: 12px;
  font-weight: 600;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.issue-reason {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.issue-type-pill {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e2e8f0;
  color: #475569;
  flex-shrink: 0;
}

.server-all-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #22c55e;
  padding: 8px 0;
}

.server-all-ok .material-symbols-outlined {
  font-size: 18px !important;
}

/* Infra stat grid (reports / stress tests) */
.infra-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.infra-stat-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 6px;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  background: #fafafa;
}

.infra-stat-box.running {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.infra-stat-box.waiting {
  background: #fffbeb;
  border-color: #fde68a;
}

.infra-stat-box.done {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.infra-stat-box.error {
  background: #fff5f5;
  border-color: #fecaca;
}

.infra-stat-value {
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  color: #111;
}

.infra-stat-box.running .infra-stat-value {
  color: #2563eb;
}
.infra-stat-box.waiting .infra-stat-value {
  color: #d97706;
}
.infra-stat-box.done .infra-stat-value {
  color: #16a34a;
}
.infra-stat-box.error .infra-stat-value {
  color: #dc2626;
}

.infra-stat-label {
  font-size: 10px;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 4px;
  text-align: center;
}

/* Server types grid */
.infra-type-grid {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.infra-type-card {
  flex: 1;
  min-width: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  border: 1px solid #e9ecef;
  border-radius: 10px;
  background: #fafafa;
}

.type-label {
  font-size: 11px;
  font-weight: 800;
  color: #555;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-total-count {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.type-status-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.type-dot-stat {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
}

.type-dot-stat.ok {
  color: #16a34a;
}
.type-dot-stat.warning {
  color: #d97706;
}
.type-dot-stat.error {
  color: #dc2626;
}

.type-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.type-dot.ok {
  background: #22c55e;
}
.type-dot.warning {
  background: #f59e0b;
}
.type-dot.error {
  background: #ef4444;
}

/* ── Global Alerts Indicator ─────────────────────── */
.dashboard-alerts-indicator {
  margin-top: -46px;
  display: flex;
  justify-content: flex-end;
  padding: 0 4px 12px 4px;
}

@media screen and (max-width: 560px) {
  .is-mays-access .dashboard-alerts-indicator {
    margin-top: 0;
  }
}

.alerts-global-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff8ec;
  border: 1px solid #fcd34d;
  border-radius: 8px;
  padding: 7px 14px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: #92400e;
  transition:
    background 0.2s,
    border-color 0.2s,
    box-shadow 0.2s;
}

.alerts-global-btn:hover {
  background: #fef3c7;
  border-color: #f59e0b;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.18);
}

.alerts-global-btn .material-symbols-outlined {
  font-size: 18px;
  color: #f59e0b;
  animation: warnIconPulse 2s ease-in-out infinite;
}

.alerts-badge {
  background: #f59e0b;
  color: #fff;
  border-radius: 10px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

/* ── Widget Header Warn Icon ─────────────────────── */
.header-warn-icon {
  margin-left: 4px;
}

/* ── Alerts Popup Header Icon ────────────────────── */
.popup-header-icon.warn {
  font-size: 22px !important;
  color: #f59e0b;
}

/* ── Brand Filter Logo Toggles ───────────────────── */
.brand-logo-toggle {
  height: 16px;
  width: 16px;
  display: block;
  object-fit: contain;
  filter: brightness(0) invert(0.5); /* white → mid-grey, visible on light bg */
  transition: filter 0.2s;
}

.toggle-btn.active .brand-logo-toggle {
  filter: brightness(0) invert(1); /* white → white, visible on dark active bg */
}

/* ── Collapsible Section Headers ─────────────────── */
.collapsible-header {
  cursor: pointer;
  display: flex !important;
  align-items: center;
  gap: 4px;
  user-select: none;
}
.collapsible-header:hover {
  opacity: 0.75;
}
.collapse-arrow {
  font-size: 18px;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

/* ── Communications Widget ───────────────────────────────────────── */
.comm-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 8px;
}

.comm-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.comm-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.comm-read-btn {
  height: 38px !important;
  line-height: 36px !important;
}

.comm-info {
  flex: 1;
  min-width: 0;
}

.comm-title {
  font-size: 13px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.comm-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.comm-date {
  font-size: 11px;
  opacity: 0.55;
}

.comm-scope-tag {
  flex-shrink: 0;
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.comm-scope-tag.company {
  background: #e0e7ff;
  color: #4338ca;
}

.comm-scope-tag.dept {
  background: #fef3c7;
  color: #92400e;
}

.comm-badge {
  flex-shrink: 0;
  border-radius: 10px;
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
}

.comm-badge.unread {
  background: #ef4444;
  color: #fff;
}

.comm-badge.read {
  background: #f59e0b;
  color: #fff;
}

.comm-badge.signed {
  background: #22c55e;
  color: #fff;
}

/* ── Communications Popup ────────────────────────────────────────── */
.comm-description {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.comm-description p,
.comm-description ul {
  margin-bottom: 8px;
}

.comm-description ul {
  padding-left: 20px;
}

.comm-ack-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #22c55e;
  font-size: 13px;
  font-weight: 600;
}

.comm-ack-status .material-symbols-outlined {
  font-size: 18px;
}
