* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Core Sans Light";
  src: url("../fonts/core-sans-c-35-light.woff2") format("woff2"),
    url("../fonts/core-sans-c-35-light.woff") format("woff"),
    url("../fonts/core-sans-c-35-light.eot") format("embedded-opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-muted: #f3f4f7;
  --border: #e3e7ef;
  --text: #1f2933;
  --text-muted: #6b7280;
  --accent: #29AAE1;
  --accent-dark: #1f8fc0;
  --accent-soft: #e6f6fc;
  --accent-shadow: rgba(41, 170, 225, 0.35);
  --accent-shadow-soft: rgba(41, 170, 225, 0.18);
  --accent-shadow: rgba(41, 170, 225, 0.35);
  --accent-shadow-soft: rgba(41, 170, 225, 0.18);
  --accent-dark: #1f8fc0;
  --accent-soft: #e6f6fc;
  --dark: #2f343a;
  --dark-hover: #24282d;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow: 0 16px 32px rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
}

body {
  font-family: "Core Sans Light", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.45;
  margin: 0;
  background-color: var(--bg);
  color: var(--text);
}

.login-page {
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.1), transparent),
    #f5f7fb;
}

.login-card {
  background: #fff;
  padding: 2rem;
  border-radius: 14px;
  width: min(380px, 92vw);
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.15);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-card__subtitle {
  margin: 0;
  color: #4b5563;
  font-size: 0.95rem;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.login-form label {
  font-weight: 500;
  color: #374151;
}

.login-form input {
  padding: 0.55rem 0.6rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 0.95rem;
}

.login-form__submit {
  margin-top: 0.75rem;
}

.login-error {
  padding: 0.85rem;
  border-radius: 8px;
  background-color: #fee4e2;
  color: #b42318;
  font-weight: 500;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  background: rgb(252, 252, 252);
}

.sidebar {
  width: 255px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 0 1.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: width 0.2s ease;
}

.sidebar__brand {
  height: 127px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 15px 0.5rem 0;
}

.sidebar__brand-logo {
  width: 140px;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar__brand-text {
  line-height: 1;
}

.sidebar__brand-mark {
  display: none;
  font-size: 1.1rem;
  font-weight: 700;
}

.sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.sidebar__divider {
  height: 1px;
  background: var(--border);
  margin: 0.75rem 0;
}

.sidebar__link {
  text-decoration: none;
  color: #393939;
  font-weight: 500;
  padding: 0.6rem 0.85rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  font-size: 15px;
}

.sidebar__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #393939;
}

.sidebar__icon svg {
  width: 18px;
  height: 18px;
}

.sidebar__link:hover {
  background: #f0f0f0;
}

.sidebar__link--active {
  background: #f0f0f0;
  color: #1f2933;
}

.sidebar__item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.sidebar__parent {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 15px;
  font-weight: 500;
  color: #393939;
  position: relative;
}

.sidebar__caret {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
  transition: transform 0.2s ease;
}

.sidebar__item--open .sidebar__caret {
  transform: rotate(90deg);
}

.sidebar__submenu {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 1.9rem;
}

.sidebar__item--open .sidebar__parent {
  background: #f0f0f0;
}

.sidebar__item--open .sidebar__submenu {
  display: flex;
}

.app-shell--collapsed .sidebar__caret {
  display: none;
}

.app-shell--collapsed #nav-settings:hover .sidebar__parent::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: #3a3a3a;
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  z-index: 5;
}

.app-shell--collapsed #nav-settings:hover .sidebar__submenu {
  display: flex;
  position: absolute;
  left: calc(100% + 12px);
  top: 44px;
  background: #fff;
  padding: 0.65rem;
  border-radius: 12px;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  min-width: 170px;
  z-index: 4;
}

.app-shell--collapsed #nav-settings .sidebar__submenu:hover {
  display: flex;
}

.app-shell--collapsed #nav-settings::after {
  content: "";
  position: absolute;
  left: 100%;
  top: 0;
  width: 16px;
  height: 100%;
}

.app-shell--collapsed #nav-settings::before {
  content: "";
  position: absolute;
  left: calc(100% + 12px);
  top: 32px;
  width: 190px;
  height: 24px;
}

.app-shell--collapsed #nav-settings .sidebar__submenu {
  padding-left: 0;
}

.sidebar__sublink {
  text-decoration: none;
  color: #393939;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 15px;
}

.sidebar__sublink:hover {
  background: #f0f0f0;
}

.sidebar__sublink--active {
  background: #f0f0f0;
  font-weight: 500;
}


.app-shell--collapsed .sidebar {
  width: 50px;
  padding: 0.5rem 0.4rem 1.75rem;
}

.app-shell--collapsed .form-card--floating {
  left: calc(50px + 2rem);
  right: 2rem;
  width: auto;
}

.app-shell--collapsed .sidebar__brand-text {
  display: none;
}

.app-shell--collapsed .sidebar__brand-logo {
  display: none;
}

.app-shell--collapsed .sidebar__brand-mark {
  display: none;
}

.app-shell--collapsed .sidebar__brand {
  height: 0;
  padding: 0;
  margin: 0;
}

.app-shell--collapsed .sidebar__link {
  justify-content: center;
  padding: 0.6rem;
}

.app-shell--collapsed .sidebar__link:first-of-type {
  margin-top: 2.5rem;
}

.app-shell--collapsed .sidebar__text {
  display: none;
}

.app-shell--collapsed .sidebar__item {
  align-items: center;
}

.app-shell--collapsed .sidebar__parent {
  justify-content: center;
  padding: 0.6rem;
}

.app-shell--collapsed .sidebar__submenu {
  display: none;
}

.app-shell--collapsed .sidebar__link::after {
  content: attr(data-label);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(-6px);
  background: #2f343a;
  color: #fff;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
  font-size: 0.85rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.15);
}

.app-shell--collapsed .sidebar__link:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.app-shell--collapsed .topbar {
  margin-left: -50px;
  width: calc(100% + 50px);
  padding-left: calc(2rem + 50px);
}

.app-shell--collapsed .topbar__toggle {
  left: 16px;
}

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1300;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  height: 50px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.topbar__toggle {
  position: absolute;
  left: -15px;
  width: 30px;
  height: 30px;
  border-radius: 20px;
  border: 1px solid #f0f0f0;
  background: #fff;
  color: #2b2e33;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.08);
}

.topbar__toggle svg {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.app-shell--collapsed .topbar__toggle svg {
  transform: rotate(0deg);
}

.topbar__title {
  display: none;
  font-size: 1.15rem;
  font-weight: 500;
  color: #2c2f33;
}

.topbar__banner {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #fff4d6;
  color: #7a5a00;
  font-size: 0.85rem;
  font-weight: 500;
  max-width: 520px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar__banner.is-hidden {
  display: none;
}

.topbar__banner-link {
  color: inherit;
  text-decoration: underline;
  font-weight: 500;
}

.topbar__banner-link.is-hidden {
  display: none;
}
.topbar__db {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 0.85rem;
  font-weight: 500;
}


.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.notification-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.notification-menu.is-hidden {
  display: none;
}

.notification-menu__button {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  color: #2f343a;
  cursor: pointer;
}

.notification-menu__button:hover,
.notification-menu__button:focus-visible {
  background: #f0f0f0;
  outline: none;
}

.notification-menu__badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 999px;
  background: #45b35f;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.notification-menu__badge.is-hidden {
  display: none;
}

.notification-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  width: 320px;
  max-height: 360px;
  overflow: auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  z-index: 1200;
  padding: 0.75rem 0;
}

.notification-menu__dropdown.is-hidden {
  display: none;
}

.notification-menu__header {
  padding: 0.2rem 1rem 0.6rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #59606a;
  border-bottom: 1px solid #edf0f5;
  margin-bottom: 0.5rem;
}

.notification-menu__list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0.5rem;
}

