@font-face {
  font-family: Takvin;
  src: url("/assets/NotoSansArabic-Regular.ttf");
}
@font-face {
  font-family: Takvin;
  src: url("/assets/NotoSansArabic-Bold.ttf");
  font-weight: 700;
}
:root {
  --ink: #173b36;
  --muted: #71847e;
  --green: #17634d;
  --mint: #e7f3e9;
  --line: #dfe7e1;
  --paper: #f5f7f2;
  --gold: #b58c47;
  --danger: #a7463b;
  --sidebar: 285px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Takvin, Tahoma, sans-serif;
  font-size: 15px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #80bd9c;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 31px;
  line-height: 1.65;
  margin-bottom: 4px;
  font-weight: 700;
}
h2 {
  font-size: 19px;
  margin-bottom: 5px;
}
h3 {
  font-size: 16px;
}
p {
  line-height: 1.95;
  color: var(--muted);
}
.primary,
.secondary,
.confirm-button {
  border-radius: 9px;
  border: 1px solid transparent;
  padding: 10px 18px;
  font-size: 14px;
  transition: 0.15s;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #0e4a39;
}
.secondary {
  border-color: var(--line);
  background: white;
  color: var(--ink);
}
.secondary:hover {
  background: var(--mint);
}
.text-button,
.danger-link {
  background: transparent;
  border: 0;
  padding: 7px 5px;
  color: var(--green);
  font-size: 14px;
}
.danger-link {
  color: var(--danger);
}
.confirm-button {
  background: var(--mint);
  border-color: #bdd4c1;
  color: var(--green);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  height: 42px;
  width: 42px;
  border-radius: 12px;
  background: var(--green);
  color: white;
  display: grid;
  place-items: center;
  font: 700 27px Georgia;
  transform: rotate(-6deg);
}
.brand b {
  display: block;
  font-size: 21px;
  line-height: 1.7;
}
.brand small {
  font-size: 11px;
  color: var(--muted);
}
.sidebar {
  position: fixed;
  right: 0;
  top: 0;
  width: var(--sidebar);
  height: 100dvh;
  background: #153c34;
  padding: 24px 18px 10px;
  color: #e2ede4;
  display: flex;
  flex-direction: column;
  z-index: 30;
}
.sidebar .brand {
  padding: 0 10px 24px;
  border-bottom: 1px solid #36564d;
}
.sidebar .brand-icon {
  background: #c8deba;
  color: #173d33;
}
.sidebar .brand small {
  color: #a9bdb1;
}
.sidebar .brand b {
  font-size: 20px;
}
.back-projects {
  background: transparent;
  border: 0;
  color: #c5d4c9;
  text-align: right;
  padding: 16px 10px;
  font-size: 13px;
}
.sidebar-label {
  font-size: 12px;
  color: #91aaa0;
  letter-spacing: 0.5px;
  padding: 10px;
}
.sidebar nav {
  overflow: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #567265 transparent;
}
.nav-step {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  text-align: right;
  width: 100%;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 8px;
  color: #bed0c5;
  margin: 2px 0;
}
.nav-step span {
  font-size: 12px;
  width: 19px;
  opacity: 0.7;
}
.nav-step b {
  font-size: 13px;
  font-weight: 400;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-step-sum {
  margin-inline-start: auto;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(200, 222, 186, 0.14);
  color: #c7dfb5;
  white-space: nowrap;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}
.nav-step-sum small {
  font-size: 9px;
  opacity: 0.85;
}
.nav-step.active .nav-step-sum {
  background: rgba(23, 61, 51, 0.18);
  color: #173d33;
}
.nav-step:hover:not(.active) .nav-step-sum {
  background: rgba(200, 222, 186, 0.22);
}
.nav-step i {
  font-style: normal;
  color: #c7dfb5;
  flex-shrink: 0;
}
.nav-step.active {
  background: #c8deba;
  color: #173d33;
}
.nav-step.active b {
  font-weight: 700;
}
.nav-step:hover:not(.active) {
  background: #244b40;
}
.sidebar-footer {
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 16px 12px 2px;
  border-top: 1px solid #36564d;
  display: flex;
  justify-content: space-between;
  color: #9cb4a6;
  font-size: 11px;
}
.workspace {
  margin-right: var(--sidebar);
  min-height: 100vh;
}
.topbar {
  flex-wrap: wrap;
  gap: 12px;
  min-height: 80px;
  height: auto;
  padding: 0 40px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fbfcf8;
}
.breadcrumbs {
  font-size: 13px;
  color: var(--muted);
}
.breadcrumbs span {
  margin: 0 14px;
  color: #a8b5ad;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.saved {
  font-size: 12px;
  color: #648476;
}
.page-content {
  max-width: 1400px;
  margin: auto;
  padding: 34px 40px 28px;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}
.eyebrow {
  font:
    10px/2.2 Arial,
    sans-serif;
  letter-spacing: 2px;
  color: var(--green);
  display: block;
  direction: ltr;
  text-align: right;
  margin-bottom: 4px;
}
.eyebrow i {
  font-style: normal;
  color: var(--gold);
}
.page-heading p {
  font-size: 14px;
  margin: 0;
}
.progress-mini {
  background: #eaf0e7;
  border: 1px solid #dce5d6;
  border-radius: 12px;
  padding: 10px 17px;
  text-align: center;
}
.progress-mini strong {
  font-size: 24px;
  display: block;
  line-height: 1.3;
}
.progress-mini small {
  font-size: 14px;
  color: var(--muted);
}
.progress-mini > span {
  font-size: 11px;
  color: var(--muted);
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 13px;
  margin-bottom: 20px;
  padding: 23px;
  box-shadow: 0 2px 4px #153c3403;
}
.section-heading {
  margin-bottom: 20px;
}
.section-heading p {
  font-size: 13px;
  margin: 4px 0 0;
}
.section-heading.horizontal {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px 20px;
}
.field {
  display: block;
  min-width: 0;
  margin: 0 0 10px;
}
.field > span {
  display: block;
  font-size: 13px;
  margin-bottom: 7px;
  color: #4c655d;
}
.input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d9e2da;
  background: #fbfcf9;
  border-radius: 8px;
  overflow: hidden;
  transition: 0.15s;
  min-width: 0;
}
.input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px #17634d10;
}
.input-wrap:has(input[aria-invalid="true"]) {
  border-color: var(--danger, #dc2626) !important;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15) !important;
}
.input-wrap input {
  width: 100%;
  border: 0;
  background: transparent;
  min-width: 0;
  padding: 11px 12px;
  outline: none;
}
.input-wrap input[data-price="true"] {
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
}
.input-wrap small {
  white-space: nowrap;
  direction: ltr;
  padding: 0 10px;
  font-size: 12px;
  color: #87998c;
  border-right: 1px solid #e3e9e0;
}
input[type="text"]:not(.input-wrap input):not(.login-form input) {
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fbfcf9;
  width: 90px;
}
input.highlight {
  box-shadow: inset 0 0 0 2px #c9943a;
}
input[aria-invalid="true"] {
  border: 2px solid var(--danger) !important;
}
select,
textarea {
  border: 1px solid #d9e2da;
  background: #fbfcf9;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--ink);
  max-width: 100%;
}
.field select,
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
}
.required {
  color: #b77b3b;
}
.line-picker {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.line-picker article {
  position: relative;
  background: #f5f8f1;
  border: 1px solid #e1eadb;
  border-radius: 12px;
  padding: 18px;
}
.line-picker h3 {
  min-height: 50px;
  line-height: 1.9;
  margin: 10px 0 15px;
}
.line-mark {
  font: 11px Arial;
  color: #759176;
  border: 1px solid #d2deca;
  border-radius: 5px;
  padding: 3px 7px;
}
.line-picker small {
  color: #7c8d7f;
  font-size: 12px;
}
.info {
  background: #f2f6ed;
  border-radius: 9px;
  padding: 13px 16px;
  margin-bottom: 20px;
}
.info summary,
details.panel > summary {
  cursor: pointer;
  color: var(--green);
  font-size: 14px;
}
.info p {
  margin: 10px 0 0;
  font-size: 13px;
}
details.panel > summary {
  font-size: 16px;
}
details.panel[open] > summary {
  margin-bottom: 22px;
}
.table-scroll {
  overflow-x: auto;
  margin-top: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: right;
}
th {
  background: #f3f6f0;
  color: #6f8175;
  font-weight: 400;
  padding: 13px 12px;
  white-space: nowrap;
  border-bottom: 1px solid #dce6d8;
}
td {
  padding: 12px;
  border-bottom: 1px solid #edf0e9;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdf9;
}
td .field {
  min-width: 110px;
  margin: 0;
}
td .field > span {
  display: none;
}
td .input-wrap {
  background: white;
}
td .input-wrap input {
  padding: 8px;
  min-width: 80px;
}
td .input-wrap small {
  font-size: 10px;
  padding: 0 5px;
}
td select {
  min-width: 110px;
}
td:first-child {
  min-width: 140px;
}
.empty-cell {
  text-align: center;
  padding: 32px;
  color: var(--muted);
}
.row-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.row-tools select {
  min-width: 220px;
}
.source {
  font: inherit;
  background: none;
  border: 0;
  color: var(--green);
  padding: 0;
  text-align: inherit;
  cursor: pointer;
  line-height: 1.8;
}
.source span {
  opacity: 0.5;
  font-size: 14px;
  margin-right: 4px;
}
.source:hover {
  text-decoration: underline;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #596e62;
  padding: 12px 0;
  line-height: 1.8;
}
.check input {
  accent-color: var(--green);
  width: 17px;
  height: 17px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 22px;
}
.metric {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
  display: flex;
  flex-direction: column;
}
.metric > span {
  font-size: 13px;
  color: var(--muted);
}
.metric strong {
  font-size: 31px;
  line-height: 1.8;
  margin-top: 12px;
  letter-spacing: -1px;
}
.metric small {
  font-size: 12px;
  color: var(--muted);
}
.metric.accent {
  background: #e5f0df;
  border-color: #ccddc2;
}
.negative {
  color: var(--danger);
}
.positive {
  color: var(--green);
}
.notice {
  background: #ecf2e7;
  border: 1px solid #d8e5ce;
  border-radius: 9px;
  font-size: 13px;
  line-height: 2;
  padding: 15px 19px;
  margin-bottom: 22px;
  color: #526b51;
}
.validation {
  background: #fff7e9;
  border: 1px solid #e9d4ae;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 13px;
  margin-bottom: 18px;
  color: #8b642a;
}
.validation summary,
.warnings summary {
  cursor: pointer;
}
.validation ul {
  padding-right: 17px;
}
.validation button {
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: right;
  line-height: 2.1;
  cursor: pointer;
}
.warnings {
  background: #f7f3e9;
  padding: 11px 18px;
  border-radius: 8px;
  font-size: 12px;
  margin-bottom: 18px;
  color: #806b48;
}
.warnings li {
  line-height: 2.2;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 23px;
  border-top: 1px solid var(--line);
}
.footer-actions {
  flex-wrap: wrap;
  display: flex;
  gap: 12px;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.management {
  line-height: 2.3;
  font-size: 14px;
  white-space: pre-line;
}
.management p {
  color: #53695e;
  margin-bottom: 12px;
}
.export-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.export-card {
  border: 1px solid #d8e3d4;
  background: #f7faf4;
  border-radius: 11px;
  text-align: right;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--ink);
}
.export-card b {
  font: 700 23px Arial;
}
.export-card span {
  font-size: 13px;
  color: var(--muted);
}
.export-card em {
  font-style: normal;
  font-size: 13px;
  color: var(--green);
  margin-top: 12px;
}
.export-card:hover:enabled {
  border-color: var(--green);
}
.export-card.busy {
  opacity: 0.5;
}
.review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}
.review-grid > div {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid #edf0e9;
  font-size: 13px;
}
.review-grid button {
  margin-right: auto;
  font-size: 12px;
}
.review-dot {
  color: #aeb9af;
  font-size: 18px;
}
.review-dot.done {
  color: var(--green);
}

