/* SeycoInventory — CRUD/dashboard қосымша стильдері (style.css үстіне) */

.breadcrumb { font-size: 13px; color: var(--ink-soft, #8993a8); margin-bottom: 14px; }
.breadcrumb a { color: var(--ink-soft, #8993a8); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 10px;
}
.menu-tile {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #e7e2dc; border-radius: 12px;
  padding: 16px 18px; text-decoration: none; color: inherit;
  transition: box-shadow .15s, transform .15s;
}
.menu-tile:hover { box-shadow: 0 4px 18px rgba(0,0,0,.08); transform: translateY(-1px); }
.menu-tile .icon { font-size: 26px; line-height: 1; flex-shrink: 0; }
.menu-tile .name { font-weight: 600; font-size: 15px; }
.menu-tile .count { font-size: 12.5px; color: #8993a8; margin-top: 2px; }

.module-layout { display: flex; gap: 22px; align-items: flex-start; }
.module-sidebar {
  width: 220px; flex-shrink: 0; background: #fff; border: 1px solid #e7e2dc;
  border-radius: 12px; padding: 10px; max-height: 78vh; overflow-y: auto;
}
.module-sidebar a {
  display: flex; justify-content: space-between; gap: 8px;
  padding: 7px 10px; border-radius: 8px; text-decoration: none;
  color: #3a3430; font-size: 13.5px; margin-bottom: 2px;
}
.module-sidebar a:hover { background: #f4f0ea; }
.module-sidebar a.active { background: #1c8a55; color: #fff; }
.module-sidebar .cnt { color: #8993a8; font-size: 12px; }
.module-sidebar a.active .cnt { color: #d7f0e2; }
.module-main { flex: 1; min-width: 0; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.search-box { flex: 1; min-width: 200px; max-width: 360px; }
.search-box input { width: 100%; padding: 8px 12px; border: 1px solid #d8d2c9; border-radius: 8px; font-size: 13.5px; }

.data-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e7e2dc; border-radius: 12px; }
table.data-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data-table th, table.data-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid #eee6dd; white-space: nowrap; max-width: 260px; overflow: hidden; text-overflow: ellipsis; }
table.data-table th { background: #faf7f2; font-weight: 600; color: #6b6459; font-size: 12px; text-transform: uppercase; letter-spacing: .02em; }
table.data-table tbody tr:hover { background: #fbf9f5; }
table.data-table a.row-link { color: #1c8a55; text-decoration: none; font-weight: 600; }
table.data-table a.row-link:hover { text-decoration: underline; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pagination a, .pagination span { padding: 6px 12px; border-radius: 8px; border: 1px solid #e7e2dc; font-size: 13px; text-decoration: none; color: #3a3430; }
.pagination .current { background: #1c8a55; color: #fff; border-color: #1c8a55; }

.detail-card { background: #fff; border: 1px solid #e7e2dc; border-radius: 12px; padding: 22px 24px; }
.detail-card h1 { margin-top: 0; }
.detail-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px 24px; margin-top: 8px; }
.detail-fields .df-item .df-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: #8993a8; margin-bottom: 3px; }
.detail-fields .df-item .df-val { font-size: 14px; color: #241e1a; white-space: pre-wrap; word-break: break-word; }
.detail-fields .df-item.wide { grid-column: 1 / -1; }
.df-photo-link { display: inline-block; }
.df-photo { max-width: 260px; max-height: 260px; border-radius: 8px; border: 1px solid #e7e2dc; object-fit: cover; display: block; }
.df-file-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; background: #f6f2ec; border: 1px solid #e7e2dc; border-radius: 8px; color: #a4262c; font-size: 13.5px; text-decoration: none; }
.df-file-link:hover { background: #efe8df; }
.list-thumb { width: 36px; height: 36px; object-fit: cover; border-radius: 6px; border: 1px solid #e7e2dc; vertical-align: middle; }

.related-section { margin-top: 26px; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 12px; }
.related-card { background: #fff; border: 1px solid #e7e2dc; border-radius: 12px; padding: 14px 16px; }
.related-card .rc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.related-card .rc-head .rc-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.related-card .rc-head .rc-count { background: #f0ece4; color: #6b6459; font-size: 12px; padding: 1px 8px; border-radius: 20px; }
.related-card .rc-row { font-size: 13px; padding: 5px 0; border-bottom: 1px dashed #eee6dd; }
.related-card .rc-row:last-child { border-bottom: none; }
.related-card .rc-row a { color: #1c8a55; text-decoration: none; font-weight: 600; }
.related-card .rc-empty { font-size: 12.5px; color: #a39d92; padding: 6px 0; }
.related-card .rc-more { font-size: 12px; margin-top: 6px; display: inline-block; }

.form-card { display: block; background: #fff; border: 1px solid #e7e2dc; border-radius: 12px; padding: 24px; max-width: 760px; box-shadow: none; }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.form-grid2 .field.wide { grid-column: 1 / -1; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: #6b6459; margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 8px 10px; border: 1px solid #d8d2c9; border-radius: 8px; font-size: 13.5px; font-family: inherit;
}
.field textarea { min-height: 70px; resize: vertical; }

.badge-tag { display: inline-block; background: #eef6f0; color: #1c8a55; border-radius: 20px; padding: 2px 10px; font-size: 12px; font-weight: 600; }

/* Динамикалық іздеу (жаза бастағанда бірден нәтиже шығатын ашылмалы тізім) */
.live-search-results {
  position: absolute; top: 100%; left: 0; right: 0; margin-top: 6px;
  background: #fff; border: 1px solid #e7e2dc; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.12); max-height: 420px; overflow-y: auto;
  z-index: 50; padding: 6px 0; text-align: left;
}
.live-search-results .ls-group { padding: 4px 0; }
.live-search-results .ls-group + .ls-group { border-top: 1px solid #f0ece4; }
.live-search-results .ls-group-title {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  color: #8993a8; padding: 6px 14px 2px; display: flex; align-items: center; gap: 6px;
}
.live-search-results .ls-count { background: #f0ece4; color: #6b6459; font-size: 11px; padding: 0 7px; border-radius: 20px; }
.live-search-results .ls-item { display: flex; flex-direction: column; padding: 7px 14px; text-decoration: none; }
.live-search-results .ls-item:hover { background: #faf7f2; }
.live-search-results .ls-item-title { font-size: 13.5px; font-weight: 600; color: #241e1a; }
.live-search-results .ls-item-sub { font-size: 12px; color: #8993a8; }
.live-search-results .ls-empty { padding: 14px; font-size: 13px; color: #a39d92; text-align: center; }
.live-search-results .ls-all {
  display: block; text-align: center; padding: 9px; font-size: 12.5px; font-weight: 600;
  color: #1c8a55; text-decoration: none; border-top: 1px solid #f0ece4; margin-top: 4px;
}
.live-search-results .ls-all:hover { background: #faf7f2; }

@media (max-width: 760px) {
  .module-layout { flex-direction: column; }
  .module-sidebar { width: 100%; max-height: none; }
  .form-grid2 { grid-template-columns: 1fr; }
}