.notification-menu__item {
  text-decoration: none;
  color: #2c2f33;
  background: #f8f9fb;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-size: 0.9rem;
  line-height: 1.3;
}

.notification-menu__item:hover,
.notification-menu__item:focus-visible {
  background: #eef3f8;
}

.notification-menu__empty {
  padding: 0.75rem 0.85rem;
  color: #8b929c;
  font-size: 0.9rem;
}

.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  z-index: 2000;
}

.loading-overlay.is-hidden {
  display: none;
}

.loading-overlay__spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(69, 179, 95, 0.35);
  border-top-color: #45b35f;
  animation: spinner 0.7s linear infinite;
}

.loading-overlay__text {
  font-size: 0.95rem;
  color: #2f343a;
}

.org-switch {
  display: none;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-switch__button {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  color: #2f343a;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch__button:hover,
.lang-switch__button:focus-visible {
  background: #f0f0f0;
  outline: none;
}

.lang-switch__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0.35rem 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
  z-index: 1000;
}

.lang-switch__dropdown.is-hidden {
  display: none;
}

.lang-switch__item {
  width: 100%;
  border: none;
  background: transparent;
  color: #2f343a;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  text-align: left;
  cursor: pointer;
}

.lang-switch__item:hover,
.lang-switch__item:focus-visible {
  background: #f7f8fb;
  outline: none;
}

.user-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding-bottom: 0;
}

