﻿:root{--bg:#f5f7fb;--surface:#fff;--text:#0f172a;--muted:#64748b;--border:#dbe3ef;--primary:#2563eb;--primary-dark:#1d4ed8;--success:#16a34a;--warning:#f59e0b;--danger:#dc2626;--shadow:0 22px 55px rgba(15,23,42,.10);--radius:16px;--radius-sm:10px}
*{box-sizing:border-box}html{height:100%}body{min-height:100%;margin:0;font-family:Inter,Segoe UI,Arial,sans-serif;background:var(--bg);color:var(--text)}button,input,select,textarea{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.field-error{min-height:18px;color:var(--danger);font-size:12px;margin-top:5px}.primary-button{width:100%;border:0;border-radius:12px;background:var(--primary);color:#fff;font-weight:800;padding:14px 18px;box-shadow:0 14px 28px rgba(37,99,235,.22);transition:.2s ease}.primary-button:hover{background:var(--primary-dark);transform:translateY(-1px)}.primary-button:disabled{opacity:.55;cursor:not-allowed;transform:none}.form-group{display:flex;flex-direction:column}.form-group label{font-size:14px;font-weight:700;margin-bottom:8px;color:#1f2937}.form-group input{width:100%;border:1px solid var(--border);border-radius:12px;background:#fff;padding:13px 14px;color:var(--text);outline:none;transition:.2s ease}.form-group input:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(37,99,235,.12)}.form-group input.is-invalid{border-color:var(--danger);box-shadow:0 0 0 4px rgba(220,38,38,.10)}
@media (max-width:720px){:root{--radius:14px}.hide-mobile{display:none!important}}

/* Modern CMS refresh */
:root{--bg:#f3f6fb;--surface:#ffffff;--text:#07111f;--muted:#66758a;--border:#d7e0ee;--primary:#2f66f2;--primary-dark:#1f4fd0;--success:#0ea66b;--warning:#f59e0b;--danger:#ef4444;--shadow:0 18px 50px rgba(15,23,42,.10);--radius:18px;--radius-sm:12px}body{background:radial-gradient(circle at top left,rgba(47,102,242,.10),transparent 28%),linear-gradient(180deg,#f8fbff 0%,#eef3f9 100%);color:var(--text)}input,select,textarea{min-height:46px}input::placeholder,textarea::placeholder{color:#94a3b8}.primary-button,.primary-action{background:linear-gradient(135deg,#2f66f2,#1f4fd0)!important;box-shadow:0 16px 34px rgba(47,102,242,.25)!important}.secondary-action{background:#eef4ff!important;color:#1f4fd0!important}
/* Compact Professional Redesign - final override */
html{font-size:13px!important}
body{font-size:13px!important;line-height:1.42!important;background:#f5f7fb!important;color:#0f172a!important}
button,input,select,textarea{font-size:12.5px!important;letter-spacing:0!important}
input,select,textarea{min-height:38px!important;height:auto!important;padding:8px 10px!important;border-radius:9px!important;border-color:#d8e1ee!important;background:#fff!important;color:#111827!important;box-shadow:none!important}
input::placeholder,textarea::placeholder{font-size:12px!important;color:#98a2b3!important}
input:focus,select:focus,textarea:focus{border-color:#2563eb!important;box-shadow:0 0 0 3px rgba(37,99,235,.10)!important;outline:none!important}
textarea{min-height:70px!important;resize:vertical!important}
.form-group label{font-size:11.5px!important;font-weight:700!important;margin-bottom:5px!important;color:#1f2937!important}
.field-error{font-size:10.5px!important;min-height:13px!important;margin-top:3px!important}
.primary-button,.primary-action,.secondary-action,.btn{min-height:36px!important;padding:8px 12px!important;border-radius:9px!important;font-size:12px!important;font-weight:750!important}
/* Field + Icon Polish - compact final pass */
html{font-size:12.5px!important}
body{font-size:12.5px!important}
input,select,textarea,.ts-control,.tom-select,.choices__inner{min-height:34px!important;font-size:12px!important;line-height:1.25!important;padding:7px 9px!important;border-radius:8px!important}
select{background-size:14px!important;background-position:right 9px center!important;padding-right:30px!important}
input::placeholder,textarea::placeholder{font-size:11.5px!important;color:#9aa4b2!important}
.form-group label,.input-label,label{font-size:11px!important;line-height:1.2!important;margin-bottom:4px!important}
.field-error,.error-message,.invalid-feedback{font-size:10px!important;line-height:1.25!important;margin-top:3px!important}
button,.btn,.primary-button,.primary-action,.secondary-action{min-height:34px!important;font-size:11.5px!important;line-height:1.2!important;padding:7px 10px!important;border-radius:8px!important}
svg,.nav-icon svg,.cms-nav-icon svg,.header-icon svg,.cms-header-icon svg,.bell-icon svg,.btn svg,button svg{width:13px!important;height:13px!important;stroke-width:2!important}
.nav-icon,.cms-nav-icon{width:24px!important;height:24px!important;border-radius:7px!important}
.card,.panel,.customer-card,.user-card,.stat-card{border-radius:11px!important}
.card-header,.card-title,.list-toolbar,.panel-header{padding:9px 11px!important}
.table-wrap th,.table-wrap td,th,td{font-size:11.5px!important;padding:7px 8px!important}
.status-pill,.role-pill,.badge,.tag{font-size:10px!important;padding:3px 6px!important;border-radius:999px!important}
/* SVG Field Icons */
:root{
  --fi-user:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E");
  --fi-lock:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E");
  --fi-phone:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 2 .7 2.8a2 2 0 0 1-.4 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/%3E%3C/svg%3E");
  --fi-mail:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E");
  --fi-pin:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 10c0 5-8 12-8 12S4 15 4 10a8 8 0 1 1 16 0Z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
  --fi-building:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21h18'/%3E%3Cpath d='M5 21V5a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v16'/%3E%3Cpath d='M9 7h4M9 11h4M9 15h4'/%3E%3C/svg%3E");
  --fi-map:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3 6 6-3 6 3 6-3v15l-6 3-6-3-6 3V6Z'/%3E%3Cpath d='M9 3v15M15 6v15'/%3E%3C/svg%3E");
  --fi-note:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E");
  --fi-search:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --fi-rupee:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12M6 8h12M6 13h5a5 5 0 0 0 0-10M6 13l8 8'/%3E%3C/svg%3E");
  --fi-box:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21 8-9-5-9 5 9 5 9-5Z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E");
  --fi-calendar:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2'/%3E%3Cpath d='M16 2v4M8 2v4M3 10h18'/%3E%3C/svg%3E");
  --fi-truck:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%2364758b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h11v9H3z'/%3E%3Cpath d='M14 9h4l3 4v2h-7z'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3Ccircle cx='18' cy='18' r='2'/%3E%3C/svg%3E");
}
.form-group input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
.list-toolbar input[type="search"],
.password-field input,
.password-box input{
  background-image:var(--field-icon,var(--fi-note))!important;
  background-repeat:no-repeat!important;
  background-position:10px 50%!important;
  background-size:13px 13px!important;
  padding-left:31px!important;
}
.form-group textarea{background-position:10px 9px!important}
input[type="search"],#customerSearch,#userSearch{--field-icon:var(--fi-search)}
input[type="password"],#password,#confirmPassword{--field-icon:var(--fi-lock)}
input[type="email"],[id*="Email"],[id*="email"]{--field-icon:var(--fi-mail)}
input[type="tel"],[id*="Mobile"],[id*="mobile"],[id*="whatsapp"],[id*="Whatsapp"],[id*="phone"],[id*="Phone"]{--field-icon:var(--fi-phone)}
[id*="Name"],[id*="name"],[id*="Contact"],[id*="contact"],[id*="username"],[id*="Username"]{--field-icon:var(--fi-user)}
[id*="Company"],[id*="company"],[id*="gst"],[id*="GST"]{--field-icon:var(--fi-building)}
[id*="Pincode"],[id*="pincode"],[id*="Pin"],[id*="PIN"],[id*="State"],[id*="state"],[id*="District"],[id*="district"],[id*="City"],[id*="city"],[id*="Landmark"],[id*="landmark"]{--field-icon:var(--fi-pin)}
[id*="Address"],[id*="address"],[id*="terms"],[id*="Terms"]{--field-icon:var(--fi-map)}
[id*="Amount"],[id*="amount"],[id*="Charges"],[id*="charges"],[id*="gstPercentage"],[id*="freight"]{--field-icon:var(--fi-rupee)}
[id*="package"],[id*="Package"],[id*="shipment"],[id*="Shipment"],[id*="Weight"],[id*="weight"],[id*="Length"],[id*="Width"],[id*="Height"],[class*="package-"]{--field-icon:var(--fi-box)}
[id*="Date"],[id*="date"]{--field-icon:var(--fi-calendar)}
[id*="courier"],[id*="Courier"],[id*="transport"],[id*="Transport"]{--field-icon:var(--fi-truck)}
.total-box input{background-image:none!important;padding-left:10px!important}
.password-field,.password-box{position:relative}.password-field input,.password-box input{padding-right:58px!important}.password-field button,.password-box button{position:absolute!important;right:4px!important;top:50%!important;transform:translateY(-50%)!important;min-height:26px!important;height:26px!important;padding:4px 8px!important;font-size:10.5px!important;border-radius:7px!important}
/* Premium Scrollbar Polish */
*{scrollbar-width:thin;scrollbar-color:#9aa7bb transparent}
::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent;border-radius:999px}
::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#a8b3c5,#7d8899);border-radius:999px;border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-thumb:hover{background:linear-gradient(180deg,#7c8aa0,#5f6b7c);border:2px solid transparent;background-clip:padding-box}
::-webkit-scrollbar-corner{background:transparent}
.sidebar-nav,.cms-sidebar-nav{scrollbar-color:rgba(148,163,184,.55) transparent}
.sidebar-nav::-webkit-scrollbar,.cms-sidebar-nav::-webkit-scrollbar{width:6px}
.sidebar-nav::-webkit-scrollbar-thumb,.cms-sidebar-nav::-webkit-scrollbar-thumb{background:rgba(148,163,184,.42);border:1px solid rgba(15,23,42,.35);border-radius:999px}
.sidebar-nav::-webkit-scrollbar-thumb:hover,.cms-sidebar-nav::-webkit-scrollbar-thumb:hover{background:rgba(203,213,225,.65)}
.customer-modal,.user-modal,.quick-customer-modal,.modal{scrollbar-gutter:stable;overscroll-behavior:contain}
.customer-modal::-webkit-scrollbar,.user-modal::-webkit-scrollbar,.quick-customer-modal::-webkit-scrollbar,.modal::-webkit-scrollbar{width:7px}
.customer-modal::-webkit-scrollbar-track,.user-modal::-webkit-scrollbar-track,.quick-customer-modal::-webkit-scrollbar-track,.modal::-webkit-scrollbar-track{background:rgba(15,23,42,.08);border-radius:999px;margin:12px 0}
.customer-modal::-webkit-scrollbar-thumb,.user-modal::-webkit-scrollbar-thumb,.quick-customer-modal::-webkit-scrollbar-thumb,.modal::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#2563eb,#14b8a6);border-radius:999px;border:2px solid rgba(255,255,255,.75);background-clip:padding-box}
.customer-modal-dialog,.user-modal-dialog,.quick-customer-dialog{max-height:calc(100vh - 36px)!important;overflow:hidden!important;display:flex!important;flex-direction:column!important}
.customer-modal-dialog form,.user-modal-dialog form,.quick-customer-dialog form{overflow:auto!important;padding-right:12px!important;scrollbar-gutter:stable}
.customer-modal-dialog form::-webkit-scrollbar,.user-modal-dialog form::-webkit-scrollbar,.quick-customer-dialog form::-webkit-scrollbar{width:7px}
.customer-modal-dialog form::-webkit-scrollbar-track,.user-modal-dialog form::-webkit-scrollbar-track,.quick-customer-dialog form::-webkit-scrollbar-track{background:#eef3f9;border-radius:999px;margin:8px 0}
.customer-modal-dialog form::-webkit-scrollbar-thumb,.user-modal-dialog form::-webkit-scrollbar-thumb,.quick-customer-dialog form::-webkit-scrollbar-thumb{background:linear-gradient(180deg,#2f66f2,#0ea66b);border-radius:999px;border:2px solid #eef3f9;background-clip:padding-box}
.table-wrap,.list-card{scrollbar-width:thin;scrollbar-color:#94a3b8 transparent}
.table-wrap::-webkit-scrollbar{height:7px;width:7px}.table-wrap::-webkit-scrollbar-thumb{background:#94a3b8;border-radius:999px}.table-wrap::-webkit-scrollbar-track{background:#eef2f7;border-radius:999px}

/* Working Profile Menu */
.profile-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.42);backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;padding:18px;z-index:500}
.profile-modal{width:min(620px,100%);background:#fff;border:1px solid #dbe3ef;border-radius:18px;box-shadow:0 28px 70px rgba(15,23,42,.22);overflow:hidden}
.profile-modal-head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid #e5eaf3;background:linear-gradient(180deg,#f8fbff,#eef4ff)}
.profile-modal-head span{display:block;color:#2563eb;font-size:10px;font-weight:900;text-transform:uppercase;letter-spacing:.08em;margin-bottom:3px}
.profile-modal-head h3{margin:0;font-size:17px;color:#0f172a}
.profile-modal-close{width:32px!important;height:32px!important;min-height:32px!important;border:0;border-radius:9px;background:#fee2e2;color:#991b1b;font-size:20px!important;font-weight:900;line-height:1!important;padding:0!important}
.profile-modal-body{padding:16px}.profile-mini-card{display:flex;justify-content:space-between;gap:12px;align-items:center;border:1px solid #dbe3ef;background:#f8fafc;border-radius:12px;padding:11px 12px;margin-bottom:12px}.profile-mini-card strong{font-size:15px;color:#0f172a}.profile-mini-card span{font-size:11px;font-weight:800;color:#2563eb;background:#eaf1ff;border-radius:999px;padding:5px 9px}.profile-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.profile-form-grid.one-col{grid-template-columns:1fr}.profile-form-grid label{display:grid;gap:5px;font-size:11px;font-weight:800;color:#1f2937}.profile-form-grid input{width:100%;border:1px solid #d8e1ee;border-radius:9px;min-height:36px;padding:8px 10px;font-size:12px;color:#111827;outline:none}.profile-form-grid input:focus{border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.10)}.profile-form-grid input[readonly]{background:#f8fafc;color:#64748b}.profile-help{margin:12px 0 0;color:#64748b;font-size:11px}.profile-modal-actions{display:flex;justify-content:flex-end;gap:8px;padding:12px 16px;border-top:1px solid #e5eaf3;background:#f8fafc}.profile-primary,.profile-secondary{border:0;border-radius:9px;min-height:34px;padding:8px 12px;font-size:12px;font-weight:850}.profile-primary{background:#2563eb;color:#fff;box-shadow:0 12px 24px rgba(37,99,235,.22)}.profile-secondary{background:#eaf1ff;color:#1d4ed8}.profile-toast{position:fixed;right:18px;bottom:18px;background:#0f172a;color:#fff;border-radius:12px;padding:10px 13px;font-size:12px;font-weight:850;box-shadow:0 18px 40px rgba(15,23,42,.25);opacity:0;transform:translateY(8px);pointer-events:none;transition:.2s ease;z-index:600}.profile-toast.show{opacity:1;transform:translateY(0)}
@media(max-width:640px){.profile-form-grid{grid-template-columns:1fr}.profile-modal{border-radius:15px}.profile-modal-actions{flex-direction:column}.profile-primary,.profile-secondary{width:100%}}

/* Profile Popup Refinement */
.profile-modal-head span{font-weight:700!important}.profile-modal-head h3{font-weight:650!important}.profile-mini-card strong{font-weight:650!important}.profile-mini-card span{font-weight:650!important}.profile-form-grid label{font-weight:600!important;color:#334155!important}.profile-form-grid input{font-weight:400!important;background-repeat:no-repeat!important;background-position:10px 50%!important;background-size:13px 13px!important;padding-left:31px!important}.profile-form-grid input[readonly]{font-weight:400!important}.profile-help{font-weight:400!important}.profile-primary,.profile-secondary{font-weight:650!important}.profile-toast{font-weight:650!important}
#profileEditName{background-image:var(--fi-user)!important}#profileEditUsername{background-image:var(--fi-user)!important}#profileEditMobile{background-image:var(--fi-phone)!important}#profileEditEmail{background-image:var(--fi-mail)!important}#profileCurrentPassword,#profileNewPassword,#profileConfirmPassword{background-image:var(--fi-lock)!important}.profile-form-grid input[readonly]{background-image:var(--fi-note)!important}
