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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background-color: #efe7da;
  color: #1a1a1a;
  line-height: 1.6;
}

.screen {
  display: none;
}
.screen.active {
  display: block;
}

.tabs-navigation {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  gap: 8px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.tab-btn {
  background: none;
  border: none;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #b3907a;
  font-size: 15px;
  font-weight: 500;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
  position: relative;
}
.tab-btn:hover {
  color: #1a1a1a;
  background-color: rgba(0, 0, 0, 0.02);
}
.tab-btn.active {
  color: #c85931;
  border-bottom-color: #c85931;
}
.tab-btn svg {
  flex-shrink: 0;
}

.badge {
  background-color: #c85931;
  color: #ffffff;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-box {
  width: 100%;
  max-width: 450px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 40px 32px;
}

.login-header {
  text-align: center;
  margin-bottom: 32px;
}
.login-header h1 {
  font-size: 32px;
  font-weight: bold;
  color: #4c1d17;
  margin-bottom: 8px;
}
.login-header p {
  color: #b3907a;
  font-size: 14px;
}

.auth-form {
  width: 100%;
}

.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4c1d17;
  margin-bottom: 4px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e4cca4;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s;
  font-family: inherit;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #c85931;
}
.form-group textarea {
  resize: vertical;
  min-height: 80px;
}
.form-group small {
  display: block;
  font-size: 12px;
  color: #b3907a;
  margin-top: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}
@media (max-width: 768px) {
  .form-row-3 {
    grid-template-columns: 1fr;
  }
}

.error-message {
  color: #c85931;
  font-size: 14px;
  margin-bottom: 12px;
  min-height: 20px;
}

.btn {
  padding: 10px 16px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn:hover {
  opacity: 0.8;
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-primary {
  background-color: #c85931;
  color: #ffffff;
  width: 100%;
  justify-content: center;
}

.btn-secondary {
  background-color: #c85931;
  color: #ffffff;
}

.btn-accent {
  background-color: #e1a367;
  color: #ffffff;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid #e4cca4;
  color: #1a1a1a;
  width: 100%;
  justify-content: center;
}

.btn-danger {
  background-color: #f44336;
  color: #ffffff;
}

.btn-success {
  background-color: #4caf50;
  color: #ffffff;
}

.btn-link {
  background: none;
  border: none;
  color: #b3907a;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
}
.btn-link:hover {
  text-decoration: underline;
}

.btn-small {
  padding: 6px 12px;
  font-size: 13px;
}

.header {
  background-color: #4c1d17;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header-content h1 {
  font-size: 24px;
  font-weight: bold;
  color: #e4cca4;
  margin-bottom: 4px;
}
.header-content p {
  font-size: 14px;
  color: #b3907a;
}

.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.alert-box {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin-bottom: 24px;
  border: 2px solid #c85931;
}

.alert-content {
  display: flex;
  gap: 12px;
}
.alert-content svg {
  flex-shrink: 0;
  color: #c85931;
}
.alert-content h3 {
  font-weight: bold;
  color: #c85931;
  margin-bottom: 8px;
}
.alert-content div {
  flex: 1;
}
.alert-content div > div {
  font-size: 14px;
  line-height: 1.5;
}
.alert-content div > div div {
  margin-bottom: 4px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.stat-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: 28px;
  font-weight: bold;
  color: #1a1a1a;
}

.stat-label {
  font-size: 14px;
  color: #b3907a;
}

.filters-container {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  margin-bottom: 24px;
}

.filters-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .filters-row {
    grid-template-columns: 1fr;
  }
}

.search-box {
  position: relative;
}
.search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #b3907a;
}
.search-box input {
  width: 100%;
  padding: 10px 12px 10px 40px;
  border: 1px solid #e4cca4;
  border-radius: 6px;
  font-size: 14px;
}
.search-box input:focus {
  outline: none;
  border-color: #c85931;
}

.size-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.size-filters button {
  padding: 6px 16px;
  border: none;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  background-color: #e4cca4;
  color: #1a1a1a;
  transition: all 0.2s;
}
.size-filters button.active {
  background-color: #c85931;
  color: #ffffff;
}

.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.products-list {
  display: grid;
  gap: 16px;
}

.product-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
}
.product-card.low-stock {
  border: 2px solid #c85931;
}

.product-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 12px;
}

