﻿/* Shared administration layout. Public storefront branding is unaffected. */
body.trusty-admin-theme{--admin-radius:14px;--admin-space:20px;color:#243650;font-size:14px;line-height:1.7}
.trusty-admin-theme .management-header{position:sticky!important;top:0;z-index:1030;padding:10px 20px;box-shadow:0 1px 0 #dce4ef}
.trusty-admin-theme .management-header-inner{max-width:1280px;gap:16px}
.trusty-admin-theme .management-brand{max-width:200px}
.trusty-admin-theme .management-brand img{width:52px;height:52px;border-radius:14px;object-fit:cover}
.trusty-admin-theme .management-header .nav-destination,.trusty-admin-theme .management-account-link{min-height:44px;border-radius:10px;padding:10px 12px}
.trusty-admin-theme .management-header .is-current{font-weight:700;border:1px solid #cbd7e8}
.trusty-admin-theme form>.container{max-width:1280px;padding-top:24px!important;padding-bottom:40px!important}
.trusty-admin-theme h1,.trusty-admin-theme .hero-title{font-size:clamp(24px,3vw,30px)!important;line-height:1.4;font-weight:700}
.trusty-admin-theme h2{line-height:1.5}.trusty-admin-theme h5{line-height:1.5}
.trusty-admin-theme .admin-hero{padding:20px!important;border-radius:16px;margin-bottom:16px}
.trusty-admin-theme .hero-stats{gap:12px!important}
.trusty-admin-theme .hero-stat{padding:14px!important;border-radius:12px;min-height:0!important}
.trusty-admin-theme .hero-stat strong,.trusty-admin-theme .stat-card .display-6{font-size:28px!important;font-weight:700;font-variant-numeric:tabular-nums}
.trusty-admin-theme .hero-stat .stat-icon{width:32px;height:32px;margin-bottom:6px;font-size:16px}
.trusty-admin-theme .card,.trusty-admin-theme .account-card,.trusty-admin-theme .command-panel{border-radius:var(--admin-radius);box-shadow:0 2px 10px #23345406}
.trusty-admin-theme .card-body{padding:20px}
.trusty-admin-theme .card-header,.trusty-admin-theme .modal-header{padding:16px 20px;background:#f8fafc!important}
.trusty-admin-theme .btn{min-height:44px;border-radius:10px;line-height:1.5;font-weight:600;padding:10px 14px;white-space:normal}
.trusty-admin-theme .btn-sm{padding:8px 12px;font-size:13px}
.trusty-admin-theme .form-control:not(textarea),.trusty-admin-theme .form-select{min-height:46px}
.trusty-admin-theme .form-control,.trusty-admin-theme .form-select{border-radius:10px;font-size:16px;line-height:1.5;background-color:#fff;border-color:#ccd6e3}
.trusty-admin-theme textarea.form-control{min-height:110px}
.trusty-admin-theme .form-label{font-size:14px;font-weight:600;margin-bottom:8px;color:#344863}
.trusty-admin-theme .text-muted,.trusty-admin-theme .form-text{color:#586a80!important}
.trusty-admin-theme :is(a,button,input,select,textarea,summary):focus-visible{outline:3px solid #5e7fb3!important;outline-offset:3px}
.trusty-admin-theme .form-control:focus,.trusty-admin-theme .form-select:focus{border-color:#5878a8;box-shadow:0 0 0 3px #30467418}
.trusty-admin-theme .table th{font-size:12px;font-weight:700;white-space:nowrap;padding:14px 16px;background:#f5f7fb}
.trusty-admin-theme .table td{padding:16px;vertical-align:middle;font-size:13px}
.trusty-admin-theme .modal-content{border:1px solid #dce4ef;border-radius:16px;box-shadow:0 16px 56px #152b4530}
.trusty-admin-theme .modal-title{font-size:18px;font-weight:600}
.trusty-admin-theme .modal-header .btn-close{width:20px;height:20px;min-width:44px;min-height:44px;box-sizing:border-box;margin:0 auto 0 0;padding:12px;opacity:.75}
.trusty-admin-theme .modal-body{padding:20px;overscroll-behavior:contain}
.trusty-admin-theme .modal-footer{padding:12px 20px;gap:8px;background:#fafbfc}
.trusty-admin-theme .alert{border-radius:10px;font-size:14px;line-height:1.7}
.trusty-admin-theme .login-card{border:1px solid #dce4ef;border-radius:20px;box-shadow:0 8px 32px #23345408}
.trusty-admin-theme .login-title{font-size:26px;font-weight:700}
.trusty-admin-theme .login-caption{font-size:14px;color:#586a80}
.trusty-admin-theme .toggle-password{min-width:44px;min-height:44px}
@media(max-width:991.98px){
 .trusty-admin-theme .management-header{padding:10px 14px}
 .trusty-admin-theme .management-header-inner{gap:10px}
 .trusty-admin-theme .management-brand{flex:1;max-width:none;min-width:0}
 .trusty-admin-theme .management-navigation{max-height:70dvh;overflow-y:auto;padding-top:12px}
 .trusty-admin-theme .management-destinations{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;gap:8px}
 .trusty-admin-theme .management-header .nav-destination{width:100%;justify-content:flex-start;font-size:13px}
 .trusty-admin-theme .management-header .nav-preview{min-height:44px}
}
@media(max-width:575.98px){
 .trusty-admin-theme form>.container{padding:16px 12px 32px!important}
 .trusty-admin-theme .admin-hero{padding:16px!important}
 .trusty-admin-theme .hero-stats{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
 .trusty-admin-theme .hero-stat{padding:12px!important}
 .trusty-admin-theme .hero-stat strong,.trusty-admin-theme .stat-card .display-6{font-size:24px!important}
 .trusty-admin-theme .hero-stat span{font-size:11px}
 .trusty-admin-theme .card-body{padding:14px}
 .trusty-admin-theme .modal-dialog{margin:8px;max-width:calc(100% - 16px)}
 .trusty-admin-theme .modal-body{padding:16px}
 .trusty-admin-theme .modal-header,.trusty-admin-theme .modal-footer{padding:12px 16px}
 .trusty-admin-theme .modal-footer>.btn{flex:1 1 auto;margin:0}
 .trusty-admin-theme .account-shell{padding-inline:12px}
}
@media(prefers-reduced-motion:reduce){.trusty-admin-theme *,.trusty-admin-theme *::before,.trusty-admin-theme *::after{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

/* One right-side navigation drawer across desktop and mobile. */
.trusty-admin-theme .management-header .management-toggle{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;width:auto;min-width:44px;height:44px;padding:0 14px;margin-inline-start:auto;order:3;border:1px solid #dce4ef;border-radius:10px;background:#fff;color:#2e436e;font:600 13px Cairo,sans-serif}
.trusty-admin-theme .management-header .management-toggle i{font-size:22px}
.trusty-admin-theme .management-header-inner{flex-wrap:nowrap}
.trusty-admin-theme .management-drawer{right:0!important;left:auto!important;top:0;bottom:0;width:min(360px,92vw);max-width:100%;transform:translateX(100%);border:0;border-inline-start:1px solid #dce4ef;background:#fff;color:#243650;box-shadow:-12px 0 48px #17233d18;direction:rtl}
.trusty-admin-theme .management-drawer.show:not(.hiding),.trusty-admin-theme .management-drawer.showing{transform:none}
.management-drawer .offcanvas-header{padding:20px;border-bottom:1px solid #e7ecf3;gap:16px}
.management-drawer .offcanvas-header h2{font:700 18px/1.5 Cairo,sans-serif;margin:0}
.management-drawer .offcanvas-header .btn-close{margin:0 auto 0 0;min-width:44px;min-height:44px;padding:12px;box-sizing:border-box;background-color:#f4f6fa;border-radius:10px}
.management-drawer .offcanvas-body{padding:20px;overflow-y:auto}
.management-drawer-caption{font:400 12px Cairo,sans-serif;color:#64748b;margin-bottom:16px}
.management-drawer .management-navigation,.management-drawer .management-destinations{display:flex!important;flex-direction:column;gap:8px;width:100%;padding:0;max-height:none;overflow:visible}
.management-drawer .management-navigation>div{width:100%}
.management-drawer .management-navigation a,.management-drawer .nav-destination{display:flex;align-items:center;gap:12px;min-height:48px;padding:12px 14px;border:1px solid transparent;border-radius:10px;color:#34445e;background:transparent;text-decoration:none;font:600 14px/1.6 Cairo,sans-serif;white-space:normal;width:100%}
.management-drawer .management-navigation i{font-size:20px}
.management-drawer .management-navigation a:hover{background:#f4f6fa;color:#233454}
.management-drawer .management-navigation .is-current{background:#eaf0f8;border-color:#d4dfef;color:#2e436e;box-shadow:inset -3px 0 #2e436e}
.management-drawer .management-navigation .nav-preview{background:#fff7da;border-color:#f0df9a;color:#54410c;margin-bottom:12px}
.management-drawer-footer{padding:16px 20px;border-top:1px solid #e7ecf3}
.management-drawer-footer .management-logout-button{width:100%;height:48px;display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:12px 14px;color:#a12b26;background:#fff;border:1px solid #edd9d8;border-radius:10px;font:600 14px Cairo,sans-serif}
.management-drawer :is(a,button):focus-visible{outline:3px solid #5e7fb3;outline-offset:2px}

/* Store cards: identity, details, then actions. */
.trusty-admin-theme .store-mobile-card{border:1px solid #e0e6ef!important;border-radius:18px!important;background:#fff!important;box-shadow:0 4px 18px #24365006!important;overflow:hidden}
.trusty-admin-theme .store-mobile-card::before{display:none!important}
.trusty-admin-theme .store-mobile-main{padding:18px!important}
.trusty-admin-theme .store-card-top{display:flex!important;align-items:flex-start!important;gap:14px!important;padding-bottom:16px!important;border-bottom:1px solid #edf0f5}
.trusty-admin-theme .store-logo-mobile{width:58px!important;height:58px!important;flex:0 0 58px;object-fit:contain;border-radius:14px!important;border:1px solid #e5eaf0;background:#f8fafc;padding:4px}
.trusty-admin-theme .store-card-title .store-name{font-size:16px!important;font-weight:700;line-height:1.6;white-space:normal!important}
.trusty-admin-theme .store-card-title .status-pill{font-size:10px!important;padding:3px 8px!important;flex-shrink:0}
.trusty-admin-theme .store-card-title .store-slug-link{display:block!important;max-width:100%;margin:4px 0 10px;font-size:11px;color:#64748b;direction:ltr;text-align:right}
.trusty-admin-theme .store-card-title .store-preview-link{display:inline-flex!important;align-items:center;gap:8px;min-height:40px;padding:8px 12px!important;border:1px solid #d7e2f2!important;border-radius:10px!important;background:#edf3fc!important;color:#304674!important;font-size:12px!important;margin:0!important}
.trusty-admin-theme .store-meta-grid{display:grid!important;gap:10px!important;margin-top:16px!important;padding:0!important}
.trusty-admin-theme .store-meta-pill{display:grid!important;grid-template-columns:70px minmax(0,1fr);align-items:start;gap:8px;padding:0!important;border:0!important;background:none!important}
.trusty-admin-theme .store-meta-pill>span{font-size:11px;color:#64748b}
.trusty-admin-theme .store-meta-pill strong{font-size:12px!important;font-weight:500!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.7}
.trusty-admin-theme .store-actions-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;padding:12px!important;background:#fafbfe;border-top:1px solid #edf0f5}
.trusty-admin-theme .store-actions-grid>.btn{min-width:0;min-height:44px!important;padding:8px 4px!important;font-size:12px!important;border-radius:10px!important}
.trusty-admin-theme .store-actions-grid .store-management{grid-column:1/-1;margin:0!important}
.trusty-admin-theme .store-management summary{min-height:44px;border-radius:10px;padding:10px 12px;background:#eef2f7;color:#304674;font-size:12px}
.trusty-admin-theme .store-management-menu{padding:6px!important;border:1px solid #e0e6ef;border-radius:12px!important;background:#fff}
.trusty-admin-theme .store-management-item{min-height:44px!important;padding:10px 12px!important;border-radius:8px;font-size:12px;line-height:1.6;white-space:normal!important;gap:10px}
.trusty-admin-theme .store-management-item:hover{background:#f3f6fb}
#btnResetDashboard{scroll-margin-top:100px}

/* Floating store actions never change table row height. */
.trusty-admin-theme .store-management-menu{position:fixed!important;z-index:1080;width:280px;max-width:calc(100vw - 24px);margin:0!important;padding:8px!important;box-shadow:0 16px 48px rgba(24,43,75,.18);border:1px solid #dfe6f0!important;border-radius:14px!important;max-height:calc(100vh - 24px);overflow-y:auto}
.trusty-admin-theme .store-management-item{font-size:13px!important;text-align:right;min-height:48px!important;padding:12px!important;font-weight:600}
.trusty-admin-theme .store-management-item i{display:grid;place-items:center;flex:0 0 30px;width:30px;height:30px;background:#f0f4fa;border-radius:8px;font-size:16px}
.trusty-admin-theme .store-management-danger{order:10;margin-top:6px;border-radius:0 0 8px 8px!important;border-top:1px solid #eee!important;color:#bd3343}
.trusty-admin-theme .store-management-danger i{background:#fff0f1}
.trusty-admin-theme .action-cluster{align-items:center!important}
.trusty-admin-theme .store-management summary{background:#fff;border:1px solid #dce3ee;justify-content:space-between;gap:16px}
.trusty-admin-theme .store-management[open] summary{background:#edf2fb;border-color:#a9bbd8;color:#273f6b}

/* Elevate the isolated mobile card as well as its floating menu. */
.trusty-admin-theme .store-mobile-card.store-menu-open{position:relative!important;z-index:1080!important;overflow:visible!important;transform:none!important}
