/* V11 professional deep-blue interface. UI contrast only; functional application code is untouched. */
:root,:root[data-theme="dark"],:root[data-theme="light"]{
 color-scheme:light;
 --primary:#9c3460;--primary-2:#bf5380;--primary-soft:#f7eaef;
 --accent:#861e4a;--gold:#d63579;--gold-dark:#9a1a50;
 --bg:#f4eef1;--surface:#ffffff;--surface-2:#f9f4f6;
 --text:#381a27;--muted:#846471;--border:#decdd4;
 --shadow:0 10px 28px rgba(83,35,55,.11);
 --danger:#c9477e;--sidebar:#732847;--sidebar-2:#9c3d65;
}
html,body,#root{background:linear-gradient(135deg,#f2eaed 0%,#fbf7f9 52%,#f0e6ea 100%);}
body{overflow-x:hidden;}
.sidebar{background:linear-gradient(165deg,#692542 0%,#822e51 52%,#9d3d65 100%);color:#fdf7fa;border-right:1px solid #5c2039;box-shadow:8px 0 28px rgba(73,23,44,.19)}
.brand-mark{background:linear-gradient(145deg,#ffffff,#eed8e1);color:#842d52;border:1px solid rgba(255,255,255,.75);box-shadow:inset 0 1px 0 #fff,0 5px 14px rgba(56,13,31,.24)}
.brand small,.sidebar-help small{color:#f2d8e3;opacity:1}
.sidebar nav a,.nav-title{color:#f9eaf0}
.sidebar nav a:hover{background:rgba(255,255,255,.14);color:#fff}
.sidebar nav a.active{background:linear-gradient(135deg,#ff75af 0%,#e93f86 48%,#c9276b 100%);color:#451c2d!important;border:1px solid #ffadcf;box-shadow:inset 0 1px 0 rgba(255,255,255,.82),inset 0 -1px 0 rgba(115,10,54,.28),0 6px 16px rgba(54,12,30,.28);text-shadow:0 1px 0 rgba(255,255,255,.42)}
.sidebar nav a.active svg{color:#451c2d!important;stroke:currentColor!important}
.sidebar-help{background:rgba(61,15,34,.30);border:1px solid rgba(255,255,255,.25)}
.content>header{background:rgba(255,255,255,.95);backdrop-filter:blur(15px);box-shadow:0 4px 16px rgba(78,42,57,.07)}
.card,.bill-panel,.modal{background:linear-gradient(145deg,#ffffff,#fdfafb);border-color:#d9c7cf;box-shadow:0 9px 25px rgba(77,36,53,.09),inset 0 1px 0 #fff}
th{background:linear-gradient(180deg,#f5eef1,#efe4e9);color:#6b4a58}
tbody tr:hover td{background:#faeff4!important}
input,select,textarea,.global-search,.inline-search,.sale-search{outline-color:#af4974}
input:focus,select:focus,textarea:focus{border-color:#b14975!important;box-shadow:0 0 0 3px rgba(170,66,110,.16)}
::selection{background:#9e3c65;color:#fff}
option:checked{background:#9e3c65;color:#fff}
input[type="checkbox"],input[type="radio"]{accent-color:#9e3c65}
.btn,.icon,.language,.pager button,.table-tools button,.row-actions button,.gstr-tabs button,.chips button,.product-mode button,.settings-nav button,.saved-user-edit,.ledger-all-dates{
 transition:transform .16s ease,box-shadow .16s ease,filter .16s ease,border-color .16s ease;
 font-weight:800;
}
.btn.primary,.save-sale,.login-button,.settings-submit,.bill-save-row button:last-child,.modal-actions .primary,.access-actions .primary{
 color:#fff!important;border-color:#8a2b53!important;
 background:linear-gradient(180deg,#db83a8 0%,#bb5580 42%,#96335d 54%,#af4773 100%)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.72),inset 0 -1px 0 rgba(96,28,57,.42),0 5px 13px rgba(135,47,84,.26)!important;
 text-shadow:0 1px 1px rgba(76,19,43,.42);
}
.btn.secondary,.icon,.language,.pager button,.table-tools button,.row-actions button,.chips button,.product-mode button:not(.active),.settings-nav button:not(.active),.saved-user-edit,.ledger-all-dates{
 color:#4d1e32!important;background:linear-gradient(180deg,#fbeef3 0%,#f0d9e3 48%,#e3c1cf 52%,#f6e8ee 100%);border-color:#c294a7;
 box-shadow:inset 0 1px 0 #fff,0 3px 8px rgba(72,40,53,.11);
}
.product-mode button.active,.gstr-tabs button.active,.settings-nav button.active{
 color:#41192a!important;border-color:#a91855!important;
 background:linear-gradient(180deg,#ff9ac4 0%,#f3599a 45%,#d92f76 54%,#ef5395 100%)!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.86),inset 0 -1px 0 rgba(123,10,57,.32),0 5px 13px rgba(166,26,85,.25)!important;
 text-shadow:0 1px 0 rgba(255,255,255,.48);
}
.btn:hover:not(:disabled),.icon:hover:not(:disabled),.language:hover:not(:disabled),.pager button:hover:not(:disabled),.table-tools button:hover:not(:disabled),.row-actions button:hover:not(:disabled){filter:brightness(1.04);transform:translateY(-1px);box-shadow:inset 0 1px 0 #fff,0 6px 14px rgba(105,45,70,.19)}
.btn:active:not(:disabled),button:active:not(:disabled){transform:translateY(0)}
.danger,.saved-user-remove{color:#b9346c!important}
.header-actions button[title="Theme"]{display:none!important}
.theme-options>button:nth-child(2){display:none!important}
.theme-options{grid-template-columns:minmax(0,320px)!important}
.theme-preview.light i{background:#9e3c65}
.stat,.report-metric,.gstr-metric{border-top:3px solid #ab416e}
.stat:nth-child(4n+1),.report-metric:nth-child(4n+1),.gstr-metric:nth-child(4n+1){border-top-color:#ab416e}
.stat:nth-child(4n+2),.report-metric:nth-child(4n+2),.gstr-metric:nth-child(4n+2){border-top-color:#89224d}
.stat:nth-child(4n+3),.report-metric:nth-child(4n+3),.gstr-metric:nth-child(4n+3){border-top-color:#d03274}
.stat:nth-child(4n),.report-metric:nth-child(4n),.gstr-metric:nth-child(4n){border-top-color:#ad5f80}
.stat:nth-child(4n+1),.report-metric:nth-child(4n+1),.gstr-metric:nth-child(4n+1){background:linear-gradient(145deg,#fff,#fbf0f5)!important}
.stat:nth-child(4n+2),.report-metric:nth-child(4n+2),.gstr-metric:nth-child(4n+2){background:linear-gradient(145deg,#fff,#f7ebf0)!important}
.stat:nth-child(4n+3),.report-metric:nth-child(4n+3),.gstr-metric:nth-child(4n+3){background:linear-gradient(145deg,#fff,#f9e5ed)!important}
.stat:nth-child(4n),.report-metric:nth-child(4n),.gstr-metric:nth-child(4n){background:linear-gradient(145deg,#fff,#fbeef3)!important}
.stat:nth-child(4n+1) .stat-icon,.report-metric:nth-child(4n+1)>i,.gstr-metric:nth-child(4n+1)>i{background:#f9eaf0;color:#9e3c65}
.stat:nth-child(4n+2) .stat-icon,.report-metric:nth-child(4n+2)>i,.gstr-metric:nth-child(4n+2)>i{background:#f2e5ea;color:#7e1e46}
.stat:nth-child(4n+3) .stat-icon,.report-metric:nth-child(4n+3)>i,.gstr-metric:nth-child(4n+3)>i{background:#f8dfea;color:#a81553}
.stat:nth-child(4n) .stat-icon,.report-metric:nth-child(4n)>i,.gstr-metric:nth-child(4n)>i{background:#f9ecf1;color:#a15474}
.payment-analysis-head h2,.report-metric b,.purchase-summary-grid b{color:#612941}
.payment-chart,.payment-method-cards article{background:#fbf8f9}
.payment-method-cards .payment-total{background:#f7e9ef;border-color:#d8aec0}.payment-total b{color:#92335b}
.table-tools .btn:nth-child(1){border-color:#611a38!important;color:#fff!important;background:linear-gradient(180deg,#9a3f65,#6b2140)!important;text-shadow:0 1px 1px rgba(40,6,20,.35)}
.table-tools .btn:nth-child(2){border-color:#752044!important;color:#fff!important;background:linear-gradient(180deg,#aa4670,#7f264b)!important;text-shadow:0 1px 1px rgba(47,8,24,.35)}
.table-tools .btn:nth-child(3){border-color:#83425d!important;color:#fff!important;background:linear-gradient(180deg,#ba7290,#964f6d)!important;text-shadow:0 1px 1px rgba(70,27,45,.35)}
.table-tools .btn svg{color:currentColor!important;stroke:currentColor!important}
.page-actions .btn.secondary,.table-level-actions .btn.secondary{color:#fff!important;border-color:#79465b!important;background:linear-gradient(180deg,#b27890,#8f566e)!important;text-shadow:0 1px 1px rgba(68,28,45,.34)}
.page-actions .btn.secondary svg,.table-level-actions .btn.secondary svg{color:currentColor!important;stroke:currentColor!important}
.row-actions button:not(.danger):not(.saved-user-remove){color:#fff!important;border-color:#7c254a!important;background:linear-gradient(180deg,#a34d71,#842d52)!important}
.danger,.saved-user-remove,.row-actions button.danger{color:#fff!important;border-color:#a72f61!important;background:linear-gradient(180deg,#df699b,#bd3e73)!important}
button:disabled,.btn:disabled{opacity:.62!important;filter:saturate(.72);cursor:not-allowed}
button:focus-visible,.btn:focus-visible{outline:3px solid rgba(226,49,123,.38)!important;outline-offset:2px}
.page-actions.relocated-source{display:none!important;position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%)!important;opacity:0!important;pointer-events:none!important}
.table-level-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:9px;width:100%;margin:0 0 10px}
.table-level-actions .btn{text-decoration:none;min-height:40px}
.transaction-toolbar{flex-wrap:wrap}.transaction-toolbar>.table-level-actions{order:-1}
.ledger-select>.table-level-actions{grid-column:1/-1}
.data-toolbar>.table-level-actions{flex:0 0 100%}
.data-toolbar:has(>.table-level-actions){flex-wrap:wrap}
.user-password-field{position:relative!important}
.user-password-field input{padding-right:45px!important}
.user-password-toggle{position:absolute;right:8px;bottom:7px;width:34px;height:34px;display:grid;place-items:center;border:0;border-radius:8px;color:#9a335e;background:linear-gradient(180deg,#fff,#eee1e6);box-shadow:inset 0 1px 0 #fff,0 2px 7px rgba(90,40,61,.14)}
.user-password-toggle svg{width:18px;height:18px;pointer-events:none}
@media(max-width:1180px){main{padding-left:20px;padding-right:20px}.page-actions{flex-wrap:wrap;justify-content:flex-end}.ledger-date-filter{grid-template-columns:repeat(2,minmax(180px,1fr))!important}.ledger-date-filter>.table-level-actions{grid-column:1/-1}}
@media(max-width:900px){.mobile-close{color:#fff;border-color:rgba(255,255,255,.45)}.content{width:100%}.payment-analysis-body{grid-template-columns:1fr}.table-level-actions{justify-content:flex-start}}
@media(max-width:700px){main{padding-left:12px;padding-right:12px}.ledger-date-filter{grid-template-columns:1fr!important}.ledger-date-filter>.table-level-actions{grid-column:1}.table-level-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}.table-level-actions .btn{justify-content:center;width:100%;padding:9px 10px}.table-level-actions .secondary{display:flex!important}.transaction-toolbar{align-items:stretch}.data-toolbar{align-items:stretch}.payment-analysis{padding:13px}.card{border-radius:12px}.page-header{margin-bottom:16px}}
@media(max-width:430px){.table-level-actions{grid-template-columns:1fr}.table-level-actions .btn{min-height:42px}.stats{grid-template-columns:1fr}.content>header{padding-left:8px;padding-right:8px}.header-actions{gap:5px}.language{padding:0 8px}.settings-content{padding:16px}.modal{width:100%;border-radius:14px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important}}

/* Login keeps the glass treatment but uses the deeper V10 steel-blue palette. */
.hardware-login .login-card{background:linear-gradient(145deg,rgba(248,237,242,.97),rgba(219,171,191,.94))!important;border-color:rgba(255,255,255,.92)!important;box-shadow:inset 0 1px rgba(255,255,255,.95),0 26px 75px rgba(58,15,33,.52)!important}
.hardware-login .login-card:before{border-color:rgba(156,69,106,.50)!important}
.hardware-login .login-brand>span{background:linear-gradient(145deg,#d180a2,#953960)!important;color:#fff!important;box-shadow:0 7px 20px rgba(119,40,73,.34)!important}
.hardware-login .login-brand small,.hardware-login .login-card svg,.hardware-login .password-toggle{color:#91325a!important}
.hardware-login .login-card label>div:focus-within{border-color:#ac416e!important;box-shadow:0 0 0 3px rgba(172,65,110,.20)!important}

/* V12: bold readable metallic controls, distinct language/logout actions and moving login edge. */
@keyframes metallic-button-shine{0%{background-position:180% 0,0 0}55%,100%{background-position:-90% 0,0 0}}
@keyframes login-blue-run{0%{background-position:220% 0}100%{background-position:-120% 0}}
.btn,.icon,.language,.pager button,.table-tools button,.row-actions button,.gstr-tabs button,.chips button,.product-mode button,.settings-nav button,.saved-user-edit,.saved-user-remove,.ledger-all-dates,.user-password-toggle{
 color:#26131b!important;font-weight:900!important;text-shadow:0 1px 0 rgba(255,255,255,.62)!important;
}
.btn.primary,.save-sale,.login-button,.settings-submit,.bill-save-row button:last-child,.modal-actions .primary,.access-actions .primary{
 color:#1f1117!important;border-color:#ab3567!important;
 background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.76) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#f6cadc 0%,#e87aa8 42%,#cb4c81 53%,#e78db3 100%)!important;
 background-size:250% 100%,100% 100%!important;animation:metallic-button-shine 3.8s linear infinite;
 box-shadow:inset 0 1px 0 #fff,inset 0 -2px 0 rgba(123,36,73,.3),0 5px 13px rgba(149,44,88,.29)!important;
}
.btn.secondary,.icon,.pager button,.chips button,.product-mode button:not(.active),.settings-nav button:not(.active),.saved-user-edit,.ledger-all-dates{
 color:#26131b!important;border-color:#a76c85!important;
 background-image:linear-gradient(110deg,transparent 0%,transparent 39%,rgba(255,255,255,.88) 49%,transparent 59%,transparent 100%),linear-gradient(180deg,#fefafc 0%,#e7becf 45%,#d095ae 54%,#f2dce5 100%)!important;
 background-size:260% 100%,100% 100%!important;animation:metallic-button-shine 4.6s linear infinite;
}
.table-tools .btn:nth-child(1){color:#1f1117!important;border-color:#268360!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.78) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#d6f8e9 0%,#7ed8b3 44%,#43ad82 54%,#93ddbe 100%)!important;background-size:250% 100%,100% 100%!important}
.table-tools .btn:nth-child(2){color:#1f1117!important;border-color:#903259!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.78) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#f6d8e5 0%,#d482a4 44%,#b24e78 54%,#d998b3 100%)!important;background-size:250% 100%,100% 100%!important}
.table-tools .btn:nth-child(3){color:#1f1117!important;border-color:#9f5b78!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.8) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#f9e4ed 0%,#e0a3bd 44%,#b97592 54%,#e4b5c9 100%)!important;background-size:250% 100%,100% 100%!important}
.page-actions .btn.secondary,.table-level-actions .btn.secondary{color:#1f1117!important;border-color:#955972!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.78) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#f4e1e9 0%,#d5a2b7 44%,#ad718a 54%,#dbafc1 100%)!important;background-size:250% 100%,100% 100%!important}
.row-actions button:not(.danger):not(.saved-user-remove){color:#1f1117!important;border-color:#8c3258!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.76) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#f5dce7 0%,#ce83a2 44%,#a95075 54%,#d598b2 100%)!important;background-size:250% 100%,100% 100%!important}
.danger,.saved-user-remove,.row-actions button.danger{color:#1f1117!important;border-color:#ad3e6d!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.74) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#f8e0ea 0%,#f28db7 44%,#d95a8f 54%,#f4a0c3 100%)!important;background-size:250% 100%,100% 100%!important}
.product-mode button.active,.gstr-tabs button.active,.settings-nav button.active{color:#1f1117!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.72) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#ffa9cd 0%,#ff5ca0 44%,#df2d78 54%,#ff71ad 100%)!important;background-size:250% 100%,100% 100%!important;animation:metallic-button-shine 4.1s linear infinite}
.header-actions>.language{color:#1f1117!important;border:1px solid #aa1352!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.8) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#ffadcf 0%,#ff4f99 45%,#dc2270 54%,#ff70ac 100%)!important;background-size:250% 100%,100% 100%!important;animation:metallic-button-shine 3.5s linear infinite;box-shadow:inset 0 1px 0 #fff,0 5px 13px rgba(164,16,78,.28)!important}
.header-actions>button.icon:last-child{color:#1f1117!important;border:1px solid #a93a69!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.78) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#f8e0ea 0%,#f17eae 45%,#ce4880 54%,#f496bd 100%)!important;background-size:250% 100%,100% 100%!important;animation:metallic-button-shine 3.9s linear infinite;box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 5px 13px rgba(151,44,89,.26)!important}
.header-actions>button.icon:last-child svg,.header-actions>.language svg{color:#1f1117!important;stroke:currentColor!important}
.data-card,.report-chart,.stock-selector,.ledger-select{border-top:3px solid #b2537b}
.data-card:nth-of-type(3n+2),.report-chart:nth-of-type(3n+2){border-top-color:#90355b}.data-card:nth-of-type(3n),.report-chart:nth-of-type(3n){border-top-color:#b77892}
th{border-bottom:2px solid #cdb2bd!important;background:linear-gradient(180deg,#fcf7f9 0%,#edd7e0 47%,#e3c9d4 53%,#f8eef2 100%)!important;color:#371a26!important;font-weight:900!important}
.language-tamil .btn,.language-tamil button,.language-tamil input,.language-tamil select,.language-tamil textarea{letter-spacing:0!important}
.hardware-login .login-card{position:relative!important;isolation:isolate}
.hardware-login .login-card:after{content:""!important;position:absolute!important;inset:-4px!important;border-radius:28px!important;padding:3px!important;pointer-events:none!important;background:linear-gradient(100deg,rgba(202,41,109,.12),#d52971 18%,#eb85b0 34%,#fdf5f8 49%,#e14989 64%,#b52461 80%,rgba(202,41,109,.12))!important;background-size:320% 100%!important;-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0)!important;-webkit-mask-composite:xor!important;mask-composite:exclude!important;filter:drop-shadow(0 0 7px rgba(225,73,137,.72));animation:login-blue-run 3.1s linear infinite!important;z-index:4}
.hardware-login .login-button{color:#1f1117!important;text-shadow:0 1px 0 rgba(255,255,255,.7)!important;background-image:linear-gradient(110deg,transparent 0%,transparent 38%,rgba(255,255,255,.8) 48%,transparent 59%,transparent 100%),linear-gradient(180deg,#f6c5da 0%,#e6639a 44%,#c2306d 54%,#e77ca9 100%)!important;background-size:250% 100%,100% 100%!important;animation:metallic-button-shine 3.7s linear infinite!important}
@media(prefers-reduced-motion:reduce){.btn,.icon,.language,.pager button,.table-tools button,.row-actions button,.gstr-tabs button,.chips button,.product-mode button,.settings-nav button,.saved-user-edit,.saved-user-remove,.ledger-all-dates,.hardware-login .login-button{animation:none!important}.hardware-login .login-card:after{animation:none!important;background-position:50% 0!important}}

/* V13: darker versions of the approved colours with high-contrast glass shine. */
.sidebar-help{display:none!important}
.btn,.icon,.language,.pager button,.table-tools button,.row-actions button,.gstr-tabs button,.chips button,.product-mode button,.settings-nav button,.saved-user-edit,.saved-user-remove,.ledger-all-dates,.user-password-toggle{
 color:#fff!important;font-weight:900!important;text-shadow:0 1px 2px rgba(0,0,0,.72)!important;
 border-top-color:rgba(255,255,255,.72)!important;backdrop-filter:blur(8px) saturate(1.25);-webkit-backdrop-filter:blur(8px) saturate(1.25);
}
.btn svg,.icon svg,.language svg,.pager button svg,.table-tools button svg,.row-actions button svg,.gstr-tabs button svg,.chips button svg,.product-mode button svg,.settings-nav button svg{color:currentColor!important;stroke:currentColor!important}
.btn.primary,.save-sale,.login-button,.settings-submit,.bill-save-row button:last-child,.modal-actions .primary,.access-actions .primary{
 color:#fff!important;border-color:#6d1238!important;
 background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.72) 47%,rgba(255,255,255,.18) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#dc5990 0%,#b12660 38%,#851645 54%,#9f2055 76%,#6d1238 100%)!important;
 background-size:270% 100%,100% 100%!important;box-shadow:inset 0 2px 1px rgba(255,255,255,.7),inset 0 -2px 3px rgba(50,8,26,.58),0 6px 14px rgba(101,16,52,.34)!important;
}
.btn.secondary,.icon,.pager button,.chips button,.product-mode button:not(.active),.settings-nav button:not(.active),.saved-user-edit,.ledger-all-dates{
 color:#fff!important;border-color:#712f4b!important;
 background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.67) 47%,rgba(255,255,255,.16) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#b36586 0%,#88405e 39%,#6c2b46 55%,#7f3956 78%,#582339 100%)!important;
 background-size:270% 100%,100% 100%!important;box-shadow:inset 0 2px 1px rgba(255,255,255,.58),inset 0 -2px 3px rgba(47,11,26,.55),0 6px 14px rgba(90,32,56,.28)!important;
}
.table-tools .btn:nth-child(1){color:#fff!important;border-color:#450d25!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.7) 47%,rgba(255,255,255,.17) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#45aa83 0%,#6e2041 39%,#4b1129 55%,#631a39 78%,#370b1d 100%)!important;background-size:270% 100%,100% 100%!important}
.table-tools .btn:nth-child(2){color:#fff!important;border-color:#5a102f!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.7) 47%,rgba(255,255,255,.17) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#a54e73 0%,#7a2146 39%,#5d1231 55%,#6e1b3e 78%,#470d25 100%)!important;background-size:270% 100%,100% 100%!important}
.table-tools .btn:nth-child(3),.page-actions .btn.secondary,.table-level-actions .btn.secondary{color:#fff!important;border-color:#672b44!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.7) 47%,rgba(255,255,255,.17) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#b6728f 0%,#8e4966 39%,#6f324c 55%,#82415c 78%,#542237 100%)!important;background-size:270% 100%,100% 100%!important}
.row-actions button:not(.danger):not(.saved-user-remove){color:#fff!important;border-color:#601333!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.68) 47%,rgba(255,255,255,.16) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#a84870 0%,#7c2147 39%,#5e1332 55%,#721b40 78%,#470d25 100%)!important;background-size:270% 100%,100% 100%!important}
.danger,.saved-user-remove,.row-actions button.danger{color:#fff!important;border-color:#762044!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.68) 47%,rgba(255,255,255,.15) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#d95e92 0%,#ae3467 39%,#84234c 55%,#9f2d5d 78%,#68193a 100%)!important;background-size:270% 100%,100% 100%!important}
.product-mode button.active,.gstr-tabs button.active,.settings-nav button.active,.header-actions>.language{color:#fff!important;border-color:#740534!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.72) 47%,rgba(255,255,255,.17) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#d92c75 0%,#ad0b4f 39%,#800539 55%,#990845 78%,#66032d 100%)!important;background-size:270% 100%,100% 100%!important;box-shadow:inset 0 2px 1px rgba(255,255,255,.56),inset 0 -2px 3px rgba(57,0,24,.58),0 6px 14px rgba(112,4,49,.31)!important}
.header-actions>button.icon:last-child{color:#fff!important;border-color:#681638!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.72) 47%,rgba(255,255,255,.17) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#cf5387 0%,#a72c60 39%,#7c1c44 55%,#942554 78%,#5b1130 100%)!important;background-size:270% 100%,100% 100%!important;box-shadow:inset 0 2px 1px rgba(255,255,255,.56),inset 0 -2px 3px rgba(52,4,24,.58),0 6px 14px rgba(107,20,57,.32)!important}
.hardware-login .login-button{color:#fff!important;text-shadow:0 1px 2px rgba(68,11,35,.78)!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.75) 47%,rgba(255,255,255,.18) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#d9548c 0%,#a9225b 39%,#831543 55%,#9b1b51 78%,#651034 100%)!important;background-size:270% 100%,100% 100%!important}
.btn:hover:not(:disabled),.icon:hover:not(:disabled),.language:hover:not(:disabled),.pager button:hover:not(:disabled),.table-tools button:hover:not(:disabled),.row-actions button:hover:not(:disabled){filter:brightness(1.14) saturate(1.08)!important;transform:translateY(-1px);box-shadow:inset 0 2px 1px rgba(255,255,255,.72),inset 0 -2px 3px rgba(39,6,20,.48),0 8px 18px rgba(76,26,47,.38)!important}
.dashboard-user-greeting{display:flex;align-items:center;gap:10px;margin:5px 0 4px;color:#7a2348;font-size:17px;font-weight:900;line-height:1.25}
.dashboard-user-greeting span{display:inline-flex;align-items:center;min-height:24px;padding:3px 10px;border:1px solid #730e38;border-radius:999px;color:#fff;background:linear-gradient(180deg,#c52367,#870c40);box-shadow:inset 0 1px 0 rgba(255,255,255,.46),0 3px 8px rgba(96,12,47,.2);font-size:11px;font-weight:900;letter-spacing:.45px;text-transform:uppercase;text-shadow:0 1px 1px rgba(0,0,0,.55)}
@media(max-width:600px){.dashboard-user-greeting{font-size:15px;flex-wrap:wrap;gap:7px}}

/* V14 final correction: deep approved colours with bold BLACK labels. */
@property --login-orbit-angle{syntax:"<angle>";initial-value:0deg;inherits:false}
@keyframes login-blue-orbit{to{--login-orbit-angle:360deg}}
.btn,.icon,.language,.pager button,.table-tools button,.row-actions button,.gstr-tabs button,.chips button,.product-mode button,.settings-nav button,.saved-user-edit,.saved-user-remove,.ledger-all-dates,.user-password-toggle{
 color:#0c0609!important;font-weight:950!important;text-shadow:0 1px 0 rgba(255,255,255,.92),0 0 3px rgba(255,255,255,.58)!important;
 animation:metallic-button-shine 3.8s linear infinite;
}
.btn svg,.icon svg,.language svg,.pager button svg,.table-tools button svg,.row-actions button svg,.gstr-tabs button svg,.chips button svg,.product-mode button svg,.settings-nav button svg,.saved-user-edit svg,.saved-user-remove svg,.ledger-all-dates svg{color:#0c0609!important;stroke:#0c0609!important}
.btn.primary,.save-sale,.login-button,.settings-submit,.bill-save-row button:last-child,.modal-actions .primary,.access-actions .primary{
 color:#0c0609!important;border-color:#681136!important;
 background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.86) 47%,rgba(255,255,255,.24) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#e36fa0 0%,#be3b72 36%,#922050 54%,#ac2960 74%,#73143c 100%)!important;
 background-size:270% 100%,100% 100%!important;
}
.btn.secondary,.icon,.pager button,.chips button,.product-mode button:not(.active),.settings-nav button:not(.active),.saved-user-edit,.ledger-all-dates{
 color:#0c0609!important;border-color:#6b2b46!important;
 background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.86) 47%,rgba(255,255,255,.23) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#c07796 0%,#9c5170 36%,#7a3653 54%,#904363 74%,#5a263c 100%)!important;
 background-size:270% 100%,100% 100%!important;
}
.table-tools .btn:nth-child(1){color:#0c0609!important;border-color:#440e25!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.86) 47%,rgba(255,255,255,.23) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#5fbd9a 0%,#883b5b 36%,#611e3a 54%,#762e4c 74%,#441227 100%)!important;background-size:270% 100%,100% 100%!important}
.table-tools .btn:nth-child(2){color:#0c0609!important;border-color:#54122e!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.86) 47%,rgba(255,255,255,.23) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#b7698a 0%,#914263 36%,#6f2544 54%,#833355 74%,#52162f 100%)!important;background-size:270% 100%,100% 100%!important}
.table-tools .btn:nth-child(3),.page-actions .btn.secondary,.table-level-actions .btn.secondary{color:#0c0609!important;border-color:#642a42!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.88) 47%,rgba(255,255,255,.24) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#c1829c 0%,#9c5a76 36%,#773c55 54%,#8e4d68 74%,#58283c 100%)!important;background-size:270% 100%,100% 100%!important}
.row-actions button:not(.danger):not(.saved-user-remove){color:#0c0609!important;border-color:#581330!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.86) 47%,rgba(255,255,255,.23) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#b86387 0%,#923c60 36%,#6d2040 54%,#842f53 74%,#51132d 100%)!important;background-size:270% 100%,100% 100%!important}
.danger,.saved-user-remove,.row-actions button.danger{color:#0c0609!important;border-color:#701b3f!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.84) 47%,rgba(255,255,255,.22) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#df6a9b 0%,#bb4074 36%,#8e2752 54%,#a93566 74%,#681a3b 100%)!important;background-size:270% 100%,100% 100%!important}
.product-mode button.active,.gstr-tabs button.active,.settings-nav button.active,.header-actions>.language{color:#0c0609!important;border-color:#700431!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.88) 47%,rgba(255,255,255,.24) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#df3d81 0%,#bd165c 36%,#900841 54%,#aa0e50 74%,#69032e 100%)!important;background-size:270% 100%,100% 100%!important}
.header-actions>button.icon:last-child{color:#0c0609!important;border-color:#530b29!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.85) 47%,rgba(255,255,255,.22) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#cf4d84 0%,#a8275d 36%,#74163d 54%,#901f4e 74%,#4b0925 100%)!important;background-size:270% 100%,100% 100%!important;box-shadow:inset 0 2px 1px rgba(255,255,255,.48),inset 0 -3px 4px rgba(36,0,15,.7),0 6px 15px rgba(100,9,47,.42)!important}
.header-actions>button.icon:last-child svg{color:#0c0609!important;stroke:#0c0609!important}
.hardware-login .login-button{color:#0c0609!important;text-shadow:0 1px 0 rgba(255,255,255,.94),0 0 3px rgba(255,255,255,.6)!important;background-image:linear-gradient(108deg,transparent 0%,transparent 35%,rgba(255,255,255,.88) 47%,rgba(255,255,255,.24) 53%,transparent 64%,transparent 100%),linear-gradient(180deg,#da6093 0%,#bb366e 36%,#92194c 54%,#a9255c 74%,#71123a 100%)!important;background-size:270% 100%,100% 100%!important}
.hardware-login .login-card:after{background:conic-gradient(from var(--login-orbit-angle),rgba(200,32,103,.32) 0deg,rgba(200,32,103,.42) 245deg,#dc2b75 278deg,#e03f83 296deg,#fdf7fa 312deg,#e04385 329deg,rgba(200,32,103,.38) 356deg)!important;background-size:100% 100%!important;animation:login-blue-orbit 2.6s linear infinite!important;filter:drop-shadow(0 0 7px rgba(223,56,126,.9)) drop-shadow(0 0 2px #ef9cbf)!important}
@media(prefers-reduced-motion:reduce){.hardware-login .login-card:after{animation:login-blue-orbit 2.6s linear infinite!important}}

/* V15 professional hierarchy: calm normal controls; shine only on key actions. */
@keyframes important-action-shine{0%,68%{background-position:190% 0,0 0}100%{background-position:-85% 0,0 0}}
.btn,.icon,.language,.pager button,.table-tools button,.row-actions button,.gstr-tabs button,.chips button,.product-mode button,.settings-nav button,.saved-user-edit,.saved-user-remove,.ledger-all-dates,.user-password-toggle{
 animation:none!important;color:#321722!important;font-weight:850!important;text-shadow:none!important;backdrop-filter:none;-webkit-backdrop-filter:none;
}
.btn svg,.icon svg,.language svg,.pager button svg,.table-tools button svg,.row-actions button svg,.gstr-tabs button svg,.chips button svg,.product-mode button svg,.settings-nav button svg{color:currentColor!important;stroke:currentColor!important}

/* Important create/save/login actions: confident blue, readable white, subtle shine. */
.btn.primary,.save-sale,.login-button,.settings-submit,.bill-save-row button:last-child,.modal-actions .primary,.access-actions .primary{
 color:#fff!important;border-color:#8f2350!important;text-shadow:0 1px 2px rgba(72,12,37,.58)!important;
 background-image:linear-gradient(108deg,transparent 0%,transparent 39%,rgba(255,255,255,.58) 48%,transparent 58%,transparent 100%),linear-gradient(180deg,#d65b8f 0%,#ba356d 48%,#a02559 52%,#ba3b70 100%)!important;
 background-size:280% 100%,100% 100%!important;animation:important-action-shine 5.2s ease-in-out infinite!important;
 box-shadow:inset 0 1px 0 rgba(255,255,255,.7),inset 0 -1px 0 rgba(98,17,51,.42),0 4px 10px rgba(143,35,80,.23)!important;
}
.btn.primary svg,.save-sale svg,.settings-submit svg,.bill-save-row button:last-child svg,.modal-actions .primary svg,.access-actions .primary svg{color:#fff!important;stroke:#fff!important}

/* Normal/Import/Cancel controls: neutral and static for fast reading. */
.btn.secondary,.pager button,.chips button,.product-mode button:not(.active),.settings-nav button:not(.active),.ledger-all-dates,.modal-actions button:not(.primary),.import-modal button:not(:disabled){
 color:#442130!important;border-color:#c29fae!important;background:#f8eff3!important;
 box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(68,33,48,.12)!important;animation:none!important;text-shadow:none!important;
}
.modal-head .icon,.user-password-toggle{color:#84224b!important;border-color:#c69faf!important;background:#faf3f6!important;box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(98,34,61,.13)!important;animation:none!important}
.modal-head .icon svg,.user-password-toggle svg{color:#84224b!important;stroke:#84224b!important}
.modal button:not(.icon):not(.primary):not(.danger){color:#442130!important;border-color:#c29fae!important;background:#f8eff3!important;box-shadow:inset 0 1px 0 #fff,0 2px 6px rgba(68,33,48,.12)!important;animation:none!important;text-shadow:none!important}
.modal button:not(.icon):not(.primary):not(.danger) svg{color:#84224b!important;stroke:#84224b!important}

/* Export tools: distinct soft professional colours without moving shine. */
.table-tools .btn{animation:none!important;text-shadow:none!important;color:#311a24!important}
.table-tools .btn:nth-child(1){border-color:#6fae96!important;background:linear-gradient(180deg,#e6f7f0 0%,#acdcca 48%,#c18ca2 52%,#e7ccd7 100%)!important;color:#341a25!important}
.table-tools .btn:nth-child(2){border-color:#ae728b!important;background:linear-gradient(180deg,#f6e6ed 0%,#ddb4c5 48%,#c489a2 52%,#eacbd8 100%)!important;color:#391926!important}
.table-tools .btn:nth-child(3){border-color:#b48599!important;background:linear-gradient(180deg,#f9ebf1 0%,#e3c2d0 48%,#c99bae 52%,#ebd3dd 100%)!important;color:#3c242e!important}
.table-tools .btn:nth-child(n+4){border-color:#6ca993!important;background:linear-gradient(180deg,#e8f7f1 0%,#b4ddce 48%,#8fc8b3 52%,#e6cdd8 100%)!important;color:#341a25!important}
.table-tools .btn svg{color:currentColor!important;stroke:currentColor!important}

/* Secondary page actions use a calm lavender; primary actions keep blue. */
.page-actions .btn.secondary,.table-level-actions .btn.secondary{color:#3e2630!important;border-color:#bb9ba8!important;background:linear-gradient(180deg,#f7eff2,#e3cdd6)!important;box-shadow:inset 0 1px 0 #fff,0 3px 8px rgba(87,49,65,.14)!important;animation:none!important;text-shadow:none!important}

/* Row actions: neutral buttons; only the action icons carry colour. */
.row-actions button,.saved-user-edit,.saved-user-remove{
 color:#472835!important;border:1px solid #dac6ce!important;background:#fff!important;box-shadow:0 2px 5px rgba(69,32,48,.11)!important;animation:none!important;text-shadow:none!important;
}
.row-actions button:not(.danger):not(.saved-user-remove) svg,.saved-user-edit svg{color:#95184c!important;stroke:#95184c!important}
.row-actions button.danger svg,.row-actions .saved-user-remove svg,.saved-user-remove svg{color:#c33571!important;stroke:#c33571!important}
.row-actions button:hover:not(:disabled),.saved-user-edit:hover:not(:disabled),.saved-user-remove:hover:not(:disabled){background:#faf6f8!important;border-color:#ba95a5!important;filter:none!important;transform:translateY(-1px)!important}

/* Selected filters are clear but static. */
.product-mode button.active,.gstr-tabs button.active,.settings-nav button.active,.header-actions>.language{color:#300618!important;border-color:#c02d6b!important;background:linear-gradient(180deg,#ffa4ca,#ea488c)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.8),0 3px 8px rgba(144,13,68,.18)!important;animation:none!important;text-shadow:none!important}
.header-actions>.language svg{color:#300618!important;stroke:#300618!important}

/* Logout remains clearly separated. */
.header-actions>button.icon:last-child{color:#fff!important;border-color:#8e2b55!important;background:linear-gradient(180deg,#d75b8f,#a92f62)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 3px 9px rgba(126,31,71,.25)!important;animation:none!important;text-shadow:none!important}
.header-actions>button.icon:last-child svg{color:#fff!important;stroke:#fff!important}

/* Tables stay visually complete even before records exist. */
.table-wrap{position:relative;background:#fefbfc;border:1px solid #ddc8d1;border-radius:10px;overflow:auto}
.table-wrap table{margin:0!important}
.table-wrap th{background:linear-gradient(180deg,#f7ebf0,#eedae2)!important;color:#3f1c2b!important;border-bottom:2px solid #c6a3b2!important}
.table-wrap:has(tbody:empty)::after{content:"No records available";display:grid;place-items:center;min-height:112px;color:#83606f;font-size:13px;font-weight:800;background:linear-gradient(180deg,#fefbfc,#f9f1f4);border-top:1px solid #e7d9df}
.language-tamil .table-wrap:has(tbody:empty)::after{content:"பதிவுகள் எதுவும் இல்லை"}
.empty-state{margin:12px!important;padding:22px!important;border:1px dashed #c5a2b1!important;border-radius:10px!important;background:#faf2f5!important;color:#7e5767!important;font-weight:750!important}

button:disabled,.btn:disabled{opacity:1!important;filter:none!important;cursor:not-allowed!important;animation:none!important}

/* V16: disabled table tools keep the exact same visual weight as enabled tools. */
.table-tools .btn:disabled,.table-tools button:disabled{
 opacity:1!important;filter:none!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.82),0 2px 6px rgba(68,33,48,.12)!important;
}

/* V16: Edit/Remove actions are clean icon-only controls, without coloured button blocks. */
.row-actions button.icon-only-row-action,.saved-user-edit.icon-only-row-action,.saved-user-remove.icon-only-row-action{
 width:34px!important;min-width:34px!important;height:34px!important;min-height:34px!important;padding:0!important;
 display:inline-grid!important;place-items:center!important;border:0!important;border-radius:7px!important;
 color:transparent!important;background:transparent!important;background-image:none!important;
 box-shadow:none!important;text-shadow:none!important;font-size:0!important;line-height:0!important;animation:none!important;
}
.row-actions button.icon-only-row-action svg,.saved-user-edit.icon-only-row-action svg,.saved-user-remove.icon-only-row-action svg{
 width:18px!important;height:18px!important;pointer-events:none!important;
}
.row-actions button.icon-only-row-action.edit-action svg,.saved-user-edit.icon-only-row-action svg{
 color:#95184c!important;stroke:#95184c!important;
}
.row-actions button.icon-only-row-action.remove-action svg,.saved-user-remove.icon-only-row-action svg{
 color:#c33571!important;stroke:#c33571!important;
}
.row-actions button.icon-only-row-action:hover:not(:disabled),.saved-user-edit.icon-only-row-action:hover:not(:disabled),.saved-user-remove.icon-only-row-action:hover:not(:disabled){
 background:#f9eef3!important;background-image:none!important;border:0!important;box-shadow:none!important;filter:none!important;transform:none!important;
}
.ledger-totals article.advance{position:relative}
.account-status-badge{display:inline-flex;align-items:center;width:max-content;margin-top:.4rem;padding:.22rem .55rem;border:1px solid #9b184f;border-radius:999px;background:#ffb8d6;color:#4d0020;font-size:.68rem;font-weight:950;letter-spacing:.08em;box-shadow:0 2px 7px rgba(92,5,42,.14)}
@media(prefers-reduced-motion:reduce){.btn.primary,.save-sale,.login-button,.settings-submit,.bill-save-row button:last-child,.modal-actions .primary,.access-actions .primary{animation:none!important}}

/* V26 sale-entry, invoice-edit and user-list refinements. */
.sale-meta-grid{display:grid;grid-template-columns:1.15fr .85fr;gap:10px;padding:14px 16px;border-bottom:1px solid #e2cdd6;background:#fbf5f8}
.sale-meta-grid label{display:flex;flex-direction:column;gap:5px;color:#59283d;font-size:11px;font-weight:900}
.sale-meta-grid input{width:100%;min-height:39px;border:1px solid #ceadbb;border-radius:8px;background:#fff;color:#3a1424;padding:7px 9px;font-weight:750}
.customer-select{display:block!important}.customer-select>label{display:block;width:100%;color:#532538;font-size:12px;font-weight:900}
.customer-combobox{position:relative;margin-top:6px}.customer-combobox>input{width:100%;min-height:42px;border:1px solid #ceadbb;border-radius:9px;background:#fff;color:#3c1525;padding:8px 10px;font-size:14px;font-weight:850}
.customer-options{position:absolute;z-index:80;top:calc(100% + 4px);left:0;right:0;max-height:260px;overflow:auto;padding:5px;border:1px solid #c6a3b2;border-radius:10px;background:#fff;box-shadow:0 12px 28px rgba(78,25,47,.22)}
.customer-options button{display:flex!important;width:100%;flex-direction:column;align-items:flex-start!important;gap:3px;padding:10px 11px!important;border:0!important;border-bottom:1px solid #efe4e9!important;border-radius:7px!important;background:#fff!important;color:#401728!important;text-align:left}
.customer-options button:hover{background:#faeef3!important}.customer-options button span{color:#3e1426!important;font-size:14px!important;font-weight:950!important}.customer-options button small{color:#7c5767;font-size:11px;font-weight:750}.customer-options-empty{padding:15px;color:#856472;font-size:12px;font-weight:800}
.party-balance-strip{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:9px}.party-balance-strip>span{display:flex;justify-content:space-between;gap:8px;padding:7px 9px;border:1px solid #e2ccd5;border-radius:8px;background:#fbf7f9}.party-balance-strip small{font-size:10px;color:#866573}.party-balance-strip b{font-size:11px;color:#5a1e37}
.sale-adjustments{padding:12px 16px;border-top:1px solid #e2cdd6;background:#fdf8fa}.sale-adjustment-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(88px,.75fr) minmax(95px,.85fr) auto;gap:7px;align-items:center;margin:7px 0}.sale-adjustment-row>label:first-child{color:#5b2e41;font-size:11px;font-weight:900}.sale-adjustment-row input,.sale-adjustment-row select{width:100%;min-height:36px;border:1px solid #ceb2be;border-radius:8px;background:#fff;color:#42192a;padding:6px 8px;font-weight:750}.sale-adjustment-row .delivery-tax-check{display:flex;align-items:center;gap:6px;white-space:nowrap;color:#5b2e41;font-size:10px;font-weight:850}.sale-adjustment-row .delivery-tax-check input{width:17px;height:17px;min-height:0;accent-color:#982455}.delivery-tax-rate{display:flex;align-items:center;gap:4px;font-size:10px;font-weight:900}.delivery-tax-rate input{width:70px}.bill-summary .discount-line b{color:#a13a65}.bill-summary .delivery-line b,.bill-summary .delivery-tax-line b{color:#641637}.sale-edit-loading{margin:8px 0;padding:10px;border:1px solid #ce93ac;border-radius:9px;background:#faebf1;color:#702042;font-size:12px;font-weight:850}
.sale-discount-row{display:grid;grid-template-columns:minmax(110px,1fr) minmax(165px,1.2fr) minmax(165px,1.2fr);gap:8px;align-items:center;margin:7px 0}.sale-adjustment-title{color:#5b2e41;font-size:11px;font-weight:900}.discount-choice{display:grid;grid-template-columns:18px auto minmax(68px,1fr);gap:6px;align-items:center;min-height:42px;padding:5px 7px;border:1px solid #d4bbc5;border-radius:9px;background:#f6eff2;color:#5b2e41;font-size:10px;font-weight:900;cursor:pointer}.discount-choice.selected{border-color:#982455;background:#fae8f0;box-shadow:0 0 0 2px rgba(152,36,85,.12)}.discount-choice>input[type="checkbox"]{width:17px;height:17px;min-height:0;margin:0;accent-color:#982455}.discount-choice .discount-value-input{width:100%;min-width:0;min-height:34px;border:1px solid #c3a3b0;border-radius:7px;background:#fff;color:#42192a;padding:5px 7px;font-weight:850}.discount-choice .discount-value-input:disabled{background:#ebe0e5;color:#876e78;opacity:.72;cursor:not-allowed}
.transaction-table .sale-actions-head,.transaction-table .sale-actions{width:58px;text-align:center}.sale-edit-icon{display:inline-grid;width:32px;height:32px;place-items:center;border:0!important;border-radius:7px;background:transparent!important;color:#95184c!important;box-shadow:none!important}.sale-edit-icon svg{width:19px;height:19px;color:#95184c!important;stroke:#95184c!important}.sale-edit-icon:hover{background:#f8eaf0!important}
.saved-user-edit{display:flex!important;width:100%!important;min-width:0!important;height:auto!important;min-height:52px!important;justify-content:space-between!important;gap:10px!important;padding:10px 12px!important;border:1px solid #decdd4!important;border-radius:9px!important;background:#fcf7f9!important;color:#3f1b2a!important;font-size:inherit!important;line-height:normal!important;text-align:left!important;box-shadow:none!important}
.saved-user-edit>span{display:flex!important;min-width:0;flex-direction:column;gap:4px}.saved-user-edit b{display:block;color:#3b1424;font-size:13px;font-weight:950}.saved-user-edit small{display:block;color:#7f5f6c;font-size:11px;font-weight:750}.saved-user-edit svg{flex:0 0 18px;width:18px!important;height:18px!important;color:#95184c!important;stroke:#95184c!important}
.user-password-field{position:relative}.user-password-field input{padding-right:48px}.password-edit-note{display:block;margin-top:5px;color:#856472;font-size:9px;font-weight:700}.user-password-toggle{top:25px!important}
.payment-analysis:has(.payment-chart-empty) .payment-total b{font-size:0}.payment-analysis:has(.payment-chart-empty) .payment-total b:after{content:"Loading…";font-size:12px;color:#856472}
.report-values-loading b{font-size:0!important}.report-values-loading b:after{content:"Loading…";font-size:12px;color:#856472}.report-values-loading small{visibility:hidden}
@media(max-width:1150px){.sale-layout{grid-template-columns:minmax(0,1fr) 390px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.sale-layout{grid-template-columns:1fr}.bill-panel{position:static}.product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.sale-meta-grid{grid-template-columns:1fr}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sale-adjustment-row{grid-template-columns:1fr 1fr}.sale-adjustment-row>label:first-child{grid-column:1/-1}.sale-discount-row{grid-template-columns:1fr}.sale-discount-row .sale-adjustment-title{grid-column:1/-1}}
@media(max-width:430px){.product-grid{grid-template-columns:1fr}.party-balance-strip{grid-template-columns:1fr}}

/* V29 requested corrections: balances, compact discounts, plain edit icons and expense entry. */
.sale-meta-grid-single{grid-template-columns:1fr!important}
.party-balance-strip .customer-due-balance small,.party-balance-strip .customer-due-balance b{color:#c6286a!important;font-weight:950!important}
.party-balance-strip .customer-advance-balance small,.party-balance-strip .customer-advance-balance b{color:#14823b!important;font-weight:950!important}
.sale-discount-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;align-items:stretch!important;overflow:visible!important}
.sale-discount-row .sale-adjustment-title{grid-column:1/-1!important}
.discount-choice{grid-template-columns:18px minmax(0,1fr)!important;grid-template-rows:auto auto!important;align-content:center!important;min-width:0!important}
.discount-choice>span{min-width:0!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.2!important}
.discount-choice .discount-value-input{grid-column:2!important;min-width:0!important}
.row-actions .icon-only-row-action,.quote-actions .icon-only-row-action,.sale-edit-icon.icon-only-row-action{width:32px!important;min-width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border:0!important;border-radius:5px!important;background:transparent!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important;font-size:0!important;line-height:0!important;animation:none!important}
.row-actions .icon-only-row-action:hover,.quote-actions .icon-only-row-action:hover,.sale-edit-icon.icon-only-row-action:hover{border:0!important;background:#faeef3!important;background-image:none!important;box-shadow:none!important;filter:none!important;transform:none!important}
.row-actions .edit-action svg,.quote-actions .edit-action svg,.sale-edit-icon.edit-action svg{width:19px!important;height:19px!important;color:#95184c!important;stroke:#95184c!important}
.expense-reference-auto{background:#f8eef2!important;color:#59283d!important;font-weight:850!important;cursor:default}
.expense-category-select,.expense-category-manual{width:100%;min-height:42px;border:1px solid #ceadbb;border-radius:8px;background:#fff;color:#42192a;padding:7px 9px;font-weight:800}
.expense-category-manual{margin-top:7px}
.expense-category-manual[hidden]{display:none!important}
@media(max-width:430px){.sale-discount-row{grid-template-columns:1fr!important}.sale-discount-row .sale-adjustment-title{grid-column:1!important}}

/* V30: every edit action is a bare pen icon without a button block. */
html body .row-actions button.icon-only-row-action,html body .quote-actions button.icon-only-row-action,html body .sale-edit-icon.icon-only-row-action,html body .saved-user-edit.icon-only-row-action,html body .saved-user-remove.icon-only-row-action{width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;filter:none!important;transform:none!important;color:transparent!important;font-size:0!important;line-height:0!important;animation:none!important}
html body .row-actions button.icon-only-row-action:hover,html body .quote-actions button.icon-only-row-action:hover,html body .sale-edit-icon.icon-only-row-action:hover,html body .saved-user-edit.icon-only-row-action:hover,html body .saved-user-remove.icon-only-row-action:hover{border:0!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;filter:none!important;transform:none!important}
html body .icon-only-row-action.edit-action svg{width:20px!important;height:20px!important;color:#95184c!important;stroke:#95184c!important;opacity:1!important}
html body .icon-only-row-action.remove-action svg{width:20px!important;height:20px!important;color:#c33571!important;stroke:#c33571!important;opacity:1!important}

/* V31 fallback: management edit buttons are visually only the pen even before the DOM enhancer runs. */
html body .row-actions button:not(.danger):not(.saved-user-remove){width:24px!important;min-width:24px!important;height:24px!important;min-height:24px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;text-shadow:none!important;font-size:0!important;line-height:0!important;animation:none!important;filter:none!important;transform:none!important}
html body .row-actions button:not(.danger):not(.saved-user-remove):hover{border:0!important;background:transparent!important;background-color:transparent!important;background-image:none!important;box-shadow:none!important;filter:none!important;transform:none!important}
html body .row-actions button:not(.danger):not(.saved-user-remove) svg{display:block!important;width:20px!important;height:20px!important;color:#95184c!important;stroke:#95184c!important;opacity:1!important}

/* V32: make user create/edit modes unmistakable and keep account rows readable. */
.user-fields[data-user-mode="edit"]{outline:2px solid rgba(152,36,85,.2);outline-offset:7px;border-radius:8px}
.create-new-staff-mode{border-color:#982455!important;background:#f9ecf1!important;color:#431528!important;font-weight:900!important}
.user-saved-list .saved-user-row{display:grid!important;grid-template-columns:minmax(0,1fr) 24px!important;align-items:center!important;gap:8px!important;padding:9px 10px!important;border:1px solid #e5d5dc!important;border-radius:9px!important;background:#fff!important}
.user-saved-list .saved-user-edit{display:flex!important;width:100%!important;min-width:0!important;height:auto!important;justify-content:space-between!important;padding:0!important;border:0!important;background:transparent!important;color:#3f1b2a!important;text-align:left!important}
.user-saved-list .saved-user-edit>span{display:flex!important;min-width:0!important;flex-direction:column!important;gap:3px!important}.user-saved-list .saved-user-edit b{color:#3b1424!important;font-size:13px!important;font-weight:950!important}.user-saved-list .saved-user-edit small{color:#7f5f6c!important;font-size:11px!important;font-weight:750!important}

/* V33: staff can view/use permitted pages but cannot edit or delete records. */
body.staff-restricted-actions .edit-action,body.staff-restricted-actions .remove-action,body.staff-restricted-actions .saved-user-edit,body.staff-restricted-actions .saved-user-remove,body.staff-restricted-actions .sale-edit-icon{display:none!important}

/* V34: readable role/user rows with separate pen/trash actions. */
html body .user-saved-list .saved-user-edit.icon-only-row-action{display:flex!important;width:100%!important;min-width:0!important;height:auto!important;min-height:44px!important;padding:7px 4px!important;border:0!important;background:transparent!important;color:#3f1b2a!important;font-size:inherit!important;line-height:1.3!important;text-align:left!important;justify-content:space-between!important;align-items:center!important}
html body .user-saved-list .saved-user-edit.icon-only-row-action>span{display:flex!important;min-width:0!important;flex-direction:column!important;gap:4px!important;color:#3f1b2a!important;font-size:13px!important;line-height:1.25!important}
html body .user-saved-list .saved-user-edit.icon-only-row-action b,html body .user-saved-list .saved-user-edit.icon-only-row-action small{position:static!important;display:block!important;white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.25!important}
html body .user-saved-list .saved-user-edit.icon-only-row-action svg{display:block!important;flex:0 0 20px!important;width:20px!important;height:20px!important;color:#95184c!important;stroke:#95184c!important}
.saved-access-list:not(.user-saved-list)>button{position:relative!important;display:flex!important;width:100%!important;min-width:0!important;min-height:58px!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;padding:10px 45px 10px 12px!important;text-align:left!important}
.saved-access-list:not(.user-saved-list)>button>span:first-child{display:flex!important;min-width:0!important;flex-direction:column!important;gap:4px!important}.saved-access-list:not(.user-saved-list)>button b{display:block!important;color:#3b1424!important;font-size:13px!important;font-weight:950!important;line-height:1.25!important}.saved-access-list:not(.user-saved-list)>button small{display:block!important;color:#7f5f6c!important;font-size:11px!important;font-weight:750!important;line-height:1.25!important;white-space:normal!important}
.saved-role-remove{position:absolute!important;right:10px!important;top:50%!important;transform:translateY(-50%)!important;display:grid!important;width:26px!important;height:26px!important;place-items:center!important;border:0!important;border-radius:5px!important;background:transparent!important;color:#c33571!important}.saved-role-remove:hover{background:#fcf3f7!important}.saved-role-remove svg{width:19px!important;height:19px!important;stroke:#c33571!important}