.user-menu__button {
  border: none;
  background: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  color: #2f343a;
  font-weight: 500;
  padding: 0.35rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.user-menu__button:hover,
.user-menu__button:focus-visible {
  background: transparent;
  outline: none;
}

.user-menu__button i.fa-user {
  font-size: 1rem;
  color: #2f343a;
}

.user-menu__org {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.user-menu__dropdown {
  position: absolute;
  right: 0;
  top: calc(100% - 5px);
  margin-top: 0;
  min-width: 240px;
  background: #2e3036;
  color: #fff;
  border-radius: 12px;
  padding: 0.5rem 0;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
  z-index: 1000;
}

.user-menu__dropdown {
  display: none;
}

.user-menu:hover .user-menu__dropdown,
.user-menu:hover .user-menu__dropdown.is-hidden,
.user-menu__dropdown:hover {
  display: block !important;
}

.user-menu__item {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  text-align: left;
  cursor: pointer;
}

.user-menu__item:hover,
.user-menu__item:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.user-menu__item i {
  width: 18px;
  text-align: left;
}

.page {
  width: 100%;
  padding: 1.75rem 2rem 3rem;
}

.top-nav {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e3e7ef;
  position: sticky;
  top: 0;
  z-index: 1400;
}

.top-nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-nav__brand {
  font-weight: 700;
  color: #1f2933;
}

.top-nav__links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.top-nav__org {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.top-nav__org-label {
  font-size: 0.85rem;
  color: #6b7280;
  font-weight: 500;
}

.top-nav__org select {
  border: 1px solid #cfd6dc;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.9rem;
  background: #fff;
}

.top-nav__link {
  text-decoration: none;
  color: #4b5563;
  font-weight: 500;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
}

.top-nav__link--active {
  color: #1d4ed8;
  background: #e9efff;
}

.env-indicator {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #facc15;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, 0.2);
  z-index: 2000;
  animation: env-blink 2.8s ease-in-out infinite;
}

@keyframes env-blink {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
}

.form-wrapper {
  width: 100%;
  padding: 0 0 1.5rem;
  display: flex;
  justify-content: stretch;
}

.form-spacer {
  height: 0;
}

.form-card {
  width: 100%;
  background: var(--surface);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}

.form-card--floating {
  position: fixed;
  left: calc(255px + 2rem);
  right: 2rem;
  transform: none;
  width: auto;
  z-index: 1600;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
  transition: top 0.2s ease, box-shadow 0.2s ease;
}

.data-wrapper {
  width: 100%;
  padding: 0 0 2.5rem;
}

.invoice-detail-wrapper {
  position: relative;
}

.data-wrapper--tight {
  padding-bottom: 0.75rem;
}

h1,
h2 {
  color: #23272f;
  margin-top: 0;
}

h1 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  font-weight: 500;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid--primary {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.form-grid--date-rate {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.hide-costs .form-grid--date-rate {
  grid-template-columns: 1fr;
}

.form-grid--left {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-content: start;
}

.form-grid--details {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  align-items: stretch;
}

.form-grid--description {
  align-self: stretch;
}

.form-grid--left {
  align-self: stretch;
}

.form-grid--right {
  display: flex;
  flex-direction: column;
  align-self: stretch;
}

.form-grid--right .form-actions {
  margin-top: auto;
}

.form-grid--right {
  gap: 0.5rem;
  align-content: start;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-field label {
  font-weight: 600;
  font-size: 0.9rem;
}

.form-field input,
.form-field textarea {
  padding: 0.6rem 0.7rem;
  border: 1px solid #d7dce3;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
}

.form-field textarea {
  resize: vertical;
  min-height: 0;
  height: 100%;
}

.form-field__input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.form-field__input-row input {
  flex: 1 1 auto;
}
.form-field--combo {
  position: relative;
}

.combo__list {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 30;
}

.combo__item {
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.6rem;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.combo__item:hover,
.combo__item:focus {
  background: #eef2ff;
  outline: none;
}

.combo__item--empty {
  cursor: default;
  color: #6b7280;
}

.form-hint {
  font-size: 0.85rem;
  color: #6b7280;
}

.form-hint--warning {
  color: #b91c1c;
}

.form-field__input--warning {
  border-color: #f59e0b;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
}

.form-field--description {
  display: flex;
  flex-direction: column;
  flex: 1;
}


select {
  padding: 0.5rem 0.7rem;
  border: 1px solid #d7dce3;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
}

.time-logs__rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.time-log-header {
  display: grid;
  grid-template-columns: repeat(3, 68px) 26px;
  gap: 0.5rem;
  align-items: end;
}

.time-log-header__label {
  font-weight: 600;
  font-size: 0.85rem;
}


.time-log-header.time-log--units {
  grid-template-columns: repeat(3, 68px) 80px 26px;
}

.time-log-row.time-log--units {
  grid-template-columns: repeat(3, 68px) 80px 26px;
}

.time-log-row input[type="text"] {
  width: 68px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.time-log-row {
  display: grid;
  grid-template-columns: repeat(3, 68px) 26px;
  gap: 0.5rem;
  align-items: center;
}


.time-log-row__unit {
  display: flex;
  align-items: center;
  justify-content: center;
}

.time-log-row__unit input {
  width: 16px;
  height: 16px;
}

.time-log-row__unit select {
  width: 80px;
  padding: 0.6rem 0.7rem;
  border: 1px solid #d7dce3;
  border-radius: 10px;
  background: #fff;
  font-size: 0.95rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  text-align: left !important;
  height: auto;
  line-height: normal;
}
.time-log-row__total-control {
  display: flex;
}

.time-log-row__remove-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
}

.add-time-log-button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: var(--accent);
  color: #fff;
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0px 5px var(--accent-shadow);
}

.add-time-log-button span {
  display: inline-block;
  line-height: 1;
}

.add-time-log-button:hover {
  background-color: var(--accent-dark);
}

.add-time-log-button--full {
  width: 100%;
  height: auto;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 0.5rem;
  box-shadow: 0 2px 10px var(--accent-shadow-soft);
  margin-top: 0.75rem;
}

.add-time-log-button--full span {
  line-height: 1.2;
}

.row-remove-button {
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: none;
  background-color: transparent;
  color: #c0392b;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  padding: 0;
}

.time-log-row__remove {
  width: 22px;
  height: 22px;
  border-radius: 0;
  border: none;
  background-color: transparent;
  color: #c0392b;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  padding: 0;
}

.row-remove-button:hover {
  color: #a83226;
}

.time-log-row__remove:hover {
  color: #a83226;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
}

.cancel-button {
  background-color: #eff1f4;
  color: #2f343a;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.cancel-button:hover {
  background-color: #e3e6ea;
}

.submit-button {
  background-color: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background-color 0.2s ease;
}

.submit-button:hover {
  background-color: var(--accent-dark);
}

.logout-button {
  border: 1px solid #d8dde6;
  border-radius: 999px;
  background-color: #fff;
  color: #2f343a;
  padding: 0.45rem 1.3rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.logout-button:hover {
  background-color: #f1f3f6;
  color: #20242a;
}

.btn-primary,
.primary-button,
.submit-button,
.secondary-button,
.btn-secondary,
.secondary-button--success {
  box-shadow: 3px 3px 5px var(--accent-shadow-soft);

  border-radius: 10px;
  padding: 0.5rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  height: 38px;
  transition: background-color 0.2s ease;
}

.btn-primary {

  background-color: var(--accent);
  color: #fff;
  text-decoration: none;
}

.btn-primary:hover,
.primary-button:hover,
.submit-button:hover {

  background-color: var(--accent-dark);
}

.is-loading {
  position: relative;
  pointer-events: none;
  color: transparent !important;
}

.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: spinner 0.6s linear infinite;
}

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

.btn-secondary,
.secondary-button {
  box-shadow: 3px 3px 5px rgba(15, 23, 42, 0.12);

  background-color: var(--dark);
  color: #fff;
}

.btn-secondary:hover,
.secondary-button:hover {

  background-color: var(--dark-hover);
}

.secondary-button--success {
  background-color: var(--accent);
}

.secondary-button--success:hover {
  background-color: var(--accent-dark);
}

.secondary-button--danger {
  background-color: #c0392b;
}

.secondary-button--danger:hover {
  background-color: #a93226;
}

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

.selection-banner {
  position: fixed;
  left: 50%;
  bottom: 2rem;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  padding: 1.25rem 2rem;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  z-index: 1500;
}

.selection-banner p {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.selection-banner__total {
  font-size: 0.95rem;
  font-weight: 500;
  opacity: 0.85;
}

.selection-banner__warning {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #fca5a5;
}

.selection-banner__actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

.selection-banner__actions button {
  width: 220px;
}

.summary-title-mobile {
  display: none;
}

.data-table-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.invoice-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.invoice-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.invoice-card__title {
  font-weight: 500;
  color: #111827;
}

.invoice-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.invoice-card__pair {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.invoice-card__label {
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.invoice-card__value {
  font-weight: 500;
  color: #111827;
}

.invoice-card__value--muted {
  font-weight: 400;
  color: #374151;
}

.invoice-card__field {
  flex: 1 1 0;
}

.invoice-card__field--full {
  flex-basis: 100%;
}

.invoice-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.discount-lines {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.discount-line {
  display: grid;
  grid-template-columns: 1fr 140px 40px;
  gap: 0.6rem;
  align-items: center;
}

.discount-line__remove {
  border: none;
  background: none;
  color: #6b7280;
  cursor: pointer;
  font-size: 0.9rem;
}

.discount-line__remove:hover {
  color: #111827;
}

.discount-lines__add {
  align-self: flex-start;
}

.entries-cards {
  display: none;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}

.entry-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.entry-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.entry-card__header-title {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.entry-card__date {
  font-weight: 500;
  color: #111827;
}

.entry-card__select {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #4b5563;
}

.entry-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.entry-card__pair {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.entry-card__field {
  flex: 1 1 0;
}

.entry-card__field--full {
  flex: 1 1 100%;
}

.entry-card__label {
  display: block;
  font-size: 0.8rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.entry-card__value {
  font-weight: 500;
  color: #111827;
}

.entry-card__value--muted {
  font-weight: 400;
  color: #374151;
}

.entry-card__logs {
  border-top: 1px solid #e5e9f2;
  padding-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.entry-card__logs .entry-card__label {
  margin-bottom: 0.2rem;
}

.entry-card__log {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #111827;
}

.entry-card__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}

.entry-card__actions .icon-button {
  width: 34px;
  height: 34px;
}

.page-footer {
  width: 100%;
  padding: 2rem 0 2.5rem;
  display: flex;
  justify-content: center;
}

.page-footer .logout-button {
  min-width: 200px;
}

.data-card {
  background: var(--surface);
  padding: 10px 1.4rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-bottom: 2rem;
  width: 100%;
  position: relative;
}

.entries.data-card {
  padding: 0;
}

.card--table .card-header {
  padding: 1rem;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.card-header__left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.card-header__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.card--table .card-body {
  position: relative;
  padding: 0;
}

.card--table .entries-empty {
  padding: 1rem 1.4rem 1.4rem;
}

.card--table .card-footer {
  padding: 1rem;
}


.invoices.data-card {
  padding: 0;
}

.invoices.data-card h3 {
  margin: 0;
  padding: 1.4rem 1.4rem 1rem;
}
.companies-page__header {
  margin-bottom: 1.5rem;
}

.companies-page__header p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.companies-page__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.settings-page__header {
  margin-bottom: 1.5rem;
}

.settings-page__header p {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
}

.settings-page__header--split {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.page-toast {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 800px;
  width: min(800px, 92vw);
  padding: 0.65rem 0.85rem;
  text-align: center;
  border-radius: 10px;
  background: #e7f7ec;
  color: #0f5132;
  border: 1px solid #b7e4c7;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  z-index: 2200;
}

.settings-tabs {
  display: flex;
  gap: 1.5rem;
  padding: 0 1.4rem;
  margin: 0 0 1.2rem;
  border-bottom: 1px solid #e5e7eb;
}

.settings-tab {
  border: none;
  background: transparent;
  padding: 0.4rem 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.settings-tab.is-active {
  color: #111827;
  border-bottom-color: #22c55e;
}

.settings-tab-panel {
  display: none;
}

.settings-tab-panel.is-active {
  display: block;
}

.settings-company-title {
  margin: 0 0 1.1rem;
  font-size: 1.35rem;
  font-weight: 500;
  color: #111827;
}

.settings-company-info {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.settings-company-info__row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.settings-company-info__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: #111827;
}


.settings-company-info__value {
  font-size: 0.95rem;
  color: #374151;
}

.settings-company-info__input-wrap {
  position: relative;
}


.settings-worklog-units {
  display: grid;
  gap: 0.6rem;
  max-width: calc(240px + 90px + 34px + 1.2rem);
}

.settings-worklog-units.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.worklog-unit-row {
  display: grid;
  grid-template-columns: minmax(0, 240px) 90px 34px;
  gap: 0.6rem;
  align-items: center;
}

.worklog-unit-row input {
  width: 100%;
}

.worklog-unit-row__short {
  text-transform: uppercase;
  text-align: center;
}

.worklog-unit-row__remove {
  border: none;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
  font-size: 1rem;
}

.worklog-unit-row__remove:hover {
  color: #111827;
}


.settings-worklog-units__labels {
  display: grid;
  grid-template-columns: minmax(0, 240px) 90px 34px;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
}


#worklog-unit-add {
  margin-top: 0.6rem;
  width: calc(240px + 90px + 34px + 1.2rem);
}
.settings-company-info__input {
  width: 100%;
  padding: 0.55rem 2.25rem 0.55rem 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  font-size: 0.95rem;
  color: #374151;
}

.settings-company-info__input:read-only {
  background: #fff;
}

.field-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  z-index: 2;
}

.field-loading.is-hidden {
  display: none;
}

.settings-company-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.subscription-section {
  margin-bottom: 1.6rem;
}

.subscription-section__title {
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
  margin-bottom: 0.8rem;
}

.subscription-plans,
.subscription-addons {
  display: grid;
  gap: 0.75rem;
}

.subscription-addons--highlight .subscription-addon {
  border-color: #45b35f;
  box-shadow: 0 0 0 3px rgba(69, 179, 95, 0.2);
  animation: subscriptionHighlight 1.6s ease;
}

@keyframes subscriptionHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(69, 179, 95, 0.35);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(69, 179, 95, 0);
  }
}

.subscription-plan,
.subscription-addon {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  align-items: flex-start;
  cursor: pointer;
}

.subscription-plan input,
.subscription-addon input {
  margin-top: 0.2rem;
}

.subscription-plan__title,
.subscription-addon__title {
  font-weight: 500;
  color: #111827;
}

.subscription-plan__price {
  font-size: 0.95rem;
  font-weight: 500;
  color: #111827;
  margin-top: 0.25rem;
}

.subscription-plan__desc,
.subscription-addon__desc {
  font-size: 0.9rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.subscription-plan input:checked + .subscription-plan__content,
.subscription-addon input:checked + .subscription-addon__content {
  color: #111827;
}

.subscription-summary {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: #374151;
}

.subscription-summary__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.subscription-summary__total {
  font-weight: 500;
  color: #111827;
}

.admin-section {
  position: relative;
}

.admin-section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.admin-section__header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 500;
}

.admin-section__period {
  font-size: 0.9rem;
  color: #6b7280;
}

.admin-table-wrap {
  padding: 0;
}

.settings-company-info__icon {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #cbd5f5;
  pointer-events: none;
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.page-header--tight {
  margin-bottom: 0.75rem;
}

.page-header__title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  color: #2c3e50;
}

.page-header__crumb {
  font-size: 28px;
}

.page-header__crumb[href] {
  color: inherit;
  text-decoration: none;
}

.page-header__crumb--parent {
  font-weight: 700;
}

.page-header__crumb--child {
  font-weight: 100;
}

.page-header__title i {
  font-size: 0.85rem;
  color: #5abf41;
}

.page-header__actions .btn-primary {

  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 15px;
  font-weight: 500;
  height: 38px;
  padding: 0 1.1rem;
}

.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.settings-page--half {
  max-width: 800px;
  margin-right: auto;
  margin-left: 0;
}

.settings-panel {
  background: transparent;
  border: none;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-table-wrap {
  padding: 0.5rem 0 0;
}

.data-table-toolbar {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 0.5rem;
  gap: 0.75rem;
}

.entries-filter__field--compact {
  gap: 0.4rem;
}

.data-table-toolbar__left,
.data-table-toolbar__right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.data-table-toolbar__right {
  margin-left: auto;
}

.entries-filter__select--compact {
  width: 80px;
  min-width: 80px;
  height: 38px;
  padding: 0 0.5rem;
  border-radius: 8px;
}

#page-size {
  width: 80px;
  min-width: 80px;
}

.companies-table-card {
  padding: 0;
}

.companies-table-card {
  position: relative;
}

.companies-table-card .data-table-toolbar {
  margin-bottom: 0;
  padding: 1.1rem 1.4rem 0.85rem;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}


.companies-table-card .settings-table-wrap {
  padding: 0;
}

.companies-table-card .table {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#customers-table {
  margin-top: 0;
}

.employee-reports-table-card {
  padding: 0;
  position: relative;
}

.employee-reports-table-card .employee-reports-table-toolbar {
  margin-bottom: 0;
  padding: 1.1rem 1.4rem 0.85rem;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

#employee-reports-table {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

#projects-table {
  margin-top: 0;
}

#customer-projects-card {
  padding: 1.4rem 1.4rem 0;
}

#customer-projects-card .settings-table-wrap {
  padding: 0;
  margin: 0 -1.4rem;
}

#customer-projects-card .table {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

#customer-detail-card,
#customer-projects-card,
#project-detail-card {
  position: relative;
}

.card-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  z-index: 4;
  border-radius: var(--radius-lg);
}

.card-loading.is-hidden {
  display: none;
}

.projects-table-card,
.invoices-table-card {
  padding: 0;
}

.projects-table-card,
.invoices-table-card,
.entries.data-card {
  position: relative;
}

.projects-table-card .data-table-toolbar,
.invoices-table-card .data-table-toolbar {
  margin-bottom: 0;
  padding: 1.1rem 1.4rem 0.85rem;
  border-bottom: 1px solid var(--border);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  background: var(--surface);
}

.projects-table-card .data-table-toolbar {
  padding-bottom: 0;
}

.projects-table-card .settings-table-wrap,
.invoices-table-card .settings-table-wrap {
  padding: 0;
}

.projects-table-card .table,
.invoices-table-card .table {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.data-table-pagination {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.data-table-pagination__controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
}

.pagination-button {
  font-weight: 500;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0.2rem 0.35rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.pagination-button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-button--active {
  background: #f0f0f0;
  color: #1f2933;
  font-weight: 500;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none !important;
  background: transparent !important;
  color: inherit !important;
  padding: 0.2rem 0.35rem !important;
  border-radius: 6px !important;
  margin: 0 2px !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: #f0f0f0 !important;
  color: #1f2933 !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
  border: none !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
  padding: 0.5rem 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  line-height: 1.1 !important;
  display: flex !important;
  align-items: center !important;
}

.dataTables_wrapper .dataTables_info {
  float: left !important;
}

.dataTables_wrapper .dataTables_paginate {
  float: right !important;
  justify-content: flex-end !important;
}

.dataTables_wrapper .dataTables_paginate span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.dataTables_wrapper .dataTables_length {
  margin-bottom: 8px;
}

.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 500;
}

.dataTables_wrapper .dataTables_length select,
.dataTables_wrapper .dataTables_filter input {
  height: 38px;
  padding: 0 0.5rem;
  border: 1px solid #d7dce3 !important;
  border-radius: 10px !important;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff !important;
}

.dataTables_wrapper .dataTables_length select {
  width: 60px;
  min-width: 60px;
}

table.dataTable.no-footer {
  border-bottom: none !important;
  margin-bottom: 10px;
}

.dataTables_wrapper .dataTables_paginate,
.dataTables_wrapper .dataTables_paginate * {
  line-height: 1.1 !important;
}

.pagination-ellipsis {
  padding: 0 0.2rem;
}

.table-loading {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  z-index: 3;
  border-radius: var(--radius-lg);
}

.settings-table,
.table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
}

.settings-table thead th,
.table thead th {
  text-align: left;
  padding: 0.9rem 0.75rem;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #1f2933;
  background: #fff;
  border-bottom: 1px solid #e6e6e6;
}

.settings-table tbody td,
.table tbody td {
  padding: 0.85rem 0.75rem;
  border-bottom: 1px solid #eef1f6;
  color: #2f343a;
}

.table tbody tr:nth-child(odd) td {
  background-color: rgba(0, 0, 0, 0.015);
}

.table.clickable-rows tbody tr {
  cursor: pointer;
  transition: box-shadow 0.6s ease, background 0.6s ease;
}

.table.clickable-rows tbody tr:hover td {
  box-shadow: 0 0 5px #e3f6fe;
  background: #e3f6fe;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.table.clickable-rows tbody tr.selected td {
  box-shadow: 0 0 5px #e3f6fe;
  background: #b2e6fc;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

.settings-table__row--link {
  cursor: pointer;
}

.settings-table__row--link:hover {
  background: #f7f8fb;
}

.settings-table__status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.settings-table__check {
  width: 40px;
  text-align: center;
}

.settings-table__check input {
  cursor: pointer;
}

.settings-table__icon-cell {
  text-align: center;
  color: #2f343a;
}

.settings-table__actions {
  width: 1%;
  white-space: nowrap;
  text-align: right;
}

.settings-table__actions .icon-button {
  width: 32px;
  height: 32px;
}

.settings-table__empty {
  text-align: center;
  color: var(--text-muted);
  padding: 1.4rem 0.75rem;
}

.icon-button--danger {
  color: #c0392b;
}

.icon-button--danger:hover,
.icon-button--danger:focus-visible {
  background: #fdecea;
}

.text-button {
  border: none;
  background: transparent;
  color: #2f6fb2;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  padding: 0;
}

.text-button:hover,
.text-button:focus-visible {
  color: #1f5b92;
  outline: none;
}

.settings-panel--card {
  background: #fff;
  border-radius: 10px;
}

.settings-card {
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  padding: 1rem;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.settings-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.settings-list__item {
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e9f2;
  font-size: 0.9rem;
}

.settings-list__item--actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}


.companies-panel,
.projects-panel {
  padding: 1rem;
}

.settings-invite {
  margin-top: 1rem;
  border-top: 1px solid #e5e9f2;
  padding-top: 1rem;
}

.settings-detail__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.95rem;
}

.settings-detail__empty {
  color: #6b7280;
}

.settings-detail__actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.settings-hint {
  color: #6b7280;
  font-size: 0.9rem;
}
.toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: #4b5563;
}

.hide-costs .cost-column {
  display: none;
}

.hide-costs .summary,
.hide-costs .invoices,
.hide-costs #invoice-modal,
.hide-costs #invoice-detail-modal,
.hide-costs #add-to-invoice-button,
.hide-costs #create-invoice-button {
  display: none !important;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.panel-list {
  border: 1px solid #e6ebf1;
  border-radius: 12px;
  padding: 0.5rem;
  max-height: 280px;
  overflow-y: auto;
  background: #f4f6f9;
}

.panel-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
}

.panel-list__actions {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.panel-list__item--link {
  cursor: pointer;
}

.panel-list__item--empty {
  cursor: default;
  color: #6b7280;
}

.panel-list__item:hover {
  background: #edf0f5;
}

.panel-list__item--active {
  background: #e7f1ff;
  color: #1d4ed8;
  font-weight: 500;
}

.panel-list__meta {
  font-size: 0.85rem;
  color: #6b7280;
}

.panel-form {
  margin-top: 1rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.form-actions-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.5rem;
  gap: 0.5rem;
}

.panel-form input:disabled,
.panel-form select:disabled,
.panel-form textarea:disabled {
  background: #f3f4f6;
  color: #9ca3af;
  border-color: #e5e7eb;
}

.panel-form input:disabled::placeholder,
.panel-form textarea:disabled::placeholder {
  color: #cbd5e1;
}

.toggle input:disabled {
  cursor: not-allowed;
}

.toggle input:disabled + span {
  color: #9ca3af;
}

.page-actions-right {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.page-actions-right {
  width: 100%;
  max-width: 1000px;
  margin-left: 0;
  margin-right: auto;
}

.invoice-detail-grid {
  display: grid;
  grid-template-columns: 400px auto;
  gap: 1.5rem;
  align-items: start;
}

.invoice-detail-primary {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 400px;
}

.invoice-detail-side {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: max-content;
  justify-self: end;
}

.invoice-detail-side .form-field {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  column-gap: 0.75rem;
}

.invoice-detail-side .form-field label {
  text-align: right;
  margin: 0;
}

.invoice-detail-wrapper:not(.invoice-detail-ready) #invoice-detail-split-row,
.invoice-detail-wrapper:not(.invoice-detail-ready) #invoice-detail-single-row {
  display: none;
}

.invoice-detail-wrapper:not(.invoice-detail-ready) .invoice-detail-single-fields {
  display: none;
}

.invoice-detail-single-fields.is-hidden {
  display: none;
}

.invoice-create-single-fields.is-hidden {
  display: none;
}

.invoice-detail-report {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}

.invoice-detail-entries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.invoice-detail-entries-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.invoice-detail-entries-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: none;
  background: transparent;
  color: #1f2933;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
}

.invoice-detail-entries-toggle i {
  transition: transform 0.2s ease;
}

.invoice-detail-entries-toggle.is-collapsed i {
  transform: rotate(-180deg);
}

.invoice-cost-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.92rem;
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.invoice-cost-table th,
.invoice-cost-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eaeef5;
}

.invoice-cost-table th {
  background: #f5f7fb;
  font-weight: 500;
  font-size: 0.9rem;
}

.invoice-cost-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  background-color: #fff;
}

.invoice-cost-input[data-cost-input="quantity"],
.invoice-cost-input[data-cost-input="unit_price"],
.invoice-cost-input[data-cost-input="discount_percent"],
.invoice-discount-input[data-discount-input="amount"] {
  text-align: right;
}

.invoice-cost-table th:nth-child(2),
.invoice-cost-table td:nth-child(2),
.invoice-cost-table th:nth-child(3),
.invoice-cost-table td:nth-child(3),
.invoice-cost-table th:nth-child(4),
.invoice-cost-table td:nth-child(4),
.invoice-cost-table th:nth-child(5),
.invoice-cost-table td:nth-child(5),
.invoice-cost-table th:nth-child(6),
.invoice-cost-table td:nth-child(6) {
  text-align: right;
}

.panel-actions {
  display: flex;
  gap: 0.5rem;
}

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

.data-wrapper .report-controls {
  width: 100%;
  margin: 0 0 1.25rem;
  padding: 0 0.5rem;
}

.data-wrapper .data-card {
  margin-left: auto;
  margin-right: auto;
}

.data-wrapper .settings-page--half {
  margin-left: 0;
  margin-right: auto;
}

.data-wrapper .invoice-detail-card,
.data-wrapper .invoice-detail-section {
  margin-left: 0;
  margin-right: auto;
}

.entries-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
}

.entries-header__left {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.entries-header__left h2 {
  margin: 0;
}

.entries-header__right {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.entries-header__meta {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.entries-filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.entries-filter__field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entries-filter__field select {
  min-width: 180px;
  padding: 0.5rem 0.6rem;
  border: 1px solid #d7dce3;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
  color: #2f343a;
}

.entries-filter__range {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.entries-filter__range-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.entries-filter__range-field {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.entries-filter__range input {
  width: 110px;
  padding: 0.5rem 0.6rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
  background-color: #fff;
  cursor: pointer;

  text-align: center;}

.entries-filter__label {
  font-weight: 500;
  font-size: 0.85rem;
  color: #5b6573;
}

.filter-dropdown {
  position: relative;
  min-width: 180px;
}

.filter-dropdown__toggle {
  min-width: 180px;
  padding: 0.55rem 0.8rem;
  border: 1px solid #d7dce3;
  border-radius: 10px;
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 500;
  background-color: #fff;
  color: #2f343a;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  position: relative;
  justify-content: flex-start;
  overflow: hidden;
  padding-right: 1.8rem;
}

.filter-dropdown__label {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  padding-right: 1.2rem;}


#company-filter .filter-dropdown__toggle,
#company-filter.filter-dropdown {
  width: 200px;
}
#company-filter .filter-dropdown__toggle {
}


.filter-dropdown__toggle::after {
  content: '▾';
  font-size: 0.85rem;
  color: #6b7280;
  position: absolute;
  right: 0.7rem;
  top: 50%;
  transform: translateY(-50%);}

.filter-dropdown__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #e3e7ef;
  border-radius: 12px;
  padding: 0.35rem 0;
  box-shadow: var(--shadow-soft);
  display: none;
  max-height: 260px;
  overflow-y: auto;
  z-index: 1200;
}

.filter-dropdown--open .filter-dropdown__menu {
  display: block;
}

#company-filter .filter-dropdown__menu {
  width: 260px;
  min-width: 260px;
  right: auto;
}

.filter-dropdown__option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #1f2933;
}

.filter-dropdown__option:hover {
  background: #f8fafc;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.modal-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
}

.modal-list__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.95rem;
  color: #111827;
}

.modal-list__meta small {
  color: #6b7280;
}

.filter-dropdown__option input[type='checkbox'] {
  margin: 0;
}

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

.input-with-clear input {
  width: 100%;
  padding-right: 2.2rem;
}

.input-clear-button {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  color: #94a3b8;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 999px;
}

.input-clear-button:hover {
  color: #475569;
  background: #eef2f7;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 1rem;
  font-size: 0.95rem;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.data-card .data-table {
  border: 0;
  border-radius: 0;
  width: calc(100% + 2.8rem);
  margin-left: -1.4rem;
  margin-right: -1.4rem;
}

table th,
table td {
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid #eef1f5;
  text-align: left;
  vertical-align: middle;
}

table thead th {
  background-color: #f4f6f9;
  font-weight: 700;
  color: #4b5563;
}

.data-card .data-table th,
.data-card .data-table td {
  border-bottom-color: #f3f5f9;
}

.data-card .data-table thead th {
  border-bottom-color: #f0f3f8;
}

table th.col-left,
table td.col-left {
  text-align: left;
}

table th.col-center,
table td.col-center {
  text-align: center;
}

table th.col-right,
table td.col-right {
  text-align: right;
}

#entries-table thead th {
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

#entries-table {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}


table tbody td {
  vertical-align: top;
  color: #1f2933;
}

table tbody tr:hover {
  background-color: #f7f8fb;
}

table.dataTable tbody tr:hover {
  background-color: #f7f8fb;
}

#entries-table tfoot td {
  font-weight: 500;
  background-color: #f1f5fb;
  border-bottom: none;
}

#summary-table tfoot td {
  font-weight: 500;
  background-color: #f9fafb;
  border-top: 1px solid #dfe7f3;
}

.summary__footer-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  color: #4b5563;
}

