/* reset.css */
/* CSS Reset and baseline setup for administrative CRM styling. */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -moz-tab-size: 4;
  tab-size: 4;
  height: 100%;
  /* Prevent horizontal scroll at the root level */
  overflow-x: hidden;
}

body {
  height: 100%;
  font-family: 'Noto Kufi Arabic', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  /* Ensure body never exceeds viewport width regardless of content */
  max-width: 100vw;
}

/* Typography elements reset */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

/* Link reset */
a {
  color: inherit;
  text-decoration: none;
}

/* List resets */
ol, ul {
  list-style: none;
}

/* Interactive elements resets */
button, input, select, textarea {
  font-family: inherit;
  font-size: 100%;
  line-height: inherit;
  border: none;
  background: transparent;
  outline: none;
  /* Prevent inputs from overflowing their containers */
  max-width: 100%;
}

button {
  cursor: pointer;
  /* Minimum touch target size per accessibility guidelines */
  min-height: 44px;
}

textarea {
  resize: vertical;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}