.product-info {
  flex: 1;
}
.product-info h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.product-info .stock-badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
  background-color: #c85931;
  color: #ffffff;
}
.product-info .product-details {
  font-size: 14px;
  color: #b3907a;
}
.product-info .product-details div {
  margin-bottom: 2px;
}
.product-info .product-details div span {
  font-weight: 500;
  color: #1a1a1a;
}

.product-actions {
  display: flex;
  gap: 8px;
}
.product-actions button {
  padding: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.product-actions button:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.product-footer {
  padding-top: 12px;
  border-top: 1px solid #e4cca4;
}

.stock-display {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
  text-align: center;
  margin-bottom: 12px;
}
.stock-display > div .stock-label {
  font-size: 12px;
  color: #b3907a;
  margin-bottom: 4px;
}
.stock-display > div .stock-value {
  font-size: 24px;
  font-weight: bold;
}
.stock-display > div .stock-value.total {
  color: #c85931;
}

.stock-edit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.stock-edit .form-group {
  margin-bottom: 0;
}

.stock-edit-actions {
  display: flex;
  gap: 8px;
}
.stock-edit-actions button {
  flex: 1;
}

.btn-modify {
  width: 100%;
  background-color: #e1a367;
  color: #ffffff;
  padding: 10px;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn-modify:hover {
  opacity: 0.8;
}

.transfers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.transfers-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
}

.transfer-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 16px;
  border: 1px solid #e4cca4;
  background: #ffffff;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  color: #1a1a1a;
  transition: all 0.2s;
}
.filter-btn:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
.filter-btn.active {
  background-color: #c85931;
  color: #ffffff;
  border-color: #c85931;
}

.transfers-list {
  display: grid;
  gap: 16px;
}

.transfer-card {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-left: 4px solid;
}
.transfer-card.in-transit {
  border-left-color: #ff9800;
}
.transfer-card.completed {
  border-left-color: #4caf50;
}
.transfer-card.cancelled {
  border-left-color: #f44336;
}

.transfer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 16px;
}
.transfer-card-header h3 {
  font-size: 18px;
  font-weight: bold;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.transfer-card-header h3 .status-badge {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}
.transfer-card-header h3 .status-badge.in-transit {
  background-color: #fff3cd;
  color: #856404;
}
.transfer-card-header h3 .status-badge.completed {
  background-color: #d4edda;
  color: #155724;
}
.transfer-card-header h3 .status-badge.cancelled {
  background-color: #f8d7da;
  color: #721c24;
}

.transfer-actions {
  display: flex;
  gap: 8px;
}

.transfer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}
.transfer-info-grid .info-item label {
  display: block;
  font-size: 12px;
  color: #b3907a;
  margin-bottom: 4px;
}
.transfer-info-grid .info-item .info-value {
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
}

.transfer-products {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4cca4;
}
.transfer-products h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}
.transfer-products .product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
}
.transfer-products .product-item .product-name {
  color: #1a1a1a;
}
.transfer-products .product-item .product-qty {
  font-weight: 600;
  color: #c85931;
}
.transfer-products .product-item .product-qty.difference {
  color: #f44336;
  font-size: 12px;
}

.transfer-timeline {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4cca4;
  font-size: 13px;
  color: #b3907a;
}
.transfer-timeline div {
  margin-bottom: 4px;
}

.transfer-products-section {
  margin: 24px 0;
  padding: 16px;
  background-color: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
}
.transfer-products-section .section-header {
  margin-bottom: 16px;
}
.transfer-products-section .section-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
}

.add-product-transfer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .add-product-transfer {
    grid-template-columns: 1fr;
  }
}
.add-product-transfer .product-select {
  flex: 1;
}
.add-product-transfer .qty-input {
  width: 120px;
}
@media (max-width: 768px) {
  .add-product-transfer .qty-input {
    width: 100%;
  }
}

.transfer-products-list .transfer-product-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #ffffff;
  border-radius: 6px;
  margin-bottom: 8px;
}
.transfer-products-list .transfer-product-item .product-info-transfer {
  flex: 1;
}
.transfer-products-list .transfer-product-item .product-info-transfer .product-name {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.transfer-products-list .transfer-product-item .product-info-transfer .product-details-transfer {
  font-size: 13px;
  color: #b3907a;
}
.transfer-products-list .transfer-product-item .product-qty-transfer {
  display: flex;
  align-items: center;
  gap: 12px;
}
.transfer-products-list .transfer-product-item .product-qty-transfer .qty-display {
  font-weight: 600;
  color: #c85931;
  font-size: 18px;
}

.empty-transfer {
  text-align: center;
  padding: 24px;
  color: #b3907a;
  font-size: 14px;
}

.transfer-info {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 24px;
}

.receive-products-section {
  margin: 24px 0;
}
.receive-products-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 16px;
}

