:root {
  --page: #eef7fb;
  --surface: #ffffff;
  --ink: #13202b;
  --muted: #556579;
  --line: #d7e6ee;
  --line-strong: #a9c0cc;
  --accent: #0e9384;
  --accent-dark: #07586a;
  --accent-soft: #d8f5ef;
  --blue: #2167b1;
  --violet: #7951d2;
  --amber: #d99013;
  --coral: #db5d4d;
  --green: #14996a;
  --danger: #b8323a;
  --sky: #37a5d8;
  --pink: #c84fb0;
  --shadow: 0 22px 60px rgba(22, 48, 64, 0.14);
  --soft-shadow: 0 12px 32px rgba(22, 48, 64, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 8% 12%, rgba(14, 147, 132, 0.22), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(121, 81, 210, 0.18), transparent 30%),
    radial-gradient(circle at 68% 88%, rgba(217, 144, 19, 0.16), transparent 34%),
    linear-gradient(135deg, rgba(55, 165, 216, 0.12), transparent 42%),
    var(--page);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.locked {
  overflow: hidden;
}

.locked .app-shell,
.locked .todo-shell,
.locked .password-shell,
.locked .workspace-menu,
body:not(.work-open) .app-shell {
  display: none;
}

body:not(.todo-open) .todo-shell {
  display: none;
}

body:not(.password-open) .password-shell {
  display: none;
}

.login-screen {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 16% 18%, rgba(14, 147, 132, 0.24), transparent 28%),
    radial-gradient(circle at 84% 16%, rgba(121, 81, 210, 0.22), transparent 30%),
    radial-gradient(circle at 72% 84%, rgba(219, 93, 77, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(55, 165, 216, 0.14), rgba(255, 255, 255, 0.22));
}

.login-screen::before,
.login-screen::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.login-screen::before {
  left: max(24px, 9vw);
  bottom: max(24px, 10vh);
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(14, 147, 132, 0.16), transparent 68%);
}

.login-screen::after {
  top: max(28px, 8vh);
  right: max(24px, 9vw);
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(121, 81, 210, 0.16), transparent 68%);
}

body:not(.locked) .login-screen {
  display: none;
}

.workspace-menu {
  display: none;
  min-height: 100vh;
  align-items: center;
  grid-template-columns: minmax(0, 840px);
  justify-content: start;
  padding: 32px 430px 32px max(32px, 10vw);
  background:
    linear-gradient(135deg, rgba(13, 139, 127, 0.18), transparent 32%),
    linear-gradient(225deg, rgba(111, 76, 195, 0.18), transparent 35%),
    linear-gradient(0deg, rgba(216, 138, 21, 0.12), transparent 48%);
}

.menu-open .workspace-menu {
  display: grid;
}

.workspace-card {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(244, 251, 251, 0.94)),
    var(--surface);
  box-shadow: 0 26px 70px rgba(23, 50, 63, 0.18);
  padding: 32px;
}

.workspace-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 7px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--violet), var(--amber), var(--coral));
}

.menu-notification {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 20;
  display: none;
  gap: 8px;
  width: 360px;
  max-height: calc(100vh - 64px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-top: 5px solid var(--violet);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 252, 0.96));
  padding: 18px;
  box-shadow: 0 18px 46px rgba(23, 50, 63, 0.18);
}

.menu-open .menu-notification {
  display: grid;
}

.menu-notification span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.menu-notification strong {
  color: var(--ink);
  font-size: 2.4rem;
  line-height: 1;
}