.summary__footer-value {
  text-align: center !important;
  font-variant-numeric: tabular-nums;
}

.summary__footer-value--currency {
  color: #2563eb;
  text-align: right !important;
}

#summary-table th:nth-child(3),
#summary-table td:nth-child(3) {
  text-align: center;
}

#summary-table th:nth-child(4),
#summary-table td:nth-child(4) {
  text-align: right;
}


#entries-table th:nth-child(3),
#entries-table th:nth-child(4),
#entries-table th:nth-child(5),
#entries-table td:nth-child(4),
#entries-table td:nth-child(5) {
  text-align: center;
}

#entries-table td:nth-child(3) {
  text-align: left;
}

#entries-table th:nth-child(3) {
  text-align: left;
}

#entries-table th:nth-child(6),
#entries-table td:nth-child(6),
#entries-table th:nth-child(7),
#entries-table td:nth-child(7) {
  text-align: right;
}

#entries-table th:nth-child(8),
#entries-table td:nth-child(8) {
  text-align: center;
}

.entries__select-column {
  width: 36px;
  text-align: center;
}

.entries__select-column input {
  width: 16px;
  height: 16px;
}

.entries__status-cell {
  text-align: center;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  text-decoration: none;
}

.status-badge--unbilled {
  background-color: #fff2d9;
  color: #b46b08;
}