.receive-products-list .receive-product-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: 8px;
  margin-bottom: 12px;
}
@media (max-width: 768px) {
  .receive-products-list .receive-product-item {
    grid-template-columns: 1fr;
  }
}
.receive-products-list .receive-product-item .product-info-receive .product-name {
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 4px;
}
.receive-products-list .receive-product-item .product-info-receive .sent-qty {
  font-size: 13px;
  color: #b3907a;
}
.receive-products-list .receive-product-item .qty-input-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.receive-products-list .receive-product-item .qty-input-group label {
  font-size: 13px;
  color: #1a1a1a;
  white-space: nowrap;
}
.receive-products-list .receive-product-item .qty-input-group input {
  width: 100px;
}

.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.modal.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 700px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
}
.modal-content.modal-large {
  max-width: 900px;
}

.modal-header {
  padding: 24px;
  border-bottom: 1px solid #e4cca4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: #ffffff;
  z-index: 10;
}
.modal-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #4c1d17;
}

.close-btn {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 6px;
  transition: background-color 0.2s;
}
.close-btn:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

.modal-form {
  padding: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  padding-top: 16px;
}
@media (max-width: 768px) {
  .modal-actions {
    flex-direction: column;
  }
}

.empty-state {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 48px 20px;
  text-align: center;
  color: #b3907a;
  font-size: 16px;
}

.history-header {
  margin-bottom: 24px;
}
.history-header h2 {
  font-size: 24px;
  font-weight: bold;
  color: #1a1a1a;
}

.history-list {
  display: grid;
  gap: 12px;
}

.history-item {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  padding: 16px;
  display: flex;
  gap: 16px;
  align-items: start;
  transition: background-color 0.2s;
}
.history-item:hover {
  background-color: rgba(0, 0, 0, 0.02);
}

.history-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.history-icon.create {
  background-color: rgba(76, 175, 80, 0.1);
  color: #4caf50;
}
.history-icon.update {
  background-color: rgba(225, 163, 103, 0.1);
  color: #e1a367;
}
.history-icon.delete {
  background-color: rgba(244, 67, 54, 0.1);
  color: #f44336;
}
.history-icon.stock_change {
  background-color: rgba(200, 89, 49, 0.1);
  color: #c85931;
}
.history-icon.transfer {
  background-color: rgba(33, 150, 243, 0.1);
  color: #2196f3;
}

.history-content {
  flex: 1;
}
.history-content .history-action {
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 4px;
  font-size: 15px;
}
.history-content .history-details {
  font-size: 14px;
  color: #b3907a;
  margin-bottom: 4px;
  line-height: 1.5;
}
.history-content .history-meta {
  font-size: 13px;
  color: #b3907a;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.history-content .history-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}
.history-content .history-meta .meta-item svg {
  width: 14px;
  height: 14px;
}

.history-changes {
  background-color: rgba(0, 0, 0, 0.02);
  padding: 8px 12px;
  border-radius: 6px;
  margin-top: 8px;
  font-size: 13px;
}
.history-changes .change-item {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.history-changes .change-item:last-child {
  margin-bottom: 0;
}
.history-changes .change-item .change-label {
  color: #b3907a;
}
.history-changes .change-item .change-value {
  font-weight: 500;
  color: #1a1a1a;
}
.history-changes .change-item .change-value.old {
  color: #f44336;
  text-decoration: line-through;
}
.history-changes .change-item .change-value.new {
  color: #4caf50;
}

.alert-depot {
  margin-bottom: 16px;
}
.alert-depot:last-child {
  margin-bottom: 0;
}
.alert-depot .depot-name {
  font-weight: 600;
  color: #c85931;
  margin-bottom: 8px;
  font-size: 15px;
}

@media (max-width: 768px) {
  .header-content h1 {
    font-size: 20px;
  }
  .tabs-navigation {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .tab-btn {
    white-space: nowrap;
    padding: 12px 16px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .stock-display {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .transfers-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .transfer-info-grid {
    grid-template-columns: 1fr;
  }
  .transfer-actions {
    flex-direction: column;
    width: 100%;
  }
  .transfer-actions button {
    width: 100%;
  }
}

/*# sourceMappingURL=styles.css.map */
