@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #3b82f6;      
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary: #10b981;    
  --secondary-dark: #059669;
  --dark: #0f172a;
  --darker: #020617;
  --light: #f8fafc;
  --white: #ffffff;
  --gray: #64748b;
  --gray-light: #e2e8f0;
  --danger: #ef4444;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 25px 50px -12px rgb(0 0 0 / 0.25);
  --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.5);
  --shadow-3d: 0 8px 0px rgba(29, 78, 216, 1), 0 15px 20px rgba(0,0,0,0.3); 
  --radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--light);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
.w-100 { width: 100%; }
.text-center { text-align: center; }

h1, h2, h3, h4, h5, h6 { font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }

.blue { color: var(--primary); }
.green { color: var(--secondary); }

/* Buttons */
.btn-primary, .btn-green {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
  color: var(--white);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-3d); 
  text-align: center;
  transform: translateY(0);
}

.btn-primary:active, .btn-green:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0px rgba(29, 78, 216, 1), 0 5px 10px rgba(0,0,0,0.2);
}

.btn-white {
  display: inline-block;
  background: var(--white);
  color: var(--dark);
  padding: 0.9rem 1.8rem;
  border-radius: var(--radius);
  font-weight: 700;
  border: 2px solid var(--gray-light);
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 6px 0px var(--gray-light), 0 15px 20px rgba(0,0,0,0.1);
  text-align: center;
}

.btn-white:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0px var(--gray-light), 0 5px 10px rgba(0,0,0,0.1);
}

/* Header */
.main-header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  padding: 1rem 5%;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(15px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

.brand {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.8rem; font-weight: 900; color: var(--darker);
}

.brand span { color: var(--primary); }

.nav-menu { display: flex; gap: 2.5rem; align-items: center; }
.nav-menu a { font-weight: 600; color: var(--gray); position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--primary); }

.menu-toggle {
    display: none;
    background: none; border: none; cursor: pointer; color: var(--dark);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 5% 4rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute; top: -10%; right: -5%; width: 60vw; height: 60vw;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%; z-index: -1;
}

.hero-content { flex: 1; padding-right: 3rem; }
.hero-content h1 { font-size: clamp(3rem, 6vw, 5rem); margin-bottom: 1.5rem; line-height: 1.1; }
.hero-content p { font-size: 1.3rem; color: var(--gray); margin-bottom: 2.5rem; }
.hero-actions { display: flex; gap: 1.5rem; }

/* 3D Image Wrappers */
.image-3d-wrapper {
  flex: 1; position: relative; perspective: 1500px;
}
.image-3d-wrapper img {
  border-radius: 30px; box-shadow: var(--shadow-lg);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); border: 8px solid white;
}
.image-3d-wrapper img:hover { transform: rotateY(0deg) rotateX(0deg) scale(1.05); }

/* Sections */
.services-section { padding: 6rem 5%; background: var(--white); }
.services-section.bg-light { background: var(--light); }
.section-header { text-align: center; margin-bottom: 5rem; }
.section-header h2 { font-size: 2.8rem; margin-bottom: 1rem; }
.section-header p { color: var(--gray); font-size: 1.2rem; max-width: 600px; margin: 0 auto; }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2.5rem; }

/* Fancy 3D Cards */
.service-card {
  background: var(--white);
  padding: 2.5rem; border-radius: var(--radius); text-align: center;
  transition: var(--transition); border: 1px solid var(--gray-light);
  box-shadow: 0 10px 0 var(--gray-light); transform: translateY(0);
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 0 var(--primary-light), var(--shadow-glow); border-color: var(--primary-light);
}
.s-icon { width: 72px; height: 72px; color: var(--primary); margin-bottom: 1.5rem; }

/* Process Timeline & Stats */
.process-steps { display: flex; flex-wrap: wrap; gap: 2rem; justify-content: center; position: relative; max-width: 1000px; margin: 0 auto; }
.process-step {
    flex: 1; min-width: 250px; background: var(--white); padding: 2rem; border-radius: 20px;
    text-align: center; box-shadow: var(--shadow-md); position: relative; border-top: 6px solid var(--primary);
}
.step-num {
    background: var(--primary); color: white; width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 1.2rem;
    position: absolute; top: -20px; left: calc(50% - 20px); box-shadow: var(--shadow-glow);
}
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; max-width: 1000px; margin: 0 auto; }
.stat-box {  background: linear-gradient(135deg, var(--dark), var(--darker)); color: var(--white); padding: 2rem; border-radius: 20px; text-align: center; box-shadow: 0 10px 0 rgba(15, 23, 42, 0.4); }
.stat-box h3 { font-size: 3rem; color: var(--primary-light); margin-bottom: 0.5rem; }