.status-badge--billed {
  background-color: var(--accent-soft);
  color: var(--accent-dark);
}

.status-badge--paid {
  background-color: #e0f2fe;
  color: #0369a1;
}

.status-badge--draft {
  background-color: #f3f4f6;
  color: #4b5563;
}

.invoice-payday-status {
  text-align: center;
}

.payday-status-badge {
  justify-content: center;
}

.payday-status-badge--paid {
  background-color: var(--accent-soft);
  color: var(--accent-dark);
}

.payday-status-badge--credit {
  background-color: #fff2d9;
  color: #b46b08;
}

.payday-status-badge--cancelled {
  background-color: #fee2e2;
  color: #b91c1c;
}

.payday-status-badge--draft {
  background-color: #f3f4f6;
  color: #4b5563;
}

.payday-status-badge--sent {
  background-color: #e0f2fe;
  color: #0369a1;
}

.payday-status-badge--unknown {
  background-color: #f3f4f6;
  color: #6b7280;
}

.status-actions {
  margin-top: 0.35rem;
  display: flex;
  justify-content: center;
}

.status-actions button {
  background: none;
  border: none;
  color: #2563eb;
  cursor: pointer;
  font-size: 0.8rem;
}

.invoice-row__actions {
  text-align: right;
}
.invoice-row__actions button,
.invoice-card__actions button {
  background: none;
  border: none;
  border-radius: 6px;
  padding: 0.2rem;
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 400;
  color: #4b5563;
  font-size: 0.95rem;
}

