@import "tailwindcss";

:root {
  --background: #f7f8f6;
  --surface: #ffffff;
  --surface-muted: #eef1ef;
  --ink: #17201d;
  --ink-soft: #56635f;
  --ink-faint: #87928e;
  --primary: #176b68;
  --primary-strong: #0e5553;
  --accent: #d75845;
  --border: #dce2df;
  --focus: rgba(23, 107, 104, 0.25);
  --danger: #a63a3c;
}

* {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  background: var(--background);
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--background);
  color: var(--ink);
  font-family: var(--font-noto-kufi-arabic), Tahoma, Arial, sans-serif;
  letter-spacing: 0;
}

button,
input,
textarea,
select {
  font: inherit;
  min-width: 0;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
video,
canvas {
  max-width: 100%;
}

input[type="file"] {
  height: auto;
  min-height: 2.75rem;
  padding-block: 0.45rem;
}

input[type="file"]::file-selector-button {
  margin-inline-end: 0.65rem;
  border: 0;
  border-radius: 0.375rem;
  background: var(--surface-muted);
  padding: 0.4rem 0.65rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
}

::selection {
  background: #bde0dd;
  color: #0e3f3d;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
}

@media (max-width: 639px) {
  input,
  textarea,
  select {
    font-size: 16px;
  }
}
