/* Global Container */
.stmgr-container { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: #fff; padding: 20px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); width: 100%; box-sizing: border-box; margin: 20px 0; }
.stmgr-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.stmgr-controls { display: flex; gap: 15px; align-items: center; margin-bottom: 20px; position: relative; flex-wrap: wrap; }
.stmgr-input { padding: 10px; width: 100%; min-width: 250px; border: 1px solid #ddd; border-radius: 4px; font-size: 15px; flex: 1; }
#stmgr-stats-bar { background: #f8f9fa; padding: 10px 15px; border: 1px solid #eee; border-radius: 4px; font-size: 14px; color: #444; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.stat-num { font-weight: bold; color: #0073aa; margin-left: 2px; }
.stat-divider { color: #ccc; }
.stmgr-card { border-top: 1px solid #eee; padding-top: 20px; margin-top: 20px; }
.stmgr-card h4 { margin: 0 0 15px 0; font-size: 18px; color: #333; display: flex; justify-content: space-between; align-items: center; }
.stmgr-grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; margin-bottom: 20px; }
.stmgr-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; margin-bottom: 15px; }
.stmgr-item { padding: 10px; border: 1px solid #eee; border-radius: 4px; background: #fff; cursor: pointer; transition: background 0.2s; }
.stmgr-item:hover { background: #f0f7fc; border-color: #0073aa; }
.stmgr-item label { display: block; font-size: 11px; text-transform: uppercase; color: #888; font-weight: 600; margin-bottom: 4px; }
.stmgr-item span { font-size: 14px; font-weight: 500; color: #333; word-break: break-all; }
.stmgr-level2-box { background-color: #fffbef !important; border: 1px solid #e6dbb9 !important; }
.stmgr-level2-box:hover { background-color: #fffbef !important; border-color: #e6dbb9 !important; cursor: default; }
.stmgr-level2-box label { color: #b58500 !important; }
.stmgr-badge-joined { color: #155724; font-weight: bold; font-size: 14px; }
.stmgr-badge-not-joined { color: #0c3e6d; font-style: italic; font-weight: 600; font-size: 14px; }
.stmgr-full-row { background: #f9f9f9; border: 1px solid #e0e0e0; border-radius: 6px; padding: 15px; margin-bottom: 15px; border-left: 4px solid #ccc; }
#res-vps-box { border-left-color: #2196F3; } #res-mt4-box { border-left-color: #4CAF50; } #res-payment-box { border-left-color: #607d8b; }
.stmgr-header h5 { margin: 0; font-size: 15px; color: #555; font-weight: 600; }
.stmgr-toggle-header { cursor: pointer; } .stmgr-toggle-header:hover h5 { color: #0073aa; }
.stmgr-toggle-icon { transition: transform 0.3s ease; font-size: 18px; color: #888; } .stmgr-toggle-icon.open { transform: rotate(180deg); }
.stmgr-expiry-tag { font-weight: bold; color: #2e7d32; } .stmgr-expiry-tag.expired { color: #d63638; }
.stmgr-actions { display: flex; gap: 5px; margin-top: 10px; align-items: center; }
.stmgr-icon-btn { background: #f0f0f1; border: 1px solid #ccc; color: #333; width: 32px; height: 32px; border-radius: 4px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all 0.2s; }
.stmgr-icon-btn:hover { background: #e5e5e5; border-color: #999; color: #000; }
.stmgr-icon-btn.btn-vps { color: #2271b1; border-color: #2271b1; background: #f6f7f7; } .stmgr-icon-btn.btn-vps:hover { background: #f0f0f1; color: #135e96; }
.btn-edit { width: auto !important; padding: 0 10px !important; font-size: 13px !important; color: #d63638 !important; border: 1px solid transparent !important; background: transparent !important; }
.btn-edit:hover { background: #f0f0f1 !important; border-color: #d63638 !important; }
.button-primary { background-color: #2271b1; color: #fff; border: none; padding: 10px 20px; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500; } .button-primary:hover { background-color: #135e96; }
.button-small { padding: 4px 8px; font-size: 12px; height: 32px; line-height: 22px; box-sizing: border-box; }
.button-secondary { background: #f6f7f7; color: #2271b1; border: 1px solid #2271b1; border-radius: 4px; cursor: pointer; } .button-secondary:hover { background: #f0f0f1; color: #135e96; border-color: #135e96; }
.stmgr-modal { display: none; position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); }
.stmgr-modal-content { background: #fff; margin: 10% auto; padding: 25px; width: 90%; max-width: 500px; border-radius: 8px; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.2); }
.stmgr-close { float: right; font-size: 24px; cursor: pointer; color: #999; } .stmgr-close:hover { color: #333; }
.stmgr-input-small { width: 100%; padding: 8px; border: 1px solid #ddd; border-radius: 4px; box-sizing: border-box; margin-top: 5px; } .stmgr-form-group { margin-bottom: 15px; }
.ui-autocomplete.stmgr-autocomplete-list { background: white; border: 1px solid #ccc; max-height: 250px; overflow-y: auto; overflow-x: hidden; z-index: 99999; padding: 0; margin: 0; list-style: none; width: 100%; box-sizing: border-box; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
.ui-menu-item.stmgr-autocomplete-item { padding: 10px 15px; cursor: pointer; font-size: 14px; color: #333; border-bottom: 1px solid #f0f0f0; } .ui-state-active { background-color: #f1f3f5 !important; border: none !important; margin: 0 !important; color: #000 !important; }
.stmgr-table-responsive { overflow-x: auto; width: 100%; }
.stmgr-table { width: 100%; border-collapse: collapse; min-width: 600px; font-size: 13px; }
.stmgr-table th, .stmgr-table td { text-align: left; padding: 10px; border-bottom: 1px solid #eee; vertical-align: middle; }
.stmgr-table th { background: #f8f9fa; font-weight: 600; color: #555; }
.stmgr-table tr:hover td { background: #fcfcfc; }
/* Date Box Style */
.stmgr-date-box label { color: #555 !important; font-weight: bold; }
.stmgr-date-box span { font-family: monospace; color: #000; font-weight: 600; }
.stmgr-date-box small { display:block; font-size:11px; color:#d63638; margin-top:2px; font-weight:bold; }
@media (max-width:600px){.stmgr-container{padding:15px;margin:10px 0;border-radius:0;box-shadow:none;width:auto}.stmgr-header{flex-direction:column;align-items:flex-start;gap:15px}.stmgr-header h3{width:100%;margin-bottom:0;font-size:18px}#stmgr-stats-bar{width:100%;display:flex;flex-direction:column;gap:10px;background:transparent;border:none;padding:0}#stmgr-stats-bar>span:not(.stat-divider){background:#f8f9fa;border:1px solid #e0e0e0;padding:12px 15px;border-radius:6px;display:flex;justify-content:space-between;align-items:center;width:100%;box-sizing:border-box;font-weight:500;box-shadow:0 1px 3px rgba(0,0,0,0.05)}.stat-divider{display:none!important}.stmgr-controls{flex-direction:column;align-items:stretch;gap:10px}.stmgr-input,#stmgr-search-btn{width:100%;height:42px}.stmgr-grid-3,.stmgr-grid-2{grid-template-columns:1fr}.stmgr-actions{justify-content:flex-start;flex-wrap:wrap}.stmgr-modal-content{width:90%;margin:30% auto}}