.menu-notification small {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menu-notification.has-reminders {
  border-color: rgba(216, 90, 74, 0.45);
  border-top-color: var(--coral);
  background: linear-gradient(180deg, #fff7f4, #ffffff);
}

.menu-notification.has-reminders strong {
  color: var(--coral);
}

.notification-clear-button {
  justify-self: start;
  min-height: 34px;
  margin-top: 4px;
  border: 1px solid rgba(216, 90, 74, 0.28);
  border-radius: 7px;
  background: #fff;
  color: var(--danger);
  padding: 6px 12px;
  font-size: 0.84rem;
  font-weight: 800;
}

.notification-task-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.notification-task-list li {
  overflow: hidden;
  border: 1px solid rgba(216, 90, 74, 0.16);
  border-radius: 8px;
  background: rgba(255, 247, 244, 0.72);
  color: #49312d;
  padding: 8px 10px;
  font-size: 0.92rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@media (max-width: 1240px) {
  .workspace-menu {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 20px;
    padding-top: 220px;
  }

  .menu-notification {
    top: 20px;
    right: 20px;
    left: 20px;
    width: auto;
    max-height: 180px;
  }
}

.workspace-card h1 {
  margin-bottom: 26px;
  font-size: clamp(2.6rem, 8vw, 5rem);
  line-height: 0.95;
}

.workspace-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.workspace-button {
  position: relative;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  background: #fff;
  color: #fff;
  font-size: 1.28rem;
  font-weight: 800;
  text-align: left;
  padding: 22px;
  box-shadow: 0 16px 32px rgba(23, 50, 63, 0.14);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.workspace-button::before {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
}

.workspace-button::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: 34px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.workspace-button:hover {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 22px 42px rgba(23, 50, 63, 0.2);
  transform: translateY(-2px);
}

.primary-workspace-button {
  background: linear-gradient(135deg, var(--accent), var(--blue));
}

.todo-workspace-button {
  background: linear-gradient(135deg, var(--violet), #a66dff);
}

.blank-workspace-button {
  color: #fff;
}

.blank-one {
  background: linear-gradient(135deg, var(--amber), var(--coral));
}

.password-workspace-button {
  background: linear-gradient(135deg, #2647a4, var(--violet));
}

.blank-two {
  background: linear-gradient(135deg, var(--green), var(--accent));
}

.workspace-logout-button {
  margin-top: 18px;
}

.login-card {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-top: 0;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 12%, rgba(55, 165, 216, 0.16), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.99), rgba(241, 251, 255, 0.95));
  box-shadow: 0 30px 80px rgba(21, 51, 68, 0.2);
  padding: 38px;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 8px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--violet), var(--amber), var(--coral));
}

.login-card::after {
  content: "WT";
  position: absolute;
  right: 28px;
  top: 26px;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  font-size: 1rem;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(14, 116, 132, 0.22);
}

.login-card h1 {
  max-width: 360px;
  margin-bottom: 28px;
  font-size: clamp(2.6rem, 8vw, 4.15rem);
  line-height: 0.95;
}

.login-card label {
  max-width: 100%;
}

.login-card input {
  min-height: 56px;
  border-radius: 14px;
  border-color: #9ebdcb;
  background:
    linear-gradient(180deg, #ffffff, #f7fcff);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.login-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 700;
}

.login-button {
  width: 100%;
  min-height: 54px;
  margin-top: 16px;
  border-radius: 14px;
  font-size: 1.05rem;
}

/* Professional login refinement */
.login-screen {
  background:
    linear-gradient(135deg, rgba(14, 147, 132, 0.1), transparent 34%),
    linear-gradient(225deg, rgba(33, 103, 177, 0.11), transparent 36%),
    linear-gradient(180deg, #f7fbfd, #eaf4f7);
}

.login-screen::before {
  left: auto;
  right: 9vw;
  bottom: 8vh;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(14, 147, 132, 0.1), transparent 68%);
}

.login-screen::after {
  top: 8vh;
  right: auto;
  left: 8vw;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(33, 103, 177, 0.1), transparent 68%);
}

.login-card {
  width: min(720px, calc(100% - 32px));
  border: 1px solid rgba(188, 209, 219, 0.78);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 252, 254, 0.98));
  box-shadow: 0 24px 64px rgba(21, 51, 68, 0.16);
  padding: 40px;
}