.dashboard {
  max-width: 1250px;
  padding: 30px 55px;
  margin: auto;
}
.dashboard > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 25px;
}
.pill {
  padding: 7px 15px;
  background: #e7efe1;
  border: 1px solid #dbe4d3;
  border-radius: 20px;
  color: #67815c;
  font-size: 12px;
}
.hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  align-items: center;
  padding: 60px 0 45px;
  gap: 40px;
}
.hero h1 {
  font-size: 54px;
  line-height: 1.55;
  letter-spacing: -1px;
  margin: 12px 0 20px;
}
.hero p {
  max-width: 390px;
  font-size: 15px;
  margin-bottom: 25px;
}
.hero .eyebrow {
  font-size: 13px;
  color: #8c9c7d;
}
.hero-visual {
  height: 320px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse, #e5eedc 0%, transparent 68%);
}
.orbit {
  position: absolute;
  border: 1px solid #cbd9be;
  border-radius: 50%;
  transform: rotate(-28deg);
  width: 330px;
  height: 210px;
}
.orbit-two {
  transform: rotate(28deg);
  border-color: #d8dec6;
  width: 290px;
  height: 240px;
}
.visual-core {
  height: 130px;
  width: 130px;
  border-radius: 28px;
  background: #225644;
  color: #d5e5be;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  font: 700 40px Georgia;
  box-shadow: 15px 20px 40px #1f4d3422;
  transform: rotate(-5deg);
}
.visual-core small {
  font: 9px Arial;
  letter-spacing: 4px;
  margin-top: 5px;
}
.orbit-label {
  position: absolute;
  background: #fafcf7;
  border: 1px solid #d5dfcb;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 12px;
  color: #65805b;
}
.label-one {
  top: 40px;
  right: 55px;
}
.label-two {
  bottom: 40px;
  right: 80px;
}
.label-three {
  left: 10px;
  top: 145px;
}
.projects {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.project-card {
  padding: 22px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.project-monogram {
  display: inline-grid;
  place-items: center;
  background: #e7f0e0;
  color: #638456;
  border-radius: 9px;
  width: 38px;
  height: 38px;
  font-size: 22px;
}
.project-tag {
  float: left;
  color: #8d9f89;
  font-size: 11px;
  margin-top: 10px;
}
.project-card h3 {
  font-size: 18px;
  margin: 18px 0 8px;
}
.project-card p {
  font-size: 12px;
}
.project-card > div:last-child {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eef1e9;
  padding-top: 10px;
}
.empty-state {
  text-align: center;
  padding: 50px 20px;
  border: 1px dashed #cbd7c4;
  border-radius: 12px;
  background: #f9fbf5;
  margin: 20px 0;
}
.empty-symbol {
  display: block;
  font: 34px Arial;
  color: #96ab86;
  margin-bottom: 20px;
}
.empty-state p {
  font-size: 14px;
}
.dashboard-footer {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #84937d;
  padding: 35px 0 20px;
}
.loading {
  padding: 100px 30px;
  text-align: center;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  max-width: 470px;
  padding: 14px 20px;
  border-radius: 10px;
  background: #173d33;
  color: white;
  box-shadow: 0 10px 30px #153c3420;
  font-size: 14px;
  line-height: 1.9;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: 0.2s;
  z-index: 100;
}
#toast.visible {
  opacity: 1;
  transform: translateY(0);
}
#toast.error {
  background: #964b3d;
}
@media (min-width: 1550px) {
  .page-content {
    padding-top: 42px;
  }
}
@media (max-width: 1150px) {
  :root {
    --sidebar: 245px;
  }
  .page-content {
    padding: 28px 24px;
  }
  .topbar {
  flex-wrap: wrap;
  gap: 12px;
  min-height: 80px;
  height: auto;
    padding: 0 24px;
  }
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .line-picker h3 {
    font-size: 14px;
  }
  .dashboard {
    padding: 25px 35px;
  }
  .hero h1 {
    font-size: 45px;
  }
  .hero-visual {
    transform: scale(0.88);
  }
}
@media (max-width: 800px) {
  :root {
    --sidebar: 0px;
  }
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 14px 18px;
  }
  .sidebar .brand {
    border: 0;
    padding: 0;
  }
  .sidebar .brand b {
    font-size: 18px;
  }
  .sidebar .brand-icon {
    height: 33px;
    width: 33px;
  }
  .sidebar .brand small,
  .sidebar-label,
  .sidebar-footer,
  .back-projects {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 12px;
    padding-bottom: 3px;
    gap: 6px;
  }
  .nav-step {
    min-width: max-content;
    width: auto;
    padding: 7px 10px;
  }
  .nav-step b {
    font-size: 12px;
  }
  .nav-step span {
    width: auto;
  }
  .workspace {
    margin: 0;
  }
  .topbar {
  flex-wrap: wrap;
  gap: 12px;
  min-height: 80px;
  height: auto;
    height: auto;
    min-height: 65px;
    padding: 12px 18px;
    gap: 10px;
  }
  .breadcrumbs {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-actions {
    gap: 7px;
  }
  .saved {
    display: none;
  }
  .top-actions button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .page-content {
    padding: 25px 17px;
  }
  .panel {
    padding: 18px 14px;
  }
  .page-heading {
    margin-bottom: 20px;
  }
  .page-heading h1 {
    font-size: 26px;
  }
  .progress-mini {
    padding: 8px 12px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px 12px;
  }
  .metric strong {
    font-size: 25px;
  }
  .metric > span {
    font-size: 12px;
  }
  .line-picker {
    grid-template-columns: 1fr;
  }
  .line-picker article {
    padding: 14px;
  }
  .line-picker h3 {
    min-height: 0;
  }
  .review-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
    padding-top: 40px;
  }
  .hero-visual {
    display: none;
  }
  .dashboard {
    padding: 22px;
  }
  .dashboard .hero h1 {
    font-size: 43px;
  }
  .project-grid {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-footer {
    display: block;
    line-height: 2.5;
  }
  .dashboard-footer span {
    display: block;
  }
  .page-footer {
    gap: 10px;
  }
  .footer-actions {
  flex-wrap: wrap;
    gap: 7px;
  }
  .footer-actions button {
    font-size: 12px;
    padding: 9px;
  }
  .export-grid {
    gap: 10px;
  }
  .export-card {
    padding: 15px 10px;
  }
  .export-card span {
    font-size: 12px;
  }
}
@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    grid-template-columns: 1fr;
  }
  .metric strong {
    font-size: 29px;
  }
  .export-grid {
    grid-template-columns: 1fr;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }
  .pill {
    font-size: 10px;
    padding: 5px 10px;
  }
  .brand b {
    font-size: 19px;
  }
  .progress-mini {
    display: none;
  }
  .page-heading h1 {
    font-size: 24px;
  }
  .row-tools select {
    min-width: 150px;
    max-width: 100%;
  }
  .eyebrow {
    font-size: 10px;
  }
  .page-footer {
    align-items: flex-start;
  }
  .footer-actions {
  flex-wrap: wrap;
    flex-direction: column;
  }
  .row-tools button {
    padding: 9px 12px;
  }
  #toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}


