/* Mistris visual consistency layer. Additive styles; keeps the AdminLTE foundation. */
:root{--mistris-primary:#315efb;--mistris-ink:#243047;--mistris-muted:#6b778c;--mistris-border:#e8edf4;--mistris-surface:#fff;--mistris-radius:12px}
body{color:var(--mistris-ink);background:#f5f7fb}
.content-wrapper{background:#f5f7fb}
.content-header h1{font-size:1.55rem;font-weight:700;letter-spacing:-.02em;color:var(--mistris-ink)}
.card,.small-box,.info-box{border:1px solid var(--mistris-border);border-radius:var(--mistris-radius);box-shadow:0 3px 14px rgba(31,45,61,.045);overflow:hidden}
.card-header{background:var(--mistris-surface);border-bottom:1px solid var(--mistris-border);padding:1rem 1.15rem}
.card-title{font-weight:650;color:var(--mistris-ink)}
.btn{border-radius:8px;font-weight:600;transition:transform .15s ease,box-shadow .15s ease}
.btn:focus,.form-control:focus,.custom-select:focus{box-shadow:0 0 0 .18rem rgba(49,94,251,.14)}
.btn-primary{background:var(--mistris-primary);border-color:var(--mistris-primary)}
.form-control,.custom-select{border-color:#dfe5ee;border-radius:8px;min-height:40px}
.form-control::placeholder{color:#a0aaba}
.table thead th{background:#f7f9fc;color:#526078;font-size:.82rem;text-transform:uppercase;letter-spacing:.035em;border-top:0}
.table td,.table th{vertical-align:middle;border-color:#edf0f5}
.badge{font-weight:600;padding:.38em .62em;border-radius:6px}
.alert{border-radius:9px}
@media(max-width:767.98px){.content-header h1{font-size:1.25rem}.content{padding-left:.65rem;padding-right:.65rem}.card-body{padding:1rem}.btn{min-height:40px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}


/* Public-site refresh and responsive navigation */
.main-header .navbar,
.main-header .main-header,
.navbar.navbar-purple {
    position: sticky;
    top: 0;
    z-index: 1035;
}
.navbar.navbar-purple {
    box-shadow: 0 5px 18px rgba(25, 35, 55, .12);
}
.navbar.navbar-purple .nav-link,
.navbar.navbar-purple .navbar-brand { transition: color .18s ease, background .18s ease; }
.navbar.navbar-purple .nav-link:hover,
.navbar.navbar-purple .nav-link:focus { color: #fff; background: rgba(255,255,255,.10); border-radius: 7px; }
.hero-section {
    border-radius: 18px;
    margin: 1rem auto;
    max-width: 1440px;
    background: linear-gradient(120deg, #eef3ff 0%, #f8faff 55%, #e9f8f5 100%);
    overflow: hidden;
}
.hero-section h1 { color: #1e2d4d; font-weight: 800; line-height: 1.12; letter-spacing: -.035em; }
.hero-section p { color: #58677f; line-height: 1.65; }
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item img { border-radius: 14px; }
.hero-section .carousel-item img { height: clamp(220px, 29vw, 390px); object-fit: cover; }
.title { letter-spacing: -.02em; }
.card-hell, .feature-box { border-radius: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.card-hell:hover, .feature-box:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(31,45,61,.10); }
#form_search .card, #form_search .form-control, #form_search .select2-container--default .select2-selection--single { border-radius: 9px; }
#product_table { overflow-x: auto; }
.form-container { border-radius: 14px; }
.form-container input.form-control { font-size: 16px; }
.password-field { position: relative; }
.password-field .password-toggle {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    border: 0; background: transparent; color: #526078; cursor: pointer; padding: 8px;
}
.password-field .form-control { padding-right: 42px; }
@media (max-width: 767.98px) {
    .hero-section { margin: .5rem .25rem; padding: .75rem !important; }
    .hero-section .row { margin: 0; }
    .hero-section h1 { font-size: clamp(1.7rem, 7vw, 2.35rem); }
    .hero-section .btn { width: 100%; margin: .25rem 0; }
    .navbar.navbar-purple { padding: .55rem .75rem; }
    .navbar-nav .btn { margin: .25rem 0; }
    .card-hell { min-height: 90px; }
    .main-footer { padding: 1.25rem .75rem; }
    .table-responsive, #product_table { -webkit-overflow-scrolling: touch; }
}