.login-card::before {
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.login-card::after {
  right: 34px;
  top: 34px;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0b6f79, #1d5f99);
  font-size: 0.95rem;
  box-shadow: 0 12px 26px rgba(21, 95, 130, 0.2);
}

.login-card .eyebrow {
  color: #0b6571;
  font-size: 0.78rem;
}

.login-card h1 {
  max-width: none;
  padding-right: 0;
  margin-bottom: 30px;
  color: #102230;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  white-space: nowrap;
}

.login-card label {
  color: #3f5265;
  font-size: 0.9rem;
}

.login-card input {
  min-height: 54px;
  border-radius: 12px;
  border-color: #a8c0cb;
  background: #ffffff;
  font-size: 1.08rem;
  letter-spacing: 0.08em;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 8px 20px rgba(21, 51, 68, 0.06);
}

.login-card input:focus {
  border-color: #1f7ea6;
  outline: 4px solid rgba(31, 126, 166, 0.14);
}

.login-button {
  border-radius: 12px;
  background: linear-gradient(135deg, #0d817a, #1e659f);
  box-shadow: 0 14px 30px rgba(21, 95, 130, 0.22);
}

.login-button:hover,
.login-button:focus-visible {
  background: linear-gradient(135deg, #0b746f, #1a5b91);
}

.app-shell {
  width: min(1480px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.todo-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.password-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 0 auto;
  padding: 28px 0 48px;
}

.topbar,
.section-heading,
.entry-form,
.table-heading {
  display: flex;
  align-items: center;
  gap: 16px;
}

.topbar,
.section-heading {
  justify-content: space-between;
}

.topbar {
  margin-bottom: 20px;
  padding: 6px 0 10px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 0.95;
  color: #13212a;
}

h2 {
  font-size: 1.18rem;
}

.panel-title {
  color: var(--accent-dark);
  font-size: 1.35rem;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}

.top-actions,
.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.primary-button,
.ghost-button,
.row-button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 14px;
  font-weight: 700;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  box-shadow: 0 10px 22px rgba(13, 139, 127, 0.22);
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(135deg, #0fa194, #064d59);
}

.ghost-button,
.row-button {
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  border-color: var(--line);
}

.ghost-button:hover,
.ghost-button:focus-visible,
.row-button:hover,
.row-button:focus-visible {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.metric {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  background: linear-gradient(180deg, #ffffff, #fbfdfe);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 20px 18px 18px;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: var(--metric-color, var(--accent));
}

.metric:nth-child(1) {
  --metric-color: linear-gradient(90deg, var(--accent), var(--green));
}

.metric:nth-child(2) {
  --metric-color: linear-gradient(90deg, var(--blue), #3aa4ff);
}

.metric:nth-child(3) {
  --metric-color: linear-gradient(90deg, var(--violet), #b27bff);
}

.metric:nth-child(4) {
  --metric-color: linear-gradient(90deg, var(--amber), var(--coral));
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.metric strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.1;
  color: #06151d;
}

.mode-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  padding: 5px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.mode-tab {
  min-height: 42px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  padding: 0 18px;
  font-weight: 800;
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  color: #fff;
  box-shadow: 0 8px 18px rgba(13, 139, 127, 0.2);
}

.mode-panel {
  display: none;
}

.mode-panel.active {
  display: block;
}

.hidden {
  display: none;
}

.entry-panel,
.report-panel,
.deadline-panel,
.finance-panel,
.todo-panel,
.todo-table-section,
.password-panel,
.password-table-section,
.table-section {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.entry-panel,
.report-panel,
.deadline-panel,
.finance-panel,
.todo-panel {
  padding: 22px;
  margin-bottom: 16px;
}

.password-panel {
  padding: 22px;
  margin-bottom: 16px;
  border-top: 5px solid var(--amber);
}

.entry-panel {
  border-top: 5px solid var(--accent);
}

.report-panel {
  border-top: 5px solid var(--blue);
}

.deadline-panel {
  border-top: 5px solid var(--amber);
}

.finance-panel {
  border-top: 5px solid var(--green);
}

.todo-panel {
  border-top: 5px solid var(--violet);
}

.todo-table-section {
  overflow: hidden;
  border-top: 5px solid var(--green);
}

.password-table-section {
  overflow: hidden;
  border-top: 5px solid var(--coral);
}

.todo-table-tools {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.todo-status-filter-field {
  width: 180px;
}

.todo-search-field {
  width: min(320px, 100%);
}

.table-section {
  border-top: 5px solid var(--violet);
}

.save-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.entry-form {
  display: grid;
  grid-template-columns: minmax(260px, 2fr) repeat(4, minmax(150px, 1fr));
  align-items: end;
  gap: 16px;
  margin-top: 18px;
  overflow: visible;
}

.todo-form {
  display: grid;
  grid-template-columns: minmax(260px, 1.5fr) minmax(260px, 1.5fr) repeat(3, minmax(150px, 1fr));
  align-items: end;
  gap: 16px;
  margin-top: 18px;
}

.password-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr)) minmax(260px, 1.4fr);
  align-items: end;
  gap: 16px;
  margin-top: 18px;
}

.todo-task-field {
  min-width: 260px;
}

.todo-notes-field {
  min-width: 260px;
}

.password-note-field {
  min-width: 260px;
}

label {
  display: grid;
  gap: 6px;
  min-width: 150px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.wide-field {
  min-width: 280px;
}

.order-field {
  grid-column: 1 / 3;
}

.sales-person-field {
  grid-column: 3;
}

.month-field {
  grid-column: 4;
}

.deadline-field {
  grid-column: 5;
}

.one-file-words-field {
  grid-column: 1;
}

.reports-field {
  grid-column: 2;
}

.total-words-field {
  grid-column: 3;
}

.rate-field {
  grid-column: 4;
}

.amount-preview-field {
  grid-column: 5;
}

.software-field {
  grid-column: 2;
}

.software-amount-field {
  grid-column: 3;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
  padding: 8px 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--accent);
  outline: 3px solid var(--accent-soft);
}

.add-button {
  grid-column: 1;
  justify-self: start;
  min-width: 128px;
}

.calculated-field {
  display: grid;
  gap: 6px;
  min-width: 150px;
  min-height: 42px;
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 700;
}

.calculated-field strong {
  display: flex;
  align-items: center;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: linear-gradient(180deg, #f9fbfb, #eef6f5);
  color: var(--ink);
  padding: 8px 10px;
  font-size: 1rem;
}

.report-heading {
  align-items: end;
}

.report-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.report-controls label {
  min-width: 160px;
}

.range-field {
  display: none;
}

.custom-report .range-field {
  display: grid;
}

.custom-report #reportMonthField {
  display: none;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.mini-metric {
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f4fbfb);
  padding: 14px;
}

.mini-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.mini-metric strong {
  display: block;
  margin-top: 8px;
  font-size: 1.45rem;
  line-height: 1.1;
}

.breakdown-wrap {
  margin-top: 14px;
  overflow-x: auto;
}

.finance-table-wrap {
  margin-top: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.breakdown-table {
  min-width: 620px;
  table-layout: fixed;
}

.finance-table {
  min-width: 1260px;
  table-layout: fixed;
}

.finance-table th:nth-child(4),
.finance-table td:nth-child(4),
.finance-table th:nth-child(5),
.finance-table td:nth-child(5),
.finance-table th:nth-child(8),
.finance-table td:nth-child(8),
.finance-table th:nth-child(9),
.finance-table td:nth-child(9) {
  text-align: right;
}

.finance-table th:nth-child(6),
.finance-table td:nth-child(6),
.finance-table th:nth-child(7),
.finance-table td:nth-child(7),
.finance-table th:nth-child(8),
.finance-table td:nth-child(8),
.finance-table th:nth-child(10),
.finance-table td:nth-child(10) {
  text-align: center;
}

.finance-table th:nth-child(1),
.finance-table td:nth-child(1) {
  width: 140px;
}

.finance-table th:nth-child(2),
.finance-table td:nth-child(2) {
  width: 150px;
}

.finance-table th:nth-child(3),
.finance-table td:nth-child(3) {
  width: 320px;
}

.finance-table th:nth-child(4),
.finance-table td:nth-child(4),
.finance-table th:nth-child(5),
.finance-table td:nth-child(5),
.finance-table th:nth-child(8),
.finance-table td:nth-child(8),
.finance-table th:nth-child(9),
.finance-table td:nth-child(9) {
  width: 135px;
}

.finance-table th:nth-child(6),
.finance-table td:nth-child(6),
.finance-table th:nth-child(7),
.finance-table td:nth-child(7),
.finance-table th:nth-child(8),
.finance-table td:nth-child(8),
.finance-table th:nth-child(10),
.finance-table td:nth-child(10) {
  width: 145px;
}

.finance-input {
  min-width: 0;
}

.finance-search-field {
  width: min(280px, 100%);
}

.finance-period-field {
  width: min(180px, 100%);
}

.report-controls label.is-disabled {
  opacity: 0.58;
}

.report-controls label.is-disabled input {
  background: #edf5f8;
  cursor: not-allowed;
}

.finance-checkbox-cell {
  text-align: center;
}

.finance-checkbox {
  width: 20px;
  min-height: 20px;
  box-shadow: none;
}

.todo-table {
  min-width: 1100px;
  table-layout: fixed;
}

.password-table {
  min-width: 1080px;
  table-layout: fixed;
}

.password-table th:nth-child(3),
.password-table td:nth-child(3),
.password-table th:nth-child(5),
.password-table td:nth-child(5) {
  text-align: center;
}

.password-table th:nth-child(1),
.password-table td:nth-child(1) {
  width: 22%;
}

.password-table th:nth-child(2),
.password-table td:nth-child(2) {
  width: 22%;
}

.password-table th:nth-child(3),
.password-table td:nth-child(3) {
  width: 16%;
}

.password-table th:nth-child(4),
.password-table td:nth-child(4) {
  width: 24%;
}

.password-table th:nth-child(5),
.password-table td:nth-child(5) {
  width: 16%;
}

.todo-table th:nth-child(3),
.todo-table td:nth-child(3),
.todo-table th:nth-child(4),
.todo-table td:nth-child(4),
.todo-table th:nth-child(5),
.todo-table td:nth-child(5),
.todo-table th:nth-child(6),
.todo-table td:nth-child(6) {
  text-align: center;
}

.todo-notes-cell {
  max-width: 320px;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: pre-wrap;
}

.completed-task td:first-child {
  color: var(--muted);
  text-decoration: line-through;
}

.todo-status-input {
  min-width: 130px;
}

.todo-edit-input {
  min-width: 0;
}

.todo-edit-note {
  min-height: 58px;
  resize: vertical;
}

.password-search-field {
  width: min(320px, 100%);
}

.password-value-cell {
  font-weight: 400;
  letter-spacing: 0;
}

.password-note-cell {
  overflow-wrap: anywhere;
  text-align: left;
  white-space: pre-wrap;
}

.password-edit-input {
  min-width: 0;
}

.password-secret-input,
#passwordValueInput {
  -webkit-text-security: disc;
}

.password-edit-note {
  min-height: 58px;
  resize: vertical;
}

.save-button {
  color: var(--green);
}

.breakdown-table th,
.breakdown-table td {
  padding: 9px 10px;
}

.breakdown-table th:first-child,
.breakdown-table td:first-child {
  text-align: left;
}

.breakdown-table th:nth-child(2),
.breakdown-table td:nth-child(2),
.breakdown-table th:nth-child(3),
.breakdown-table td:nth-child(3) {
  text-align: center;
}

.breakdown-table th:nth-child(4),
.breakdown-table td:nth-child(4),
.breakdown-table th:nth-child(5),
.breakdown-table td:nth-child(5) {
  text-align: right;
}

.table-section {
  overflow: hidden;
}

.table-heading {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.table-tools {
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.edit-month-field {
  display: none;
  width: 180px;
}

.edit-view .edit-month-field {
  display: grid;
}

.search-field {
  width: min(280px, 100%);
}

.sales-person-filter-field {
  width: min(220px, 100%);
}

.table-wrap {
  overflow-x: auto;
  padding-bottom: 8px;
}

table {
  width: 100%;
  min-width: 1280px;
  border-collapse: collapse;
}

.table-section table {
  min-width: 1910px;
  table-layout: fixed;
}

.col-month {
  width: 150px;
}

.col-deadline {
  width: 150px;
}

.col-person {
  width: 150px;
}

.col-order {
  width: 360px;
}

.col-one-words {
  width: 170px;
}

.col-files {
  width: 160px;
}

.col-total-words {
  width: 190px;
}

.col-rate {
  width: 100px;
}

.col-software {
  width: 110px;
}

.col-software-amount {
  width: 160px;
}

.col-amount {
  width: 130px;
}

.col-actions {
  width: 110px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 10px;
  text-align: left;
  vertical-align: middle;
}

th {
  background: #e9f2f4;
  color: #1d3340;
  font-size: 0.82rem;
  white-space: nowrap;
}

td {
  color: #282520;
}

tbody tr:nth-child(even) {
  background: rgba(237, 246, 248, 0.42);
}

.table-section th:nth-child(5),
.table-section td:nth-child(5),
.table-section th:nth-child(6),
.table-section td:nth-child(6),
.table-section th:nth-child(7),
.table-section td:nth-child(7),
.table-section th:nth-child(8),
.table-section td:nth-child(8),
.table-section th:nth-child(10),
.table-section td:nth-child(10),
.table-section th:nth-child(11),
.table-section td:nth-child(11) {
  text-align: right;
}

.table-section th:nth-child(1),
.table-section td:nth-child(1),
.table-section th:nth-child(2),
.table-section td:nth-child(2),
.table-section th:nth-child(3),
.table-section td:nth-child(3),
.table-section th:nth-child(4),
.table-section td:nth-child(4) {
  text-align: left;
}

.table-section th:nth-child(9),
.table-section td:nth-child(9) {
  text-align: center;
}

.report-view .actions-column {
  display: none;
}

tbody tr:hover {
  background: #f3fbfc;
}

td input,
td select {
  min-height: 36px;
  border-color: transparent;
  background: transparent;
  padding: 6px 8px;
}

td input:hover,
td select:hover,
td input:focus,
td select:focus {
  background: #fff;
}

.order-input {
  min-width: 0;
}

.person-input {
  min-width: 0;
}

.number-input {
  min-width: 0;
  text-align: right;
}

.month-input,
.date-input {
  min-width: 0;
}

.software-input {
  min-width: 0;
}

.deadline-status-input {
  min-width: 112px;
}

.edit-action-input {
  min-width: 104px;
}

.hidden-field {
  display: none;
}

.readonly-order {
  max-width: 430px;
  line-height: 1.35;
}

.report-view td {
  height: 58px;
}

.amount-cell,
tfoot td {
  font-weight: 800;
}

.amount-cell,
.numeric-cell {
  text-align: right;
}

.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  white-space: nowrap;
}

.row-button {
  min-height: 34px;
  padding: 0 10px;
  font-size: 0.82rem;
}

.delete-button {
  color: var(--danger);
}

tfoot td {
  background: #e9f2f4;
  border-bottom: 0;
  border-top: 1px solid var(--line-strong);
  padding-top: 14px;
  padding-bottom: 14px;
  font-size: 1rem;
  white-space: nowrap;
}

.footer-label {
  text-align: left;
}

.empty-cell {
  height: 90px;
  color: var(--muted);
  text-align: center;
}

/* Color and polish pass */
.login-card,
.workspace-card,
.topbar,
.entry-panel,
.report-panel,
.deadline-panel,
.finance-panel,
.todo-panel,
.password-panel,
.todo-table-section,
.password-table-section,
.table-section {
  border-color: rgba(255, 255, 255, 0.76);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(245, 252, 255, 0.94)),
    var(--surface);
  box-shadow: 0 24px 58px rgba(21, 51, 68, 0.14);
}

.topbar {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 20px 22px;
}

.topbar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--violet), var(--amber), var(--coral));
}

.topbar h1,
.workspace-card h1,
.login-card h1 {
  color: #0f1d28;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.75);
}

.primary-button {
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 14px 30px rgba(14, 116, 132, 0.24);
  transition:
    transform 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: linear-gradient(135deg, #0fa391, #1d5fab);
  box-shadow: 0 18px 34px rgba(14, 116, 132, 0.3);
  transform: translateY(-1px);
}

.ghost-button,
.row-button,
.notification-clear-button {
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff, #f7fbfe);
  box-shadow: 0 8px 20px rgba(21, 51, 68, 0.08);
}

.ghost-button:hover,
.ghost-button:focus-visible,
.row-button:hover,
.row-button:focus-visible {
  background: linear-gradient(180deg, #ffffff, #edf9fb);
  box-shadow: 0 10px 22px rgba(14, 147, 132, 0.14);
}

.summary-grid {
  gap: 14px;
}

.metric {
  min-height: 112px;
  border-color: rgba(255, 255, 255, 0.74);
  border-radius: 16px;
  background:
    radial-gradient(circle at 92% 18%, rgba(55, 165, 216, 0.12), transparent 26%),
    linear-gradient(145deg, #ffffff, #f5fbff);
  box-shadow: 0 16px 38px rgba(21, 51, 68, 0.12);
}

.metric::before {
  height: 7px;
}

.metric span,
.mini-metric span,
label {
  color: #45576c;
}

.metric strong,
.mini-metric strong {
  color: #071824;
}

.mode-tabs {
  gap: 8px;
  border-color: rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px;
  box-shadow: 0 16px 36px rgba(21, 51, 68, 0.12);
}

.mode-tab {
  border-radius: 11px;
  transition:
    transform 150ms ease,
    color 150ms ease,
    background 150ms ease,
    box-shadow 150ms ease;
}

.mode-tab:hover {
  background: rgba(14, 147, 132, 0.09);
  color: var(--accent-dark);
}

.mode-tab.active {
  background: linear-gradient(135deg, var(--accent), var(--blue));
  box-shadow: 0 12px 24px rgba(14, 116, 132, 0.24);
  transform: translateY(-1px);
}

.mode-tab[data-mode="deadline"].active {
  background: linear-gradient(135deg, var(--amber), var(--coral));
  box-shadow: 0 12px 24px rgba(219, 93, 77, 0.2);
}

.mode-tab[data-mode="finance"].active {
  background: linear-gradient(135deg, var(--green), var(--blue));
}

.mode-tab[data-mode="edit"].active {
  background: linear-gradient(135deg, var(--violet), var(--pink));
}

.entry-panel,
.report-panel,
.deadline-panel,
.finance-panel,
.todo-panel,
.password-panel {
  border-radius: 18px;
  padding: 26px;
}

.entry-panel,
.report-panel,
.deadline-panel,
.finance-panel,
.todo-panel,
.password-panel,
.table-section,
.todo-table-section,
.password-table-section {
  border-top-width: 7px;
}

.panel-title {
  color: #055c6a;
  letter-spacing: 0;
}

.panel-title::after {
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--blue), var(--violet));
}

input,
select,
textarea,
.calculated-field strong {
  border-color: #afc6d3;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

input:hover,
select:hover,
textarea:hover {
  border-color: #82aebe;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  outline: 4px solid rgba(55, 165, 216, 0.16);
  box-shadow: 0 0 0 1px rgba(33, 103, 177, 0.12);
}

.calculated-field strong {
  background: linear-gradient(180deg, #f7fcfb, #eef9f7);
}

.mini-metric {
  position: relative;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.74);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 18%, rgba(121, 81, 210, 0.1), transparent 28%),
    linear-gradient(145deg, #ffffff, #f3fbff);
  box-shadow: 0 12px 28px rgba(21, 51, 68, 0.1);
  padding-top: 18px;
}

.mini-metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--accent), var(--sky));
}

.table-section,
.todo-table-section,
.password-table-section {
  border-radius: 18px;
}

.table-heading {
  background:
    radial-gradient(circle at 85% 15%, rgba(121, 81, 210, 0.08), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(247, 252, 255, 0.88));
}

.table-wrap,
.finance-table-wrap,
.breakdown-wrap {
  scrollbar-color: #9fb5c1 #edf5f8;
}

th {
  background: linear-gradient(180deg, #e4f4f7, #d9ebf1);
  color: #103044;
  font-weight: 800;
}

td {
  color: #182733;
}

tbody tr:nth-child(even) {
  background: rgba(229, 246, 250, 0.54);
}

tbody tr:hover {
  background: rgba(216, 245, 239, 0.58);
}

td input:hover,
td select:hover,
td input:focus,
td select:focus {
  background: #ffffff;
  border-color: #9dc0ce;
}

tfoot td {
  background: linear-gradient(180deg, #e6f4f7, #dcecf2);
  border-top: 1px solid #b9ced9;
}

.menu-notification {
  border-radius: 18px;
  box-shadow: 0 22px 54px rgba(21, 51, 68, 0.18);
}

.menu-notification.has-reminders {
  background:
    radial-gradient(circle at 94% 10%, rgba(219, 93, 77, 0.12), transparent 28%),
    linear-gradient(180deg, #fff7f4, #ffffff);
}

.workspace-card {
  border-radius: 24px;
  box-shadow: 0 28px 72px rgba(21, 51, 68, 0.18);
}

.workspace-button {
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(21, 51, 68, 0.16);
}

.workspace-button:hover {
  box-shadow: 0 24px 52px rgba(21, 51, 68, 0.24);
}

/* Focused polish for dashboard menu, finance, and deadline */
.workspace-menu {
  background:
    linear-gradient(120deg, rgba(14, 147, 132, 0.2), transparent 34%),
    linear-gradient(240deg, rgba(121, 81, 210, 0.2), transparent 38%),
    linear-gradient(20deg, rgba(219, 93, 77, 0.13), transparent 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent 45%);
}

.workspace-card {
  max-width: 900px;
  padding: 38px;
}

.workspace-card .eyebrow {
  color: #066173;
  font-size: 0.82rem;
}

.workspace-card h1 {
  max-width: 760px;
  margin-bottom: 30px;
  font-size: clamp(3rem, 7vw, 5.4rem);
}

.workspace-actions {
  gap: 18px;
}

.workspace-button {
  min-height: 132px;
  padding: 28px;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  isolation: isolate;
}

.workspace-button::before {
  width: 62px;
  height: 62px;
}

.workspace-button::after {
  right: 40px;
  bottom: 40px;
  width: 18px;
  height: 18px;
}

.workspace-button:hover {
  transform: translateY(-4px);
}

.primary-workspace-button {
  background:
    linear-gradient(135deg, rgba(14, 147, 132, 0.98), rgba(33, 103, 177, 0.98)),
    var(--accent);
}

.todo-workspace-button {
  background:
    linear-gradient(135deg, rgba(121, 81, 210, 0.98), rgba(174, 103, 255, 0.98)),
    var(--violet);
}

.password-workspace-button,
.password-workspace-button.blank-one {
  background:
    linear-gradient(135deg, rgba(35, 68, 164, 0.98), rgba(200, 79, 176, 0.98)),
    var(--violet);
}

.blank-workspace-button.blank-two {
  background:
    linear-gradient(135deg, rgba(20, 153, 106, 0.98), rgba(14, 147, 132, 0.98)),
    var(--green);
}

.workspace-logout-button {
  min-width: 118px;
  margin-top: 22px;
}

.deadline-panel {
  background:
    radial-gradient(circle at 92% 16%, rgba(217, 144, 19, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 241, 0.94));
}

.deadline-panel .panel-title::after,
.deadline-panel .mini-metric::before {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.deadline-panel .mini-metric:nth-child(1)::before {
  background: linear-gradient(90deg, var(--coral), #f07f3f);
}

.deadline-panel .mini-metric:nth-child(2)::before {
  background: linear-gradient(90deg, var(--amber), #e5bf42);
}

.deadline-panel .mini-metric:nth-child(3)::before {
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.deadline-panel .mini-metric:nth-child(4)::before {
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.deadline-view.table-section {
  border-top-color: var(--amber);
}

.deadline-view .table-heading {
  background:
    linear-gradient(90deg, rgba(217, 144, 19, 0.12), rgba(219, 93, 77, 0.08)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 250, 241, 0.9));
}

.deadline-row td:first-child {
  border-left: 5px solid var(--amber);
}

.deadline-overdue td:first-child {
  border-left-color: var(--danger);
}

.deadline-today td:first-child {
  border-left-color: var(--coral);
}

.deadline-revision td {
  background: rgba(121, 81, 210, 0.08);
}

.deadline-completed td {
  background: rgba(20, 153, 106, 0.08);
}

.deadline-status-input {
  border-color: rgba(217, 144, 19, 0.35);
  background: linear-gradient(180deg, #fffdf8, #fff7ec);
  font-weight: 800;
}

.finance-panel {
  background:
    radial-gradient(circle at 90% 14%, rgba(20, 153, 106, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 253, 249, 0.94));
}

.finance-panel .panel-title::after,
.finance-panel .mini-metric::before {
  background: linear-gradient(90deg, var(--green), var(--blue));
}

.finance-grid .mini-metric:nth-child(1)::before {
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.finance-grid .mini-metric:nth-child(2)::before {
  background: linear-gradient(90deg, var(--green), var(--accent));
}

.finance-grid .mini-metric:nth-child(3)::before {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.finance-grid .mini-metric:nth-child(4)::before {
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.finance-table-wrap {
  border: 1px solid rgba(215, 230, 238, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.finance-table th {
  background: linear-gradient(180deg, #dcf2ed, #d1e8ef);
}

.finance-row td:first-child {
  border-left: 5px solid #b8ccd6;
}

.finance-closed td:first-child {
  border-left-color: var(--green);
}

.finance-paid td:first-child {
  border-left-color: var(--blue);
}

.finance-partial td:first-child {
  border-left-color: var(--amber);
}

.finance-unpaid td:first-child {
  border-left-color: var(--coral);
}

.finance-revision td:first-child {
  border-left-color: var(--violet);
}

.finance-closed td {
  background: rgba(20, 153, 106, 0.08);
}

.finance-revision td {
  background: rgba(121, 81, 210, 0.08);
}

.finance-input {
  font-weight: 700;
}

.finance-checkbox {
  accent-color: var(--green);
}

.finance-balance-cell.balance-clear {
  color: var(--green);
}

.finance-balance-cell.balance-due {
  color: var(--danger);
}

.finance-table {
  min-width: 1480px;
}

.finance-table th:nth-child(7),
.finance-table td:nth-child(7) {
  width: 210px;
}

.finance-table th:nth-child(8),
.finance-table td:nth-child(8) {
  width: 180px;
}

.finance-table th {
  padding-left: 12px;
  padding-right: 12px;
}

/* Main Work Tracker page polish */
.app-shell {
  padding-top: 22px;
}

.app-shell .topbar {
  margin-bottom: 22px;
  background:
    radial-gradient(circle at 78% 18%, rgba(55, 165, 216, 0.14), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(239, 249, 255, 0.93));
}

.app-shell .topbar::after {
  content: "";
  position: absolute;
  right: 28px;
  bottom: 18px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(14, 147, 132, 0.16), transparent 62%);
  pointer-events: none;
}

.app-shell .topbar > * {
  position: relative;
  z-index: 1;
}

.app-shell .topbar h1 {
  font-size: clamp(2.8rem, 6vw, 5.2rem);
}

.app-shell .top-actions {
  align-items: center;
}

.summary-grid {
  margin-bottom: 20px;
}

.app-shell .metric {
  min-height: 126px;
  padding: 24px 22px 20px;
}

.app-shell .metric::after {
  content: "";
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--metric-color, linear-gradient(90deg, var(--accent), var(--blue)));
  opacity: 0.12;
}

.app-shell .metric span {
  font-size: 0.9rem;
}

.app-shell .metric strong {
  margin-top: 12px;
  font-size: clamp(1.75rem, 3.4vw, 2.45rem);
}

.app-shell .mode-tabs {
  margin-bottom: 18px;
}

.entry-panel {
  background:
    radial-gradient(circle at 92% 18%, rgba(14, 147, 132, 0.1), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 253, 250, 0.94));
}

.entry-panel .section-heading {
  align-items: start;
}

.entry-panel .panel-title {
  font-size: clamp(1.45rem, 2vw, 1.8rem);
}

.entry-form {
  gap: 18px 20px;
  border-radius: 16px;
}

.entry-form label span,
.calculated-field span {
  color: #40546a;
}

.entry-form input,
.entry-form select,
.calculated-field strong {
  min-height: 50px;
  border-color: #a9c5d3;
  background:
    linear-gradient(180deg, #ffffff, #fbfeff);
  font-weight: 700;
}

.entry-form input:focus,
.entry-form select:focus {
  border-color: var(--accent);
  outline-color: rgba(14, 147, 132, 0.17);
}

.amount-preview-field strong {
  background:
    linear-gradient(135deg, rgba(216, 245, 239, 0.85), rgba(239, 249, 255, 0.98));
  color: #063d4a;
  font-size: 1.1rem;
}

.entry-form .add-button {
  min-width: 160px;
  min-height: 50px;
  margin-top: 4px;
  font-size: 1rem;
}

.report-panel {
  background:
    radial-gradient(circle at 90% 16%, rgba(33, 103, 177, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 248, 255, 0.94));
}

.report-panel .mini-metric:nth-child(1)::before {
  background: linear-gradient(90deg, var(--accent), var(--green));
}

.report-panel .mini-metric:nth-child(2)::before {
  background: linear-gradient(90deg, var(--blue), var(--sky));
}

.report-panel .mini-metric:nth-child(3)::before {
  background: linear-gradient(90deg, var(--violet), var(--pink));
}

.report-panel .mini-metric:nth-child(4)::before {
  background: linear-gradient(90deg, var(--amber), var(--coral));
}

.breakdown-wrap {
  border: 1px solid rgba(215, 230, 238, 0.82);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  padding-bottom: 8px;
}

.breakdown-table {
  overflow: hidden;
}

#ordersTableSection {
  border-top-color: var(--violet);
}

#ordersTableSection .table-heading {
  padding: 22px;
  background:
    radial-gradient(circle at 84% 8%, rgba(121, 81, 210, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(248, 250, 255, 0.9));
}

#ordersTableSection .table-tools {
  gap: 14px;
}

#ordersTableSection .table-wrap {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(247, 252, 255, 0.78));
}

#ordersTableSection table th {
  background: linear-gradient(180deg, #e9edf9, #dceaf2);
}

#ordersTableSection tbody td:first-child {
  border-left: 5px solid rgba(121, 81, 210, 0.45);
}

#ordersTableSection tbody tr:hover td:first-child {
  border-left-color: var(--violet);
}

#ordersTableSection .amount-cell {
  color: #071824;
  font-size: 1.02rem;
}

#ordersTableSection tfoot td {
  background: linear-gradient(180deg, #eceffa, #e0eef3);
}

/* Clean professional login layout */
.login-screen {
  background:
    radial-gradient(circle at 18% 18%, rgba(14, 147, 132, 0.12), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(33, 103, 177, 0.1), transparent 32%),
    linear-gradient(135deg, #edf6f8, #f8fbfc 48%, #e9f3f6);
}

.login-screen::before,
.login-screen::after {
  display: none;
}

.login-card {
  width: min(540px, calc(100% - 32px));
  border: 1px solid #d4e3ea;
  border-top: 5px solid var(--accent);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 22px 56px rgba(21, 51, 68, 0.14);
  padding: 34px 38px 36px;
}

.login-card::before {
  display: none;
}

.login-card::after {
  display: none;
}

.login-card .eyebrow {
  margin-bottom: 8px;
  color: #0a6470;
  font-size: 0.76rem;
}

.login-card h1 {
  margin-bottom: 30px;
  padding: 0;
  color: #13202b;
  font-size: clamp(2rem, 4.2vw, 2.55rem);
  line-height: 1.05;
  white-space: nowrap;
}

.login-card label {
  color: #465a6b;
  font-size: 0.9rem;
}

.login-card input {
  min-height: 52px;
  border: 1px solid #adc5d1;
  border-radius: 10px;
  background: #ffffff;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-card input:focus {
  border-color: var(--accent);
  outline: 4px solid rgba(14, 147, 132, 0.14);
  box-shadow: none;
}

.login-button {
  min-height: 52px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0e9384, #2167b1);
  box-shadow: 0 12px 26px rgba(20, 96, 126, 0.2);
}

.login-button:hover,
.login-button:focus-visible {
  background: linear-gradient(135deg, #0b8175, #1d5e9f);
}

@media (max-width: 820px) {
  .app-shell,
  .todo-shell,
  .password-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 18px;
  }

  .topbar,
  .section-heading,
  .table-heading,
  .report-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .top-actions,
  .table-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .workspace-actions {
    grid-template-columns: 1fr;
  }

  .workspace-menu {
    align-items: stretch;
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .mode-tabs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

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

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

  .report-controls {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .table-tools {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .todo-table-tools {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

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

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

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

  .menu-notification {
    top: 12px;
    right: 12px;
    left: 12px;
    width: auto;
    max-height: 190px;
  }

  label,
  .wide-field,
  .search-field,
  .password-search-field,
  .calculated-field,
  .add-button {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 520px) {
  .summary-grid {
    grid-template-columns: 1fr;
  }

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

  .top-actions,
  .table-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .primary-button,
  .ghost-button {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  body.print-orders * {
    visibility: hidden;
  }

  body.print-orders .table-section,
  body.print-orders .table-section * {
    visibility: visible;
  }

  body.print-orders .table-section {
    position: absolute;
    inset: 0;
    width: 100%;
  }

  .app-shell {
    width: 100%;
    padding: 0;
  }

  .top-actions,
  .mode-tabs,
  .entry-panel,
  .search-field,
  .table-actions,
  .report-controls,
  .row-actions {
    display: none;
  }

  .summary-grid,
  .report-panel,
  .table-section {
    box-shadow: none;
  }

  .summary-grid,
  .report-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  table {
    min-width: 0;
  }

  td input,
  td select {
    border: 0;
  }
}