.invoice-row__actions button + button {
  margin-left: 0.4rem;
}

.invoice-row__actions button:hover,
.invoice-card__actions button:hover {
  color: #111827;
}

.invoice-row__actions button:disabled,
.invoice-card__actions button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.invoice-action--danger {
  color: #c0392b;
}

.invoice-action--danger:hover {
  color: #991b1b;
}

.multiline-cell {
  display: grid;
  gap: 0.2rem;
}

.multiline-cell--numbers {
  justify-items: center;
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.multiline-cell--align-right {
  justify-items: flex-end;
  text-align: right;
}

.entries-log-sum {
  margin-top: 0.35rem;
  display: block;
  font-weight: 700;
}

.entries-cost-line {
  display: flex;
  align-items: baseline;
  gap: 0.15rem;
}

.entries-cost-asterisk {
  color: #b45309;
  margin-left: 0.15rem;
  font-weight: 700;
}


.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(27, 32, 40, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.modal-card {
  background: var(--surface);
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  width: min(420px, 90vw);
  max-width: 800px;
  max-height: 95vh;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.modal-card--confirm {
  width: min(460px, 92vw);
}

.confirm-modal__title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 500;
}

.confirm-modal__message {
  margin: 0;
  color: #4b5563;
  line-height: 1.4;
}

.confirm-modal__actions {
  margin-top: 0.35rem;
}

.modal-card--wide {
  width: min(800px, 95vw);
}
#invoice-modal .modal-card {
  width: min(800px, 95vw);
  max-width: 800px;
}

.invoice-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-start;
}

.invoice-title-row h3 {
  margin: 0;
}

.invoice-title-edit {
  border: none;
  background: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 1rem;
}

.invoice-title-download {
  border: none;
  background: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 1rem;
}

.invoice-title-excel {
  border: none;
  background: none;
  cursor: pointer;
  color: #059669;
  font-size: 1rem;
}

.invoice-title-edit-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
  gap: 0.5rem;
  align-items: end;
  margin-top: 0.5rem;
}

.invoice-title-edit-form input {
  width: 100%;
}

.invoice-title-edit-form .inline-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1.1rem;
}

.invoice-title-edit-form .inline-btn--save {
  color: var(--accent);
}

.invoice-title-edit-form .inline-btn--cancel {
  color: #c0392b;
}
.summary-edit-button {
  border: none;
  background: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 1rem;
}

.summary-inline-form {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.summary-inline-form input {
  width: 120px;
}

.summary-inline-form .inline-btn {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 1rem;
}

.summary-inline-form .inline-btn--save {
  color: var(--accent);
}

.summary-inline-form .inline-btn--cancel {
  color: #c0392b;
}

.invoice-summary-table {
  width: 100%;
  margin-top: 0;
  border-collapse: collapse;
  font-size: 0.92rem;
  border-radius: 0;
  box-shadow: none;
  border: none;
  background: transparent;
}

.invoice-summary-table th,
.invoice-summary-table td {
  padding: 0.5rem 0;
}

.invoice-discount-table {
  width: 100%;
  margin-top: 0.75rem;
  border-collapse: collapse;
}

.invoice-discount-table th,
.invoice-discount-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}

.invoice-discount-table th {
  background-color: #f4f6f9;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
}

.invoice-discount-table th:nth-child(2),
.invoice-discount-table td:nth-child(2),
.invoice-discount-table th:nth-child(3),
.invoice-discount-table td:nth-child(3),
.invoice-discount-table th:nth-child(4),
.invoice-discount-table td:nth-child(4),
.invoice-discount-table th:nth-child(5),
.invoice-discount-table td:nth-child(5) {
  text-align: right;
}

