/* ===== CSS VARIABLES ===== */
:root {
  --primary-color: #2563eb;
  --primary-dark: #1e40af;
  --primary-light: #3b82f6;
  --secondary-color: #10b981;
  --danger-color: #ef4444;
  --warning-color: #f59e0b;
  --dark-bg: #1e293b;
  --light-bg: #f8fafc;
  --card-bg: #ffffff;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --border-color: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== GLOBAL RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  background: linear-gradient(135deg, #5a6ff0 0%, #7b4ed8 100%);
  background-attachment: fixed;
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 20% 50%, rgba(90, 111, 240, 0.3), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(123, 78, 216, 0.3), transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== CENTERED LAYOUT (Login Page) ===== */
.center {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  z-index: 1;
}

/* ===== HEADER / NAVIGATION ===== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, rgba(65, 105, 225, 0.95), rgba(123, 78, 216, 0.95));
  backdrop-filter: blur(10px);
  color: white;
  box-shadow: 0 4px 20px rgba(90, 111, 240, 0.3);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-logo {
  height: 36px;
  width: auto;
  margin-right: 16px;
  flex-shrink: 0;
}

header h2 {
  font-size: 22px;
  font-weight: 700;
  color: white;
  -webkit-text-fill-color: white;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ===== SEARCH CONTAINER ===== */
.search-container {
  position: relative;
  margin-right: 16px;
}

.search-input {
  width: 280px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: white;
  font-size: 14px;
  outline: none;
  transition: all 0.2s ease;
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
}

.search-result-item {
  padding: 12px 16px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-item.selected {
  background: var(--light-bg);
}

.search-result-item .result-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-bg);
  border-radius: 8px;
  color: var(--primary-color);
  flex-shrink: 0;
}

.search-result-item .result-content {
  flex: 1;
  min-width: 0;
}

.search-result-item .result-title {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  margin-bottom: 2px;
}

.search-result-item .result-subtitle {
  font-size: 12px;
  color: var(--text-secondary);
}

.search-result-item mark {
  background: rgba(37, 99, 235, 0.2);
  color: var(--primary-color);
  font-weight: 700;
  padding: 2px 4px;
  border-radius: 3px;
}

.search-no-results {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-secondary);
}

.search-no-results p {
  margin: 0;
  font-size: 14px;
}

.search-dropdown::-webkit-scrollbar {
  width: 6px;
}

.search-dropdown::-webkit-scrollbar-track {
  background: transparent;
}

.search-dropdown::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: 3px;
}

.search-dropdown::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.user-profile:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.user-avatar svg {
  width: 24px;
  height: 24px;
}

.user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.user-name {
  font-size: 14px;
  font-weight: 600;
  color: white;
  line-height: 1.2;
}

.user-role {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

header h2::before {
  content: none;
}

/* ===== CARD COMPONENTS ===== */
.card {
  background: var(--card-bg);
  padding: 40px;
  border-radius: 20px;
  width: 100%;
  max-width: 450px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--primary-light);
}

.card h2 {
  margin-bottom: 24px;
  color: var(--text-primary);
  font-size: 28px;
  font-weight: 700;
  text-align: center;
}

/* ===== FORM ELEMENTS ===== */
input, textarea, select {
  width: 100%;
  margin-top: 12px;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: var(--light-bg);
  color: var(--text-primary);
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--primary-color);
  background: white;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

input::placeholder, textarea::placeholder {
  color: var(--text-secondary);
}

textarea {
  min-height: 120px;
  resize: vertical;
  font-family: inherit;
}