/* Contact & About Grids */
.container { padding: 8rem 5% 2rem; max-width: 1300px; margin: 0 auto; }
.company-section { display: flex; flex-wrap: wrap; gap: 4rem; align-items: center; margin-top: 3rem; }
.company-text { flex: 1; min-width: 300px; text-align: left; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 3rem; max-width: 1200px; margin: 0 auto; }
@media (min-width: 800px) { .contact-grid { grid-template-columns: 1fr 1.5fr; } }
.contact-info-item { display: flex; gap: 1rem; margin-bottom: 2rem; }
.contact-icon { background: rgba(59, 130, 246, 0.1); color: var(--primary); width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Admin Dashboard & Forms Layouts */
.admin-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; }
@media (min-width: 768px) { .admin-grid { grid-template-columns: repeat(2, 1fr); } }
.panel { background: var(--white); padding: 2.5rem; border-radius: var(--radius); box-shadow: var(--shadow-md); position: relative; }

.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; font-size: 0.95rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--darker); }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 1rem 1.2rem; border: 2px solid var(--gray-light); border-radius: 12px;
    font-family: inherit; font-size: 1rem; transition: var(--transition); background: var(--white);
    color: var(--darker); resize: vertical;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

/* Tabs */
.tabs-container { margin-bottom: 2.5rem; display: flex; gap: 1rem; border-bottom: 2px solid var(--gray-light); padding-bottom: 1rem; flex-wrap: wrap; }
.tab-btn { background: none; border: none; font-size: 1.1rem; font-weight: 600; color: var(--gray); cursor: pointer; position: relative; padding: 0.5rem 1rem; transition: var(--transition); }
.tab-btn.active { color: var(--primary); }
.tab-btn.active::after { content: ''; position: absolute; bottom: -18px; left: 0; width: 100%; height: 3px; background: var(--primary); border-radius: 3px 3px 0 0; }
.tab-content { display: none; animation: fadeIn 0.4s ease forwards; }
.tab-content.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* Secure Login Styles */
.login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: url('https://images.unsplash.com/photo-1508514177221-188b1cf16e9d?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80') center/cover; position: relative; }
.login-overlay { position: absolute; inset: 0; background: linear-gradient(135deg, rgba(15, 23, 42, 0.9), rgba(59, 130, 246, 0.8)); z-index: 1; }
.login-container { width: 100%; max-width: 440px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(20px); padding: 3rem 2.5rem; border-radius: 20px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); z-index: 2; position: relative; }
.login-icon-wrapper { color: var(--primary); margin-bottom: 1rem; text-align: center; }
.login-title { text-align: center; font-size: 2rem; margin-bottom: 0.5rem; color: var(--darker); }
.login-subtitle { text-align: center; color: var(--gray); margin-bottom: 2rem; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #f87171; padding: 1rem; border-radius: 8px; margin-bottom: 1.5rem; font-weight: 500; text-align: center;}

/* Utilities */
.reveal { opacity: 0; transform: translateY(40px); transition: var(--transition); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 1rem 1.5rem; border-radius: 8px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 10px; animation: fadeIn 0.3s ease; }
.toast.success { border-left: 4px solid var(--secondary); background: var(--dark); color: white;}
.toast.error { border-left: 4px solid var(--danger); background: var(--dark); color: white;}

/* Responsive Media Queries */
@media (max-width: 768px) {
    .nav-menu { display: none; position: absolute; top: 100%; left: 0; width: 100%; background: var(--white); flex-direction: column; padding: 2rem; box-shadow: var(--shadow-md); gap: 1rem; }
    .nav-menu.active { display: flex; }
    .menu-toggle { display: block; }
    .hero { flex-direction: column; padding-top: 8rem; text-align: center; }
    .hero-content { padding-right: 0; margin-bottom: 3rem; }
    .hero-actions { justify-content: center; }
    .hero-content h1 { font-size: clamp(2rem, 8vw, 3.2rem); }
    .section-header h2 { font-size: 2.1rem; }
    .services-section { padding: 4rem 5%; }
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
    }
    .toast-container {
        left: 16px;
        right: 16px;
        bottom: 16px;
        align-items: stretch;
    }
    .toast { width: 100%; justify-content: center; }
}