.invoice-discount-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.4rem;
}

.invoice-action--hidden {
  display: none;
}

.invoice-discount-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
}

.invoice-cost-table tfoot,
.invoice-discount-table tfoot {
  display: none;
}

.invoice-cost-table.is-editing tfoot,
.invoice-discount-table.is-editing tfoot {
  display: table-footer-group;
}

.invoice-discount-qty {
  display: inline-block;
  padding: 0 0.25rem;
  color: #6b7280;
}

.invoice-summary-heading {
  margin: 1rem 0 0.35rem;
  font-size: 1rem;
  font-weight: 500;
  color: #111827;
}

.invoice-summary-label {
  font-weight: 500;
  color: #374151;
}

.invoice-summary-value {
  text-align: right;
  font-weight: 500;
}

.invoice-summary-edit {
  width: 36px;
  text-align: left;
}
#invoice-modal .modal-card {
  width: min(800px, 95vw);
}

.modal-close {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border: none;
  background: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #475569;
}

.modal-description {
  margin: 0 0 0.75rem;
  color: #5b6470;
  font-size: 0.95rem;
}

.modal-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 320px;
  overflow: auto;
  padding: 0.25rem 0;
}

.modal-list__item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  background: #f7f8fb;
}

.modal-list__checkbox {
  margin-top: 0.2rem;
}

.modal-list__content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.modal-list__title {
  font-weight: 500;
  color: #1f2933;
}

.modal-list__meta {
  font-size: 0.9rem;
  color: #5b6470;
}

.modal-card--excel {
  max-width: 420px;
}

#excel-export-options .modal-list__item {
  align-items: center;
  justify-content: flex-start;
}

#excel-export-options .modal-list__checkbox {
  margin-top: 0;
}

#excel-export-options .modal-list__content {
  align-items: flex-start;
  text-align: left;
}

.modal-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.modal-field label {
  font-weight: 500;
  color: #1f2933;
}

.modal-radio {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
}

.modal-radio input {
  margin: 0;
}

.modal-list.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}
.modal-field input,
.modal-field textarea,
.modal-field select {
  padding: 0.55rem 0.6rem;
  border: 1px solid #cfd6dc;
  border-radius: 6px;
  font-size: 0.95rem;
  font-family: inherit;
}

.modal-actions {
  margin-top: 0.5rem;
  display: flex;
  justify-content: flex-end;
  gap: 0.6rem;
}

.modal-field--existing {
  display: none;
}

.modal-card[data-mode="add"] .modal-field--existing {
  display: flex;
}

.modal-card[data-mode="add"] .modal-field:not(.modal-field--existing) {
  display: none;
}

.invoice-detail-entries {
  flex: 1;
  min-height: 0;
  overflow: auto;
  margin-top: 0;
}

.invoice-detail-entries.is-collapsed .invoice-detail-entries-wrap {
  display: none;
}

.invoice-detail-entries-wrap {
  margin-top: 0;
}

.invoice-detail-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
  font-size: 0.92rem;
}

.invoice-detail-table th,
.invoice-detail-table td,
.invoice-cost-table th,
.invoice-cost-table td,
.invoice-summary-table th,
.invoice-summary-table td {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eaeef5;
  vertical-align: top;
}

.invoice-detail-action {
  width: 32px;
  text-align: center;
}

.invoice-detail-remove-icon {
  display: block;
  margin: 0 auto;
}

.invoice-detail-table th {
  background: #f5f7fb;
  font-weight: 500;
}

.invoice-cost-table th,
.invoice-summary-table th {
  background: #f5f7fb;
  font-weight: 500;
}

.invoice-detail-remove-icon {
  color: #c0392b;
}

.invoice-detail-description__title {
  font-weight: 500;
}

.invoice-detail-description__meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 0.2rem;
}

.invoice-detail-remove {
  color: #c0392b;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 500;
}

.invoice-detail-table th:nth-child(2),
.invoice-detail-table td:nth-child(2),
.invoice-detail-table th:nth-child(3),
.invoice-detail-table td:nth-child(3),
.invoice-detail-table th:nth-child(4),
.invoice-detail-table td:nth-child(4),
.invoice-detail-table th:nth-child(5),
.invoice-detail-table td:nth-child(5),
.invoice-detail-table th:nth-child(6),
.invoice-detail-table td:nth-child(6) {
  text-align: right;
}

.invoice-detail-table th:nth-child(2),
.invoice-detail-table td:nth-child(2) {
  width: 80px;
}

.invoice-detail-table th:nth-child(3),
.invoice-detail-table td:nth-child(3) {
  width: 120px;
}

.invoice-detail-table th:nth-child(4),
.invoice-detail-table td:nth-child(4) {
  width: 80px;
}

.invoice-detail-table th:nth-child(5),
.invoice-detail-table td:nth-child(5) {
  width: 135px;
}

.invoice-detail-table th:nth-child(6),
.invoice-detail-table td:nth-child(6) {
  width: 135px;
}

.invoice-detail-card,
.invoice-detail-section {
  width: 100%;
  max-width: 1000px;
}

.employee-report-wrapper {
  position: relative;
}

.employee-report-wrapper .data-card {
  margin-left: 0;
  margin-right: auto;
}

.employee-report-card,
.employee-report-employee-card {
  width: 100%;
  max-width: 1000px;
  margin-left: 0;
  margin-right: auto;
}

.employee-report-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.employee-report-notes {
  margin-top: 0.5rem;
}

#employee-report-employees > .employee-report-employee-card + .employee-report-employee-card {
  margin-top: 1.25rem;
}

.employee-report-employee-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.employee-report-employee-title {
  font-size: 1rem;
  font-weight: 500;
}

.employee-report-employee-ssn {
  font-size: 0.9rem;
  color: #6b7280;
}

