/* Mobil uygulama kabuğu. Masaüstü (901px ve üzeri) düzenine karışmaz. */
html.app-shell body {
  margin: 0;
  background: #f2f4f7 !important;
  color: #111827;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Arial, sans-serif;
  -webkit-tap-highlight-color: transparent;
  text-size-adjust: 100%;
}

html.app-shell #root {
  background: #f2f4f7 !important;
  overflow-x: hidden;
  overflow-x: clip;
}

html.app-shell header {
  padding: 8px 12px !important;
  padding-top: calc(8px + env(safe-area-inset-top)) !important;
  box-shadow: none !important;
  border-bottom: 1px solid #e6e8ee !important;
  background: #fff !important;
}

html.app-shell header img[alt="Wepra Logo"] {
  display: none !important;
}

html.app-shell header img[alt="Kayasoft Logo"] {
  height: 22px !important;
  max-width: 96px !important;
}

html.app-shell .app-hide {
  display: none !important;
}

html.app-shell .app-sync {
  margin: 8px 12px 0 !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}

html.app-shell main {
  padding: 8px 12px calc(84px + env(safe-area-inset-bottom)) !important;
  max-width: 100% !important;
  animation: none !important;
}

html.app-shell main > div {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

html.app-shell .app-tabbar {
  position: fixed !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  top: auto !important;
  z-index: 1100 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  gap: 2px !important;
  margin: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 6px 10px calc(6px + env(safe-area-inset-bottom)) !important;
  background: #ffffff !important;
  border-top: 1px solid #e5e7eb !important;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06) !important;
  grid-template-columns: none !important;
}

html.app-shell .app-tabbar > .card-hover {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  min-height: 54px !important;
  height: auto !important;
  margin: 0 !important;
  padding: 6px 2px 4px !important;
  border-radius: 12px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #64748b !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  overflow: hidden !important;
  position: relative !important;
  cursor: pointer;
}

html.app-shell .app-tabbar > .card-hover > * {
  display: none !important;
}

html.app-shell .app-tabbar > .card-hover::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

html.app-shell .app-tabbar > .card-hover::after {
  content: attr(data-tab-label);
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-align: center;
  color: inherit;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

html.app-shell .app-tabbar > .card-hover.app-tab-on {
  color: #1d4ed8 !important;
  background: #eff4ff !important;
}

html.app-shell .app-tabbar > .card-hover.app-tab-on::after {
  font-weight: 700;
}

html.app-shell .app-tabbar > [data-tab-key="cari"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E");
}

html.app-shell .app-tabbar > [data-tab-key="stok"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.3 7 12 12 20.7 7'/%3E%3Cline x1='12' y1='22' x2='12' y2='12'/%3E%3Cpath d='M16.5 9.4 7.5 4.2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16z'/%3E%3Cpolyline points='3.3 7 12 12 20.7 7'/%3E%3Cline x1='12' y1='22' x2='12' y2='12'/%3E%3Cpath d='M16.5 9.4 7.5 4.2'/%3E%3C/svg%3E");
}

html.app-shell .app-tabbar > [data-tab-key="finans"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12V7H5a2 2 0 0 1 0-4h14v4'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h16v-5'/%3E%3Cpath d='M18 12a2 2 0 0 0 0 4h4v-4z'/%3E%3C/svg%3E");
}

html.app-shell .app-tabbar > [data-tab-key="cek"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z'/%3E%3Cpolyline points='14 2 14 8 20 8'/%3E%3Cline x1='16' y1='13' x2='8' y2='13'/%3E%3Cline x1='16' y1='17' x2='8' y2='17'/%3E%3C/svg%3E");
}

html.app-shell .app-tabbar > [data-tab-key="gelir"]::before,
html.app-shell .app-tabbar > [data-tab-key="diger"]::before {
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='20' x2='12' y2='10'/%3E%3Cline x1='18' y1='20' x2='18' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='16'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='20' x2='12' y2='10'/%3E%3Cline x1='18' y1='20' x2='18' y2='4'/%3E%3Cline x1='6' y1='20' x2='6' y2='16'/%3E%3C/svg%3E");
}

html.app-shell input,
html.app-shell select,
html.app-shell textarea {
  font-size: 16px !important;
  border-radius: 12px !important;
  min-height: 44px;
  max-width: 100%;
  box-sizing: border-box;
}

html.app-shell button,
html.app-shell a {
  touch-action: manipulation;
}

html.app-shell img[alt="Wepra Logo"] {
  max-width: 210px !important;
  max-height: 56px !important;
}

.app-sortbar {
  display: none;
}

html.app-shell .app-sortbar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-sizing: border-box;
  width: 100%;
}

html.app-shell .app-sort-label {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}

html.app-shell .app-sortbar select {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #111827;
  font-weight: 600;
}

html.app-shell .app-sort-dir {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #dbe4ff !important;
  border-radius: 12px;
  background: #eff4ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
}

html.app-shell .app-sort-icon {
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5'/%3E%3Cpath d='m5 12 7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 0.15s ease;
}

html.app-shell .app-sort-dir[data-dir="desc"] .app-sort-icon {
  transform: rotate(180deg);
}

html.app-shell .app-table {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  border-collapse: separate !important;
}

html.app-shell .app-table thead {
  display: none !important;
}

html.app-shell .app-table tbody,
html.app-shell .app-table tr,
html.app-shell .app-table td {
  display: block !important;
  width: auto !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

html.app-shell .app-table tr {
  background: #fff !important;
  border: 1px solid #e6e8ee !important;
  border-radius: 14px !important;
  padding: 10px 12px !important;
  margin: 0 0 8px !important;
}

html.app-shell .app-table td {
  padding: 3px 0 !important;
  border: 0 !important;
  background: transparent !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  text-align: left !important;
  font-size: 13px !important;
  color: #111827;
}

html.app-shell .app-table td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 1px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ca3af;
}

html.app-shell .app-table td:empty,
html.app-shell .app-table td:not([data-label])::before {
  content: none;
}

html.app-shell:has(.app-sheet-mask) .app-tabbar {
  display: none !important;
}

html.app-shell .app-sheet-mask {
  align-items: flex-end !important;
  justify-content: flex-end !important;
  padding: 0 !important;
}

html.app-shell .app-sheet {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border-radius: 18px 18px 0 0 !important;
  max-height: min(92vh, 920px) !important;
  padding-bottom: calc(16px + env(safe-area-inset-bottom)) !important;
}