/* Admin: grade + capacity row stacks on narrow screens */
.admin-form-split {
    grid-template-columns: 1fr 1fr !important;
    gap: 1rem;
}
@media (max-width: 640px) {
    .admin-form-split {
        grid-template-columns: 1fr !important;
    }
}

/* Public verification — mobile-first layout (grid avoids input/button overlap) */
.verify-panel__row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    width: 100%;
    align-items: center;
}
.verify-panel__input {
    width: 100%;
    min-width: 0;
    padding: 1rem 1.15rem;
    border: 2px solid var(--gray-light);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--darker);
    min-height: 48px;
    line-height: 1.4;
    background: var(--white);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
    -webkit-tap-highlight-color: transparent;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.verify-panel__input::placeholder {
    color: var(--gray);
    opacity: 0.95;
}
.verify-panel__input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}
.verify-panel__lookup {
    width: 100%;
    min-height: 48px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
    white-space: nowrap;
    flex-shrink: 0;
    box-sizing: border-box;
}
.verify-panel__scan,
.verify-panel__stop {
    min-height: 48px;
    box-sizing: border-box;
}
@media (min-width: 640px) {
    .verify-panel__row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0.75rem 1rem;
    }
    .verify-panel__lookup {
        width: auto;
        min-width: 9.5rem;
    }
}
.verify-panel__reader {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    overflow: hidden;
    box-sizing: border-box;
}
.verify-panel__reader:not(:empty) {
    margin-bottom: 1.25rem;
}

/* html5-qrcode library UI (camera dropdown, start/stop, file link) */
.qrcode-embed {
    font-family: inherit;
    color: var(--darker);
}
.qrcode-embed [id$="__header_message"] {
    font-size: 0.95rem;
    line-height: 1.4;
    padding: 0.5rem 0.25rem 0.75rem;
    color: var(--gray);
}
.qrcode-embed [id$="__dashboard"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.qrcode-embed [id$="__dashboard_section"] {
    border: 2px solid var(--gray-light);
    border-radius: 14px;
    background: linear-gradient(180deg, var(--white) 0%, var(--light) 100%);
    padding: 1.1rem 1.2rem 1.25rem;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.qrcode-embed [id$="__dashboard_section_csr"] {
    text-align: left !important;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    align-items: stretch;
    width: 100% !important;
    max-width: 100%;
}
/* Camera label + select row */
.qrcode-embed select {
    display: block;
    width: 100% !important;
    max-width: 100%;
    margin: 0.35rem 0 0;
    padding: 0.75rem 0.9rem;
    font-size: 16px;
    font-family: inherit;
    line-height: 1.3;
    border: 2px solid var(--gray-light);
    border-radius: 12px;
    background: var(--white);
    color: var(--darker);
    min-height: 48px;
    box-sizing: border-box;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.41 0 6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.9rem center;
    padding-right: 2.25rem;
}
.qrcode-embed select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
/* First span = camera label + select (order is before action buttons) */
.qrcode-embed [id$="__dashboard_section_csr"] > span:nth-of-type(1) {
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    gap: 0.35rem;
    text-align: left;
    line-height: 1.4;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--darker);
}
.qrcode-embed [id$="__dashboard_section_csr"] > span {
    box-sizing: border-box;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
/* Buttons: start, stop, permission */
.qrcode-embed button {
    min-height: 48px;
    padding: 0.75rem 1.1rem;
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    border-radius: 12px;
    border: none;
    width: 100%;
    max-width: 100%;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s, box-shadow 0.12s, opacity 0.2s;
    box-sizing: border-box;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: var(--white);
    box-shadow: 0 5px 0 var(--primary-dark), 0 8px 16px rgba(29, 78, 216, 0.25);
    margin-top: 0.5rem;
}
.qrcode-embed button:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 2px 0 var(--primary-dark), 0 4px 8px rgba(29, 78, 216, 0.2);
}
.qrcode-embed button:disabled {
    opacity: 0.6;
    cursor: wait;
}
/* Specific style for stop button if text contains "Stop" or similar */
.qrcode-embed button:nth-of-type(2) {
    background: linear-gradient(135deg, #f87171, var(--danger));
    box-shadow: 0 5px 0 #b91c1c, 0 8px 16px rgba(185, 28, 28, 0.25);
}
.qrcode-embed button:nth-of-type(2):active:not(:disabled) {
    transform: translateY(3px);
    box-shadow: 0 2px 0 #b91c1c;
}
/* Action buttons row: stack on very narrow, row when space */
.qrcode-embed [id$="__dashboard_section_csr"] > span:last-of-type {
    display: flex !important;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: stretch;
    width: 100% !important;
    margin: 0 !important;
}
.qrcode-embed [id$="__dashboard_section_csr"] > span:last-of-type .html5-qrcode-element {
    flex: 1 1 8rem;
    min-width: min(100%, 8rem);
}
.qrcode-embed #html5-qrcode-button-torch {
    min-height: 48px;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.5rem 0.9rem;
}
/* Switch: camera / file */
.qrcode-embed #html5-qrcode-anchor-scan-type-change {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.5rem 0;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-bottom: 2px solid rgba(59, 130, 246, 0.35);
    transition: color 0.2s, border-color 0.2s;
    font-family: inherit;
}
.qrcode-embed #html5-qrcode-anchor-scan-type-change:hover,
.qrcode-embed #html5-qrcode-anchor-scan-type-change:focus-visible {
    color: var(--primary-dark);
    border-bottom-color: var(--primary-dark);
    outline: none;
}
.qrcode-embed [id$="__scan_region"] video,
.qrcode-embed [id$="__scan_region"] canvas {
    border-radius: 12px;
    max-width: 100% !important;
}
.qrcode-embed #html5-qrcode-input-range-zoom {
    display: block;
    width: 100% !important;
    max-width: 20rem;
    height: 8px;
    margin: 0.5rem auto 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.verify-result-box {
    background: #f0fdf4;
    border: 2px solid var(--primary);
    padding: 1.5rem;
    border-radius: 16px;
    animation: fadeInUp 0.5s;
}