/* --- Authentication & RBAC Styles --- */
.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--paper, #f6f8f6);
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: #ffffff;
  border: 1px solid #e1e7e4;
  border-radius: 14px;
  padding: 36px 32px;
  box-shadow: 0 10px 30px rgba(19, 120, 90, 0.08);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.login-header h2 {
  font-size: 20px;
  margin: 0 0 6px 0;
  color: var(--ink, #17342e);
}

.login-header p {
  font-size: 14px;
  margin: 0;
  color: #557067;
}

.login-error {
  padding: 12px 16px;
  background: #fdf2f2;
  border: 1px solid #f8b4b4;
  border-radius: 8px;
  color: #9b1c1c;
  font-size: 14px;
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.login-form label {
  font-size: 14px;
  font-weight: 600;
  color: #17342e;
}

.login-form input,
.login-form input[type="text"],
.login-form input[type="password"],
#login-username,
#login-password {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  box-sizing: border-box !important;
  height: 48px !important;
  padding: 12px 16px !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  color: #17342e !important;
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1.5px solid #c5d2cc !important;
  border-radius: 8px !important;
  outline: none !important;
  direction: rtl !important;
  text-align: right !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s !important;
}

.login-form input::placeholder,
#login-username::placeholder,
#login-password::placeholder {
  color: #718b82 !important;
  opacity: 1 !important;
  font-size: 14px !important;
}