.employee-report-items {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.employee-report-section-title {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.employee-report-summary {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.employee-report-summary-row {
  display: grid;
  grid-template-columns: 300px 200px;
  gap: 0.75rem;
  align-items: center;
}

.employee-report-summary__label {
  font-weight: 500;
}

.employee-report-summary__value {
  text-align: right;
  color: #1f2933;
}

.employee-report-item {
  display: grid;
  grid-template-columns: 300px 200px 50px;
  gap: 0.75rem;
  align-items: center;
}

.employee-report-item__name,
.employee-report-item__quantity {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 1px solid #cfd6dc;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
}

.employee-report-item__quantity {
  text-align: right;
}

.employee-report-item__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  color: #c0392b;
  cursor: pointer;
  font-size: 1rem;
}

.employee-report-item__name:disabled,
.employee-report-item__quantity:disabled {
  background: #f3f4f6;
  color: #9ca3af;
}

.employee-report-item__meta {
  grid-column: 1 / -1;
  margin-top: 0.25rem;
  font-size: 0.85rem;
  color: #6b7280;
}

.employee-report-item-add {
  margin-top: 0.75rem;
  width: 100%;
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  display: block;
  cursor: pointer;
}

.employee-report-entries-table {
  margin-top: 0.75rem;
  border-radius: 0;
}

.employee-report-entries-table th,
.employee-report-entries-table td {
  padding: 0.5rem 0;
}

.employee-report-entries-table th:nth-child(1),
.employee-report-entries-table td:nth-child(1) {
  width: 80px;
}

.employee-report-entries-table th:nth-child(2),
.employee-report-entries-table td:nth-child(2) {
  text-align: left;
}

.employee-report-entries-table th:nth-child(3),
.employee-report-entries-table td:nth-child(3) {
  width: 80px;
  text-align: right;
}

.employee-report-entries-table th:nth-child(4),
.employee-report-entries-table td:nth-child(4) {
  width: 50px;
  text-align: center;
}

.employee-report-entries {
  margin-top: 0.75rem;
}

.employee-report-entries.is-collapsed .employee-report-entries-wrap {
  display: none;
}

.employee-report-entries-wrap {
  margin: 0 -1.4rem -1.4rem;
  padding: 0;
}

.employee-report-entries-table .invoice-row__actions {
  display: table-cell;
  text-align: center;
}

.employee-report-entries-table .invoice-row__actions button {
  padding: 0;
}

.employee-report-entries-table td.invoice-row__actions {
  vertical-align: middle;
}

.employee-report-entries-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.employee-report-entries-title {
  font-size: 0.95rem;
  font-weight: 500;
}

.employee-report-entries-toggle {
  border: none;
  background: transparent;
  color: #1f2933;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.employee-report-entries-toggle i {
  transition: transform 0.2s ease;
}

.employee-report-entries-toggle:not(.is-collapsed) i {
  transform: rotate(180deg);
}

.employee-report-confirm {
  background: #111827;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-size: 0.95rem;
  cursor: pointer;
}


.invoice-detail-table-add {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: center;
}


.invoice-summary-label {
  text-align: right;
  font-weight: 500;
  color: #1f2933;
}

.invoice-summary-value {
  text-align: right;
  font-weight: 500;
}

.invoice-detail-divider td {
  border-bottom: 2px solid #cbd5f5;
}

.invoice-detail-group-header td {
  font-weight: 500;
  padding-top: 0.9rem;
}
.multiline-cell--text {
  justify-items: flex-start;
  white-space: normal;
}

.multiline-cell__value--strong {
  font-weight: 700;
  color: #111827;
}

.multiline-cell__value--muted {
  color: #6b7280;
  font-size: 0.85rem;
}

.entries__date-cell {
  font-weight: 500;
  color: #111827;
  white-space: nowrap;
}

.entries__company-cell {
  min-width: 200px;
}

.entries__cost-cell {
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.entries-cost-line span {
  font-weight: 400;
}

.entries__actions-cell {
  text-align: center;
}

.entry-actions {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 0.45rem;
}

.entries__footer-value {
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.entries__footer-value span {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #6b7280;
}

.entries__footer-value strong {
  display: block;
  font-size: 1.1rem;
  color: #0f172a;
}

.entries__footer-value--currency {
  text-align: right;
}

.entries__time-total--single span,
.entries__cost-total--single span {
  font-weight: 700;
}

.icon-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #2c3e50;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.icon-button:hover,
.icon-button:focus-visible {
  background-color: #eef2f7;
  outline: none;
}

.icon-button:focus-visible {
  box-shadow: 0 0 0 2px rgba(44, 123, 229, 0.35);
}

.icon-button--info::before {
  content: "";
}

.icon-button svg {
  width: 16px;
  height: 16px;
}

.icon-button--delete::before {
  content: "✖";
  font-size: 1.05rem;
}

.icon-button--delete {
  color: #c0392b;
}

.icon-button--muted {
  color: #9aa5b1;
}

.entries-row--editing {
  background-color: #fdf3d6;
}

.entries-row--clickable {
  cursor: pointer;
}

.entries-row--clickable:hover {
  background-color: #f4f6f9;
}

.invoice-row--clickable {
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.invoice-row--clickable:hover {
  background-color: #f4f6f9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media.entries-filter__range-field input {
  width: 120px;
}

 (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem 1rem;
    position: static;
  }

  .app-shell--collapsed .sidebar {
    width: 100%;
    padding: 0.75rem 1.25rem 1rem;
  }

  .app-shell--collapsed .sidebar__text {
    display: inline;
  }

  .app-shell--collapsed .sidebar__link::after {
    display: none;
  }

  .sidebar__nav {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  .app-shell--nav-open .sidebar__nav {
    display: flex;
  }

  .sidebar__link {
    padding: 0.45rem 0.75rem;
  }

  .topbar {
    position: static;
    padding: 0 1.25rem;
    justify-content: flex-start;
    gap: 0.75rem;
  }

  .topbar__banner {
    max-width: 100%;
    white-space: normal;
    font-size: 0.8rem;
  }

  .topbar__toggle {
    display: inline-flex;
    position: static;
    margin-left: auto;
    order: 3;
    width: 34px;
    height: 34px;
  }

  .topbar__actions {
    order: 2;
    margin-left: 0;
  }

  .page {
    padding: 1.5rem 1.25rem 2.5rem;
  }

  .form-grid--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid--left .form-grid--primary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid--date-rate {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid--details {
    grid-template-columns: 1fr;
  }

  .form-actions {
    justify-content: flex-start;
  }

  .cancel-button,
  .submit-button {
    width: 100%;
  }

  .companies-page__grid {
    grid-template-columns: 1fr;
  }

  .settings-grid {
    grid-template-columns: 1fr;
  }

  .settings-page__header--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .invoice-detail-grid {
    grid-template-columns: 1fr;
  }

  .settings-page--half {
    max-width: 100%;
  }
}

@media (max-width: 720px) {
  #entries-table {
    display: none;
  }

  .entries-cards {
    display: flex;
  }

  .summary-title-full {
    display: none;
  }

  .summary-title-mobile {
    display: inline;
  }

  #summary-table th:nth-child(2),
  #summary-table td:nth-child(2) {
    display: none;
  }

  .data-table-cards {
    display: flex;
  }
}

@media (max-width: 540px) {
  body {
    font-size: 14px;
  }

  .sidebar {
    flex-direction: column;
    align-items: flex-start;
  }

  .sidebar__nav {
    width: 100%;
    justify-content: flex-start;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar__banner {
    width: 100%;
  }

  .org-switch {
    width: 100%;
    justify-content: space-between;
  }

  .form-grid--primary {
    grid-template-columns: 1fr;
  }

  .form-grid--left .form-grid--primary {
    grid-template-columns: 1fr;
  }

  .form-grid--date-rate {
    grid-template-columns: 1fr;
  }

  .entries-header__right {
    width: 100%;
    justify-content: flex-start;
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .entries-filters {
    width: 100%;
    flex-direction: column;
    gap: 0.65rem;
  }

  .entries-filter__field,
  .entries-filter__range-group,
  .entries-filter__range-field {
    width: 100%;
  }

  .entries-filter__field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .entries-filter__range-group {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .entries-filter__range-field {
    display: flex;
    align-items: center;
    gap: 0.65rem;
  }

  .entries-filter__range-field label,
  .entries-filter__field label {
    flex: 0 0 25%;
  }

  .entries-filter__range-field input,
  .filter-dropdown__toggle {
    flex: 1 1 auto;
  }

  .entries-filter__range {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
  }

  .filter-dropdown__toggle,
  .entries-filter__range-field input {
    min-width: 0;
  }

  .time-log-row {
    grid-template-columns: repeat(3, 68px) 24px;
    gap: 0.5rem;
  }

  .time-log-header {
    grid-template-columns: repeat(3, 68px) 24px;
    gap: 0.5rem;
  }

  .time-log-row .form-field label {
    font-size: 0.8rem;
    white-space: nowrap;
  }

  .time-log-row__remove-wrapper {
    justify-content: center;
  }
}

/* Button font weight override */
button,
.btn-primary,
.btn-secondary,
.primary-button,
.secondary-button,
.submit-button,
.cancel-button,
.logout-button,
.add-time-log-button,
.text-button,
.icon-button,
.inline-btn,
.summary-edit-button,
.input-clear-button,
.dataTables_wrapper .dataTables_paginate .paginate_button {
  font-weight: 600;
}

.btn-primary:disabled,
.primary-button:disabled,
.secondary-button:disabled,
.submit-button:disabled {
  background-color: #d1d5db;
  color: #6b7280;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-primary:disabled:hover,
.primary-button:disabled:hover,
.secondary-button:disabled:hover,
.submit-button:disabled:hover {
  background-color: #d1d5db;
}