label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== BUTTONS ===== */
button {
  width: 100%;
  margin-top: 20px;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  border: none;
  border-radius: 10px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

button:hover::before {
  left: 100%;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
}

button:active {
  transform: translateY(0);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Header Buttons */
header button {
  width: auto;
  margin: 0;
  padding: 10px 24px;
  background: rgba(239, 68, 68, 0.9);
  font-size: 14px;
}

header button:hover {
  background: var(--danger-color);
  transform: translateY(-1px);
}

/* Secondary Button Style */
.btn-secondary {
  background: linear-gradient(135deg, var(--text-secondary), var(--text-primary)) !important;
}

.btn-success {
  background: linear-gradient(135deg, var(--secondary-color), #059669) !important;
}

.btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #dc2626) !important;
}

/* ===== GRID LAYOUT ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  padding: 40px;
  gap: 24px;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== COMPANY / ITEM CARDS ===== */
.company {
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.company::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  transform: scaleX(0);
  transition: transform 0.3s;
  z-index: 2;
}

.company:hover::before {
  transform: scaleX(1);
}

.company:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

/* Company tile with background image */
.company.company-has-bg {
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
}

.company.company-has-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  border-radius: inherit;
  z-index: 0;
}

.company.company-has-bg h3 {
  position: relative;
  z-index: 1;
}

.company.company-has-bg .btn-delete-card {
  position: relative;
  z-index: 1;
}

.company h3 {
  margin: 12px 0;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
}

.company p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 8px;
}

.company b {
  display: block;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 6px;
  display: inline-block;
}

/* ===== MANAGER ACTIONS SECTION ===== */
#managerActions {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px dashed var(--border-color);
}

#managerActions label {
  color: var(--primary-color);
}

/* ===== FILE INPUT STYLING ===== */
input[type="file"] {
  padding: 12px;
  background: var(--light-bg);
  border: 2px dashed var(--border-color);
  border-radius: 10px;
  cursor: pointer;
  transition: var(--transition);
}

input[type="file"]:hover {
  border-color: var(--primary-color);
  background: white;
}

/* ===== LINKS ===== */
a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

a::after {
  content: '→';
  transition: transform 0.3s;
}

a:hover::after {
  transform: translateX(4px);
}

/* ===== ERROR & SUCCESS MESSAGES ===== */
#error {
  color: var(--danger-color);
  margin-top: 16px;
  padding: 12px;
  background: rgba(239, 68, 68, 0.1);
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  display: none;
}

#error:not(:empty) {
  display: block;
  animation: shake 0.5s;
}

.success-message {
  color: var(--secondary-color);
  background: rgba(16, 185, 129, 0.1);
  padding: 12px;
  border-radius: 8px;
  margin-top: 16px;
  text-align: center;
  font-weight: 500;
}

/* ===== ANIMATIONS ===== */
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-10px); }
  75% { transform: translateX(10px); }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.card, .company {
  animation: fadeIn 0.5s ease-out;
}

.grid .company:nth-child(1) { animation-delay: 0.05s; }
.grid .company:nth-child(2) { animation-delay: 0.1s; }
.grid .company:nth-child(3) { animation-delay: 0.15s; }
.grid .company:nth-child(4) { animation-delay: 0.2s; }
.grid .company:nth-child(5) { animation-delay: 0.25s; }

/* ===== LOADING SPINNER ===== */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== BADGES & TAGS ===== */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-primary {
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
}

.badge-success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary-color);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

/* ===== PENDING UPDATES LIST ===== */
#list {
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 1;
}

#list .card {
  max-width: 100%;
  animation: slideIn 0.4s ease-out;
}

#list .card p {
  margin: 10px 0;
  color: var(--text-secondary);
}

#list .card strong {
  color: var(--text-primary);
}

/* ===== HAMBURGER MENU & SIDEBAR ===== */
.hamburger-btn {
  display: none;
  background: none !important;
  border: none;
  width: 44px !important;
  height: 44px;
  padding: 8px !important;
  margin: 0 !important;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border-radius: 8px;
  transition: background 0.2s;
  box-shadow: none !important;
}

.hamburger-btn::before {
  content: none !important;
}

.hamburger-btn:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  transform: none !important;
  box-shadow: none !important;
}