.login-form input:focus,
#login-username:focus,
#login-password:focus {
  border-color: var(--green, #13785a) !important;
  box-shadow: 0 0 0 3px rgba(19, 120, 90, 0.18) !important;
  background-color: #ffffff !important;
  color: #17342e !important;
}

.login-form input:-webkit-autofill,
.login-form input:-webkit-autofill:hover, 
.login-form input:-webkit-autofill:focus {
  -webkit-text-fill-color: #17342e !important;
  -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

.login-submit-btn {
  width: 100%;
  height: 48px;
  padding: 12px;
  font-size: 16px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 6px;
  background: var(--green, #13785a);
  color: #ffffff;
  border: none;
  box-shadow: 0 2px 6px rgba(19, 120, 90, 0.25);
  transition: background-color 0.2s, transform 0.1s;
}

.login-submit-btn:hover {
  background: #0f6249;
}

.role-badge-tag {
  font-weight: 700;
  font-size: 12px;
}
.role-badge-tag.admin { color: #854d0e; }
.role-badge-tag.manager { color: #1e40af; }
.role-badge-tag.viewer { color: #475569; }

.role-pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.role-pill.admin { background: #fef08a; color: #713f12; }
.role-pill.manager { background: #dbeafe; color: #1e3a8a; }
.role-pill.viewer { background: #f1f5f9; color: #334155; }

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid #dce4e0;
}

.user-profile-badge .user-name {
  color: #2c4a40;
}

.logout-btn {
  background: transparent;
  border: none;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
}
.logout-btn:hover {
  text-decoration: underline;
}

.sidebar-user {
  margin-top: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.03);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}
.sidebar-user strong {
  display: block;
  color: #17342e;
}

.logout-link {
  background: transparent;
  border: none;
  color: #b91c1c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.readonly-pill {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.viewer-notice-badge {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1e40af;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13px;
  margin-top: 8px;
}

.viewer-disabled {
  opacity: 0.75;
  cursor: not-allowed !important;
}