.verify-result-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.6rem 0.75rem;
    color: var(--darker);
    font-size: 0.95rem;
    align-items: center;
}

@media (max-width: 480px) {
    .verify-result-box {
        padding: 1rem 0.75rem;
    }
    .verify-result-grid {
        font-size: 0.85rem;
        gap: 0.5rem;
    }
}

/* Admin scanner region */
.admin-scan-reader {
    border-radius: 12px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-bar > div {
        width: 100%;
    }
    .filter-bar button[type="submit"] {
        width: 100%;
        margin-top: 0.5rem;
    }
    #admin-barcode-reader:not(:empty) {
        min-height: 200px;
    }
}

/* Admin dashboard — mobile / small screens */
.admin-body .container {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-left: 4%;
    padding-right: 4%;
}
@media (max-width: 768px) {
    .admin-body .container {
        padding-top: 5.5rem;
        padding-bottom: 2.5rem;
    }
    .admin-body .tabs-container {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 0.5rem 1rem;
        padding-bottom: 0.75rem;
        margin-left: -2%;
        margin-right: -2%;
        padding-left: 2%;
        padding-right: 2%;
        scrollbar-width: thin;
    }
    .admin-body .tab-btn {
        white-space: nowrap;
        flex: 0 0 auto;
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
    }
    .admin-body .tab-btn.active::after {
        bottom: -10px;
    }
    .admin-body .panel {
        padding: 1.35rem 1.15rem;
    }
    .admin-body .data-table thead {
        display: none;
    }
    .admin-body .data-table, 
    .admin-body .data-table tbody, 
    .admin-body .data-table tr, 
    .admin-body .data-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }
    .admin-body .data-table tr {
        margin-bottom: 1.25rem;
        border: 2px solid var(--gray-light);
        border-radius: 12px;
        padding: 1rem;
        background: var(--white);
        box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    }
    .admin-body .data-table td {
        padding: 0.6rem 0;
        border-bottom: 1px solid var(--gray-light);
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
    }
    .admin-body .data-table td:last-child {
        border-bottom: none;
        padding-bottom: 0;
        margin-top: 0.5rem;
    }
    .admin-body .data-table td::before {
        content: attr(data-label);
        font-weight: 700;
        color: var(--gray);
        text-align: left;
        margin-right: 1rem;
    }
    .admin-body .action-btns {
        flex-direction: row;
        justify-content: flex-end;
        gap: 0.5rem;
        width: 100%;
    }
    .admin-body .btn-small {
        width: 100%;
        min-height: 40px;
        text-align: center;
    }
    .admin-body .modal-content {
        width: 94%;
        max-width: 100%;
        max-height: 90vh;
        overflow-y: auto;
        padding: 1.5rem 1.1rem 2rem;
    }
}
.admin-body .admin-scan-reader,
.admin-body #admin-barcode-reader {
    overflow: visible;
    max-width: 100%;
}