.hamburger-btn span {
  display: block;
  width: 22px;
  height: 2.5px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Sidebar Overlay */
.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Sidebar Panel */
.sidebar-nav {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  max-width: 85vw;
  height: 100%;
  background: linear-gradient(180deg, rgba(65, 105, 225, 0.98), rgba(90, 60, 180, 0.98));
  z-index: 1000;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
  overflow-y: auto;
}

.sidebar-nav.active {
  right: 0;
}

.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-header .user-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.sidebar-header .user-info {
  min-width: 0;
}

.sidebar-header .user-name {
  font-size: 15px;
  font-weight: 600;
  color: white;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-header .user-role {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-menu {
  padding: 12px 0;
  flex: 1;
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  background: none !important;
  width: 100% !important;
  text-align: left;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.sidebar-menu-item::before {
  content: none !important;
}

.sidebar-menu-item:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: white;
  transform: none !important;
  box-shadow: none !important;
}

.sidebar-menu-item svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.7;
}

.sidebar-menu-item.danger {
  color: var(--danger-color);
}

.sidebar-menu-item.danger:hover {
  background: rgba(239, 68, 68, 0.1) !important;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 8px 16px;
}

.sidebar-search {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-search .search-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 10px 14px;
  font-size: 14px;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablet */
@media (max-width: 768px) {
  .hamburger-btn {
    display: flex;
  }

  .header-logo {
    height: 28px;
  }

  header {
    padding: 10px 14px;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  header h2 {
    font-size: 14px;
    flex: 1;
    text-align: center;
    margin: 0;
  }

  header h2::before {
    font-size: 22px;
  }

  .header-actions {
    display: none;
  }

  .search-container {
    display: none;
  }

  .grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    padding: 16px;
    gap: 12px;
  }

  .company {
    padding: 16px;
  }

  .company h3 {
    font-size: 15px;
  }

  .card {
    padding: 24px;
    max-width: 100%;
    border-radius: 14px;
  }

  .card h2 {
    font-size: 22px;
  }

  #list {
    padding: 16px;
  }

  input, textarea, select {
    padding: 12px 14px;
    font-size: 14px;
  }

  button {
    padding: 12px 20px;
    font-size: 15px;
  }

  .user-profile {
    display: none;
  }
}

/* Mobile */
@media (max-width: 480px) {
  body {
    font-size: 14px;
  }

  header {
    padding: 10px 12px;
  }

  header h2 {
    font-size: 15px;
  }

  header h2::before {
    font-size: 18px;
  }

  .grid {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
    gap: 10px;
  }

  .company {
    padding: 14px 10px;
    border-radius: 12px;
  }

  .company h3 {
    font-size: 13px;
    margin: 8px 0;
  }

  .company p {
    font-size: 12px;
  }

  .company b {
    font-size: 11px;
    padding: 3px 8px;
  }

  .card {
    padding: 20px;
    border-radius: 12px;
  }

  .card h2 {
    font-size: 20px;
    margin-bottom: 16px;
  }

  .btn-back {
    font-size: 13px !important;
    padding: 8px 12px !important;
  }

  label {
    font-size: 12px;
    margin-top: 12px;
  }

  input, textarea, select {
    padding: 11px 12px;
    font-size: 16px;
    margin-top: 8px;
    border-radius: 8px;
  }

  button {
    padding: 12px 16px;
    font-size: 14px;
    border-radius: 8px;
    margin-top: 14px;
  }

  .center {
    padding: 16px;
  }

  #list {
    padding: 12px;
    gap: 12px;
  }

  .sidebar-nav {
    width: 260px;
  }
}

/* Very small phones */
@media (max-width: 360px) {
  .grid {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  header h2 {
    font-size: 14px;
  }

  .card {
    padding: 16px;
  }

  .card h2 {
    font-size: 18px;
  }

  .sidebar-nav {
    width: 240px;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }

.hidden {
  display: none;
}

.fade-in {
  animation: fadeIn 0.5s ease-out;
}

/* ===== ITEM DETAILS PAGE ===== */
.item-details-container {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 32px;
  padding: 40px;
  max-width: 1600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.item-info-section,
.item-actions-section {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  animation: fadeIn 0.5s ease-out;
}

.section-header {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 12px;
}

.company-badge {
  display: inline-block;
  padding: 4px 12px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: auto;
}

.section-header h3 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Information Table */
.info-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 24px;
}

.info-table tr {
  border-bottom: 1px solid var(--border-color);
}

.info-table tr:last-child {
  border-bottom: none;
}

.info-table td {
  padding: 16px 20px;
  font-size: 15px;
}

.info-table td.label {
  font-weight: 600;
  color: var(--text-secondary);
  width: 180px;
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.5px;
}

.info-table td.value {
  color: var(--text-primary);
  font-weight: 500;
  font-size: 16px;
}

/* Description Box */
.description-box {
  background: var(--light-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 20px;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 15px;
  max-height: 400px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.description-box::-webkit-scrollbar {
  width: 8px;
}

.description-box::-webkit-scrollbar-track {
  background: var(--border-color);
  border-radius: 4px;
}

.description-box::-webkit-scrollbar-thumb {
  background: var(--text-secondary);
  border-radius: 4px;
}

.description-box::-webkit-scrollbar-thumb:hover {
  background: var(--text-primary);
}

/* File Preview Box */
.file-preview-box {
  background: var(--light-bg);
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}

.file-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 32px;
  background: white;
  border: 2px solid var(--primary-color);
  border-radius: 12px;
  color: var(--primary-color);
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.file-link::after {
  content: none;
}

.file-link svg {
  color: var(--primary-color);
}

.file-link:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.file-link:hover svg {
  color: white;
}

/* Action Card */
.action-card {
  display: flex;
  flex-direction: column;
}

.action-card textarea {
  min-height: 180px;
  font-family: inherit;
}

/* File Upload Area */
.file-upload-area {
  position: relative;
  margin-top: 12px;
}

.file-upload-area input[type="file"] {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-placeholder {
  border: 3px dashed var(--border-color);
  border-radius: 12px;
  padding: 40px 20px;
  text-align: center;
  background: var(--light-bg);
  transition: var(--transition);
}

.file-upload-area:hover .file-upload-placeholder {
  border-color: var(--primary-color);
  background: rgba(37, 99, 235, 0.05);
}

.file-upload-placeholder svg {
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.file-upload-placeholder p {
  color: var(--text-primary);
  font-weight: 600;
  margin: 8px 0;
}

.file-upload-placeholder span {
  color: var(--text-secondary);
  font-size: 13px;
}

.file-name {
  margin-top: 12px;
  padding: 12px;
  background: rgba(16, 185, 129, 0.1);
  border-radius: 8px;
  color: var(--secondary-color);
  font-weight: 600;
  display: none;
}

.file-name.active {
  display: block;
}

/* Back Button Specific Style */
.btn-back {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px);
}

.btn-back:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

.btn-close-overlay {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  backdrop-filter: blur(10px);
}

.btn-close-overlay:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.5) !important;
}

/* Responsive Design for Item Details */
@media (max-width: 1200px) {
  .item-details-container {
    grid-template-columns: 1fr;
  }

  .item-actions-section {
    order: 2;
  }
}

@media (max-width: 768px) {
  .item-details-container {
    padding: 16px;
    gap: 16px;
  }

  .item-info-section,
  .item-actions-section {
    padding: 20px;
    border-radius: 14px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .section-header h3 {
    font-size: 17px;
  }

  .spec-meta {
    margin-left: 0;
  }

  .info-table td.label {
    width: 100px;
    font-size: 11px;
    padding: 10px 8px;
  }

  .info-table td.value {
    font-size: 13px;
    padding: 10px 8px;
  }

  .file-upload-placeholder {
    padding: 24px 12px;
  }

  .file-link {
    padding: 16px 20px;
  }

  .description-box {
    padding: 14px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .item-details-container {
    padding: 12px;
    gap: 12px;
  }

  .item-info-section,
  .item-actions-section {
    padding: 14px;
    border-radius: 12px;
  }

  .section-header h3 {
    font-size: 15px;
  }

  .spec-table {
    font-size: 12px;
  }

  .spec-label {
    padding: 8px 6px;
    font-size: 10px;
    white-space: normal;
  }

  .spec-value {
    padding: 8px 6px;
    font-size: 12px;
  }

  .spec-table col.spec-col-label {
    width: 80px;
  }

  .spec-multi-col {
    gap: 4px 6px;
  }

  .spec-multi-col .sub-label {
    font-size: 9px;
    min-width: 24px;
  }

  .spec-multi-col .sub-value {
    font-size: 12px;
    min-width: 28px;
    padding-right: 4px;
  }

  .spec-input {
    padding: 6px 8px;
    font-size: 12px;
  }

  .spec-input.mini {
    width: 50px;
  }

  .unit-label {
    font-size: 9px;
    padding: 1px 4px;
  }

  .file-upload-placeholder {
    padding: 20px 10px;
  }

  .file-upload-placeholder p {
    font-size: 13px;
  }

  .file-upload-placeholder span {
    font-size: 11px;
  }

  .file-link {
    padding: 14px 16px;
    font-size: 14px;
  }

  .file-link svg {
    width: 32px;
    height: 32px;
  }

  .info-table td.label {
    width: 80px;
    font-size: 10px;
    padding: 8px 6px;
  }

  .info-table td.value {
    font-size: 12px;
    padding: 8px 6px;
  }
}

/* ===== ADMIN APPROVALS PAGE ===== */
.approvals-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px;
  position: relative;
  z-index: 1;
}

.approvals-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.approvals-header h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.approvals-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.approval-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--border-color);
  transition: var(--transition);
  animation: slideIn 0.4s ease-out;
}

.approval-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.approval-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.item-info h4 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 8px 0;
}

.item-code {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--primary-color);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.company-name {
  color: var(--text-secondary);
  font-size: 14px;
  margin-top: 4px;
}

.approval-body {
  margin: 16px 0;
}

.request-meta {
  display: flex;
  gap: 24px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 14px;
}

.request-preview {
  background: var(--light-bg);
  border-left: 4px solid var(--primary-color);
  padding: 16px;
  border-radius: 8px;
  margin-top: 12px;
}

.request-preview strong {
  display: block;
  color: var(--text-primary);
  margin-bottom: 8px;
  font-size: 14px;
}

.request-preview p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

.approval-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.btn-view {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0 !important;
}

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.empty-state svg {
  color: var(--secondary-color);
  margin-bottom: 20px;
}

.empty-state h3 {
  color: var(--text-primary);
  font-size: 22px;
  margin: 16px 0 8px;
}

.empty-state p {
  font-size: 16px;
}

.empty-state-small {
  text-align: center;
  padding: 40px 20px;
  background: var(--light-bg);
  border-radius: 12px;
  color: var(--text-secondary);
}

.no-items {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  grid-column: 1 / -1;
}

.no-items p {
  font-size: 18px;
  font-weight: 500;
}

.loading-spinner {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
}

.loading-spinner .loading {
  margin: 0 auto 20px;
}

/* Admin Review Section on Item Page */
.comparison-box {
  background: rgba(245, 158, 11, 0.05);
  border: 2px solid var(--warning-color);
}

.approval-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.approval-buttons button {
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.request-meta {
  background: var(--light-bg);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 20px;
}

.request-meta p {
  margin: 8px 0;
  color: var(--text-secondary);
  font-size: 14px;
}

/* Header Actions */
.header-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

@media (max-width: 768px) {
  .header-actions {
    display: none !important;
  }
}

.btn-admin {
  background: linear-gradient(135deg, var(--secondary-color), #059669) !important;
  align-items: center;
  gap: 8px;
  padding: 10px 20px !important;
  margin: 0 !important;
  width: auto !important;
}

.btn-admin:hover {
  background: linear-gradient(135deg, #059669, var(--secondary-color)) !important;
}

/* Responsive for Approvals */
@media (max-width: 768px) {
  .approvals-container {
    padding: 16px;
  }

  .approvals-header {
    flex-direction: column;
    gap: 10px;
    padding: 16px;
  }

  .approvals-header h3 {
    font-size: 18px;
  }

  .approval-card {
    padding: 16px;
    border-radius: 12px;
  }

  .approval-header {
    flex-direction: column;
    gap: 10px;
  }

  .item-info h4 {
    font-size: 16px;
  }

  .request-meta {
    flex-direction: column;
    gap: 6px;
    padding: 12px;
  }

  .request-preview {
    padding: 12px;
  }

  .approval-buttons {
    grid-template-columns: 1fr;
  }

  .approval-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .approvals-container {
    padding: 10px;
  }

  .approvals-header {
    padding: 12px;
    border-radius: 12px;
  }

  .approvals-header h3 {
    font-size: 16px;
  }

  .approval-card {
    padding: 12px;
  }

  .item-info h4 {
    font-size: 15px;
  }

  .item-code {
    font-size: 11px;
    padding: 3px 8px;
  }

  .company-name {
    font-size: 12px;
  }

  .approval-actions {
    gap: 8px;
  }

  .btn-view {
    font-size: 13px;
    padding: 10px 14px !important;
  }
}

/* ===== CUSTOM MODAL DIALOG ===== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: var(--card-bg);
  border-radius: 20px;
  padding: 32px;
  max-width: 500px;
  width: 90%;
  box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.9) translateY(20px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 2px solid var(--border-color);
}

.modal-overlay.active .modal-dialog {
  transform: scale(1) translateY(0);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--border-color);
}

.modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.modal-icon.warning {
  background: rgba(245, 158, 11, 0.1);
  color: var(--warning-color);
}

.modal-icon.success {
  background: rgba(16, 185, 129, 0.1);
  color: var(--secondary-color);
}

.modal-icon.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger-color);
}

.modal-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  flex: 1;
}

.modal-body {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
}

.modal-actions button {
  width: auto !important;
  min-width: 120px;
  margin: 0 !important;
  padding: 12px 24px !important;
  font-size: 15px;
}

.modal-btn-cancel {
  background: var(--light-bg) !important;
  color: var(--text-primary) !important;
  border: 2px solid var(--border-color) !important;
}

.modal-btn-cancel:hover {
  background: var(--border-color) !important;
  transform: translateY(-2px);
}

.modal-btn-confirm {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light)) !important;
}

.modal-btn-danger {
  background: linear-gradient(135deg, var(--danger-color), #dc2626) !important;
}

.modal-btn-success {
  background: linear-gradient(135deg, var(--secondary-color), #059669) !important;
}

@media (max-width: 480px) {
  .modal-overlay {
    padding: 12px;
    align-items: flex-end;
  }

  .modal-dialog {
    padding: 20px;
    border-radius: 16px 16px 0 0;
    width: 100%;
    max-width: 100%;
    max-height: 85vh;
    overflow-y: auto;
  }

  .modal-header {
    margin-bottom: 14px;
    padding-bottom: 12px;
  }

  .modal-icon {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }

  .modal-title {
    font-size: 18px;
  }

  .modal-body {
    font-size: 14px;
    margin-bottom: 18px;
  }

  .modal-actions {
    flex-direction: column;
  }

  .modal-actions button {
    width: 100% !important;
    min-width: unset !important;
  }
}


/* ===== SPEC FORM TABLE ===== */

/* Company badge next to section header */
.spec-meta {
  margin-left: auto;
}

/* Spec Table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  overflow: hidden;
}

.spec-table col.spec-col-label {
  width: 130px;
}

.spec-table col.spec-col-value {
  width: auto;
}

.spec-table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.spec-table tbody tr:last-child {
  border-bottom: none;
}

.spec-table tbody tr:nth-child(even) {
  background: var(--light-bg);
}

.spec-table tbody tr:hover {
  background: rgba(99, 102, 241, 0.04);
}

.spec-label {
  padding: 10px 14px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  border-right: 1px solid var(--border-color);
  background: rgba(248, 250, 252, 0.8);
  vertical-align: middle;
}

.spec-value {
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  vertical-align: middle;
}

/* Read-only value inside edit table (for item code) */
.spec-readonly {
  color: var(--text-secondary);
  font-style: italic;
}

/* Multi-column layout (Size L/W/H, Paper Top/Back/Flute, etc.) */
.spec-multi-col {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}

.spec-multi-col .sub-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-width: 36px;
}

.spec-multi-col .sub-value {
  font-size: 14px;
  color: var(--text-primary);
  font-weight: 500;
  min-width: 40px;
  padding-right: 8px;
  border-right: 1px dashed var(--border-color);
}

.spec-multi-col .sub-value:last-child {
  border-right: none;
}

/* Unit label layout (BS Kg/cm2) */
.spec-unit-col {
  display: flex;
  align-items: center;
  gap: 8px;
}

.unit-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--light-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 2px 6px;
}

/* ===== SPEC EDIT FORM ===== */
.spec-edit-table {
  border-radius: 10px;
}

.spec-input {
  width: 100%;
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  background: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.spec-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.spec-input.mini {
  width: 70px;
  text-align: center;
}

.spec-multi-col.edit-mode {
  gap: 6px 8px;
  align-items: center;
}

.spec-multi-col.edit-mode .sub-label {
  min-width: auto;
}

.spec-unit-col.edit-mode {
  gap: 8px;
  align-items: center;
}

.spec-unit-col.edit-mode .spec-input {
  width: 100px;
}


/* ===== ADMIN CRUD CONTROLS ===== */

/* Delete button inside company/item cards */
.btn-delete-card {
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  width: auto !important;
  margin: 10px auto 0 !important;
  padding: 5px 14px !important;
  font-size: 12px !important;
  font-weight: 600;
  background: linear-gradient(135deg, var(--danger-color), #dc2626) !important;
  border-radius: 8px !important;
  color: white;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.btn-delete-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.45) !important;
  background: linear-gradient(135deg, #dc2626, var(--danger-color)) !important;
}

/* Delete button progress bar for long-press */
.delete-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: white;
  border-radius: 0 0 8px 8px;
  transition: none;
}

.btn-delete-card.holding .delete-progress {
  width: 100%;
  transition: width 750ms linear;
}

/* Mobile: smaller delete button + hold hint */
@media (max-width: 768px) {
  .btn-delete-card {
    padding: 4px 10px !important;
    font-size: 11px !important;
    gap: 3px;
    opacity: 0.8;
  }

  .btn-delete-card::after {
    content: '(hold)';
    font-size: 9px;
    opacity: 0.7;
    margin-left: 2px;
  }
}

/* ===== MOBILE TOUCH & OVERLAY IMPROVEMENTS ===== */
@media (max-width: 480px) {
  /* Overlays (add company/item) */
  #addCompanyOverlay > div,
  #addItemOverlay > div {
    width: 95% !important;
    padding: 20px !important;
    border-radius: 14px !important;
    max-height: 90vh;
    overflow-y: auto;
  }

  .add-item-row {
    flex-direction: column !important;
    gap: 12px !important;
  }

  #addItemOverlay {
    padding: 10px !important;
  }

  /* Inline flex rows in add-item form */
  #addItemOverlay > div > div[style*="display:flex"][style*="gap:16px"] {
    flex-direction: column !important;
    gap: 12px !important;
  }

  /* Touch targets minimum 44px */
  button, a, .company, .search-result-item {
    min-height: 44px;
  }

  /* Prevent zoom on input focus (iOS) */
  input, textarea, select {
    font-size: 16px;
  }

  /* Spec edit table on mobile */
  .spec-edit-table .spec-multi-col.edit-mode {
    flex-wrap: wrap;
    gap: 4px 6px;
  }

  .spec-edit-table .spec-multi-col.edit-mode .spec-input.mini {
    width: 45px;
  }

  .spec-unit-col.edit-mode .spec-input {
    width: 80px !important;
  }

  /* Company card hover disable on touch */
  .company:hover {
    transform: none;
  }

  .company:active {
    transform: scale(0.97);
  }

  /* File upload area touch */
  .file-upload-placeholder {
    padding: 20px 12px;
  }

  .file-upload-placeholder svg {
    width: 28px;
    height: 28px;
  }
}

/* ===== LANDSCAPE PHONE ===== */
@media (max-height: 500px) and (orientation: landscape) {
  header {
    padding: 8px 16px;
    flex-direction: row;
  }

  .grid {
    padding: 12px;
  }

  .item-details-container {
    padding: 12px;
  }
}

/* ===== SAFE AREA (notched phones) ===== */
@supports (padding: env(safe-area-inset-bottom)) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  header {
    padding-top: max(12px, env(safe-area-inset-top));
  }
}

/* =========================================
   LOGIN PAGE FULLSCREEN FIX
========================================= */

.login-page {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.login-wrapper {
  width: 100%;
  max-width: 1100px;
  min-height: 680px;
  display: flex;
  border-radius: 22px;
  overflow: hidden;
}

.login-left,
.login-right {
  min-height: 680px;
}

/* Prevent unwanted desktop scroll on login page only */
@media (min-width: 901px) {
  .login-page {
    overflow: hidden;
  }
}

/* Login page mobile adjustments */
@media (max-width: 900px) {
  .login-page {
    height: auto;
    min-height: 100vh;
    overflow-y: auto;
  }

  .login-wrapper {
    flex-direction: column;
    min-height: auto;
  }

  .login-left,
  .login-right {
    width: 100%;
    min-height: auto;
  }

  .login-right {
    min-height: 260px;
  }
}