/* =====================================================================
   Ali Spray Agro Center theme (2026-11-19) - colours/fonts only
   Agro look: deep field green, fresh leaf green, light mint page, sun-yellow accent.
   Loaded LAST from includes/head.php. Undo = remove that one <link> line.
   ===================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    --as-deep: #0f3b2c;      /* deep field green */
    --as-deep-2: #17503b;
    --as-leaf: #1f8a4c;      /* leaf green */
    --as-leaf-2: #2fae63;
    --as-leaf-soft: #dcf3e3;
    --as-mist: #f2f8f3;     /* page */
    --as-mist-2: #e3efe6;
    --as-line: #cfe3d5;
    --as-sage: #5d7a6a;
    --as-sun: #f5a623;      /* accent */
    --as-sun-soft: #fff3d9;
}

/* ---- fonts ---- */
html body { font-family: 'Inter', system-ui, sans-serif !important; color: var(--as-deep); }
html body h1, html body h2, html body .block-header h2, html body .card .header h2,
html body .navbar-brand, html body .navbar-brand span { font-family: 'Poppins', 'Inter', sans-serif !important; letter-spacing: .2px; }

/* ---- page ---- */
html body, html body #wrapper, html body #main-content { background: var(--as-mist) !important; background-image: none !important; }

/* ---- top bar: mint with green text ---- */
html body nav.navbar, html body nav.navbar.navbar-fixed-top {
    background: #f7fcf8 !important; background-image: none !important;
    border-bottom: 1px solid var(--as-line) !important; box-shadow: 0 2px 10px rgba(15,59,44,.06) !important;
}
html body nav.navbar .navbar-brand, html body nav.navbar .navbar-brand span,
html body nav.navbar a, html body nav.navbar .icon-menu i, html body nav.navbar .btn-toggle-offcanvas,
html body nav.navbar i, html body nav.navbar svg { color: var(--as-deep) !important; }
html body nav.navbar .btn, html body nav.navbar a.btn-outline-dark {
    background: #fff !important; color: var(--as-deep) !important; border-color: var(--as-line) !important; box-shadow: none !important;
}
html body nav.navbar .btn:hover, html body nav.navbar a.btn-outline-dark:hover {
    background: var(--as-leaf) !important; border-color: var(--as-leaf) !important; color: #fff !important;
}
html body nav.navbar .btn-info, html body nav.navbar .btn-primary { background: var(--as-leaf) !important; border-color: var(--as-leaf) !important; color: #fff !important; }

/* ---- side menu: dark green with leaf ---- */
html body #left-sidebar, html body #left-sidebar.sidebar, html body #left-sidebar .sidebar-scroll {
    background: var(--as-deep) !important; background-image: none !important; border-right-color: var(--as-deep) !important;
}
html body #left-sidebar .user-account, html body #left-sidebar .user-account span, html body #left-sidebar .user-account small { color: #a9c8b4 !important; }
html body #left-sidebar .user-account .user-name, html body #left-sidebar .user-account strong { color: #fff !important; }
html body #left-sidebar .nav-tabs .nav-link { color: #a9c8b4 !important; background: transparent !important; }
html body #left-sidebar .nav-tabs .nav-link.active { color: #fff !important; box-shadow: inset 0 -2px 0 var(--as-leaf-2) !important; }
html body #left-sidebar .main-menu a { color: #d5e8db !important; background: transparent !important; }
html body #left-sidebar .main-menu a i { color: var(--as-leaf-2) !important; }
html body #left-sidebar .main-menu a:hover { background: rgba(255,255,255,.06) !important; color: #fff !important; }
html body #left-sidebar .main-menu li.active > a { background: rgba(47,174,99,.22) !important; color: #fff !important; box-shadow: inset 4px 0 0 var(--as-leaf-2) !important; }
html body #left-sidebar .main-menu ul { background: rgba(0,0,0,.18) !important; }
html body #left-sidebar .main-menu ul a { color: #bcd7c4 !important; }

/* ---- headings / breadcrumb ---- */
html body .block-header h2, html body .card .header h2, html body .card .header h5, html body h5 { color: var(--as-deep) !important; }
html body .breadcrumb, html body .breadcrumb a { color: var(--as-sage) !important; background: transparent !important; }

/* ---- cards ---- */
html body #main-content .card, html body .card.card-box {
    background: #fff !important; border-color: var(--as-line) !important; border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(15,59,44,.05) !important;
}
html body .card-box .label-top { color: var(--as-sage) !important; letter-spacing: .4px; }
html body .card-box .value-bottom { color: var(--as-deep) !important; }
html body .card-box .left-icon-area i { color: var(--as-leaf) !important; }
html body .card-box .left-icon-area { background: var(--as-leaf-soft) !important; border-radius: 12px !important; }

/* ---- buttons (green = success, red = danger keep their meaning) ---- */
html body .btn-primary, html body .btn-info, html body .btn-dark {
    background: var(--as-leaf) !important; border-color: var(--as-leaf) !important; color: #fff !important;
}
html body .btn-primary:hover, html body .btn-info:hover, html body .btn-dark:hover { background: var(--as-deep) !important; border-color: var(--as-deep) !important; }
html body .btn-outline-primary { color: var(--as-leaf) !important; border-color: var(--as-leaf) !important; }
html body .btn-outline-primary:hover { background: var(--as-leaf) !important; color: #fff !important; }

/* ---- tables ---- */
html body #main-content .table thead th, html body #main-content .thead-dark th, html body table.dataTable thead th {
    background: var(--as-deep) !important; color: #fff !important; border-color: var(--as-deep) !important;
}
html body #main-content .table-hover tbody tr:hover, html body #main-content .table-striped tbody tr:nth-of-type(odd):hover { background: var(--as-leaf-soft) !important; }

/* ---- forms ---- */
html body .form-control:focus { border-color: var(--as-leaf-2) !important; box-shadow: 0 0 0 .15rem rgba(31,138,76,.18) !important; }

/* ---- links / pagination / badges ---- */
html body #main-content a:not(.btn) { color: var(--as-leaf); }
html body .page-item.active .page-link { background: var(--as-leaf) !important; border-color: var(--as-leaf) !important; color: #fff !important; }
html body .page-link { color: var(--as-deep) !important; }
html body .badge-primary, html body .badge-info { background: var(--as-leaf) !important; }

/* ---- POS ---- */
html body .pos-main-header { background: var(--as-deep) !important; }
html body .btn-green, html body .bg-green { background-color: var(--as-leaf) !important; border-color: var(--as-leaf) !important; color: #fff !important; }
html body #submit_form1 { background-color: var(--as-sun) !important; border-color: var(--as-sun) !important; }

/* ---- fixes after first preview ---- */
html, html body.theme-black, html body #main-content > .container-fluid, html body #main-content .container-fluid.dashboard { background: var(--as-mist) !important; background-image: none !important; }
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn.btn-outline-dark,
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn { background: #fff !important; color: var(--as-deep) !important; border-color: var(--as-line) !important; }
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn.btn-outline-dark:hover,
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn:hover { background: var(--as-leaf) !important; color: #fff !important; border-color: var(--as-leaf) !important; }
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn i { color: inherit !important; }
html body nav.navbar img[src=""], html body nav.navbar img:not([src]) { display: none !important; }
html body nav.navbar.navbar-fixed-top .navbar-brand, html body nav.navbar.navbar-fixed-top .navbar-brand *, html body nav.navbar.navbar-fixed-top .navbar-btn .btn-toggle-offcanvas, html body nav.navbar.navbar-fixed-top .navbar-btn .btn-toggle-offcanvas i { color: var(--as-deep) !important; }

/* ---- top bar fits one row on smaller screens (2026-11-19) ---- */
@media (max-width: 1599px) {
    html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn { padding: 5px 9px !important; font-size: 12.5px !important; margin-right: 3px !important; }
    html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn i { margin-right: 4px !important; }
}
@media (max-width: 1365px) {
    /* still in the side menu / reports */
    html body nav.navbar.navbar-fixed-top .navbar-nav > li:has(> a[href="rbj_delete_log.php"]),
    html body nav.navbar.navbar-fixed-top .navbar-nav > li:has(> a[href="get_customer_item.php"]) { display: none !important; }
}
@media (max-width: 1199px) {
    html body nav.navbar.navbar-fixed-top .navbar-nav > li:has(> a[href="new_stock_report.php"]),
    html body nav.navbar.navbar-fixed-top .navbar-nav > li:has(> a[href="general_ledger_report.php"]) { display: none !important; }
}
@media (max-width: 1099px) {
    html body nav.navbar.navbar-fixed-top .navbar-nav > li:has(> a[href="add_payment.php"]),
    html body nav.navbar.navbar-fixed-top .navbar-nav > li:has(> a[href="user_day_close.php"]) { display: none !important; }
}

/* ---- NEW light side menu (built by assets/js/cw-side.js) ---- */
html body #left-sidebar.as-new-side { background: #f7fcf8 !important; border-right: 1px solid var(--as-line) !important; box-shadow: 4px 0 18px rgba(15,59,44,.04) !important; }
html body #left-sidebar.as-new-side > .sidebar-scroll { display: none !important; }
html body #left-sidebar .as-side { display: flex; flex-direction: column; height: calc(100vh - 66px); padding: 14px 12px 10px; font-family: 'Inter', system-ui, sans-serif; }
html body #left-sidebar .as-prof { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 16px; background: #fff; border: 1px solid #dcebe0; box-shadow: 0 2px 8px rgba(15,59,44,.04); }
html body #left-sidebar .as-prof img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; }
html body #left-sidebar .as-prof-t { flex: 1 1 auto; min-width: 0; line-height: 1.2; }
html body #left-sidebar .as-prof-t b { display: block; font-size: 14px; color: var(--as-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html body #left-sidebar .as-prof-t span { font-size: 11.5px; color: var(--as-sage); }
html body #left-sidebar .as-prof-out { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--as-sage) !important; background: #f2f8f3; }
html body #left-sidebar .as-prof-out:hover { background: var(--as-sun-soft); color: #e8930c !important; }
html body #left-sidebar .as-nav { flex: 1 1 auto; overflow-y: auto; margin-top: 10px; padding-right: 2px; scrollbar-width: thin; scrollbar-color: #cfe3d5 transparent; }
html body #left-sidebar .as-sec { font-size: 10.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: #8fb09c; margin: 16px 10px 6px; }
html body #left-sidebar .as-item { display: flex; align-items: center; gap: 11px; width: 100%; padding: 8px 10px; margin: 2px 0; border: 0; border-radius: 12px; background: transparent;
    color: #1d4d39 !important; font-size: 14px; font-weight: 600; text-align: left; text-decoration: none !important; cursor: pointer; transition: background .15s, color .15s; }
html body #left-sidebar .as-item i { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 10px; display: grid; place-items: center; font-size: 14px; background: #e2f2e7; color: var(--as-leaf) !important; }
html body #left-sidebar .as-item span { flex: 1 1 auto; }
html body #left-sidebar .as-item em { font-style: normal; color: #8fb09c; transition: transform .2s; }
html body #left-sidebar .as-item:hover { background: #e6f4ea; }
html body #left-sidebar .as-item.on, html body #left-sidebar .as-grp.on > .as-head { background: linear-gradient(90deg, #1f8a4c, #2fae63); color: #fff !important; box-shadow: 0 6px 14px rgba(31,138,76,.25); }
html body #left-sidebar .as-item.on i, html body #left-sidebar .as-grp.on > .as-head i { background: rgba(255,255,255,.2); color: #fff !important; }
html body #left-sidebar .as-grp.on > .as-head em { color: #fff; }
html body #left-sidebar .as-grp.open > .as-head em { transform: rotate(180deg); }
html body #left-sidebar .as-sub { display: none; margin: 2px 0 6px 25px; padding-left: 14px; border-left: 2px solid #dcebe0; }
html body #left-sidebar .as-grp.open > .as-sub { display: block; }
html body #left-sidebar .as-sub a { display: block; padding: 6px 10px; border-radius: 9px; font-size: 13px; color: #4b6b5a !important; text-decoration: none !important; }
html body #left-sidebar .as-sub a:hover { background: #e6f4ea; color: var(--as-deep) !important; }
html body #left-sidebar .as-sub a.on { color: var(--as-leaf) !important; font-weight: 700; background: #e2f2e7; }
html body #left-sidebar .as-side-foot { margin-top: 8px; padding: 10px; text-align: center; font-size: 12px; color: #8fb09c; border-top: 1px dashed #dcebe0; font-family: 'Poppins', 'Inter', sans-serif; }
/* user: side menu rounded + separate from the top bar; top bar and side menu the same colour */
html body nav.navbar, html body nav.navbar.navbar-fixed-top { background: #f7fcf8 !important; }
@media (min-width: 1200px) {
    html body #left-sidebar.as-new-side { top: 86px !important; margin-top: 0 !important; left: 12px !important; bottom: auto !important;
        height: calc(100vh - 98px) !important; border-radius: 22px !important; border: 1px solid var(--as-line) !important;
        box-shadow: 0 10px 30px rgba(15,59,44,.08) !important; overflow: hidden !important; }
    html body #left-sidebar.as-new-side .as-side { height: 100%; }
    html body:has(#left-sidebar.as-new-side) #main-content { width: calc(100% - 274px) !important; }
}

/* =====================================================================
   ONE LOOK FOR THE WHOLE SOFTWARE (2026-11-19) - "clay" style like RBJ theme 23
   (Clay Lilac) but in Ali Spray colours: every button, link, heading row,
   field, badge and page number is rounded with a soft clay shadow.
   ===================================================================== */
:root {
    --as-clay: 4px 4px 10px rgba(15,59,44,.16), inset -2px -2px 5px rgba(0,0,0,.08), inset 2px 2px 5px rgba(255,255,255,.55);
    --as-clay-hover: 6px 6px 14px rgba(15,59,44,.22), inset -2px -2px 5px rgba(0,0,0,.08), inset 2px 2px 5px rgba(255,255,255,.55);
    --as-grad-leaf: linear-gradient(135deg, #3dbb6f, #1f8a4c);
    --as-grad-deep: linear-gradient(135deg, #1d4d39, #0f3b2c);
}

/* ---- every button: same rounded clay shape ---- */
html body .btn:not(.dropdown-toggle.btn-light):not(.close) {
    border-radius: 14px !important; border: 0 !important; box-shadow: var(--as-clay) !important;
    font-weight: 600 !important; letter-spacing: .2px; transition: transform .12s, box-shadow .12s, filter .12s !important;
}
html body .btn:not(.dropdown-toggle.btn-light):not(.close):hover { transform: translateY(-1px); box-shadow: var(--as-clay-hover) !important; filter: brightness(1.04); }
html body .btn:not(.dropdown-toggle.btn-light):not(.close):active { transform: translateY(1px); box-shadow: inset 3px 3px 7px rgba(0,0,0,.18) !important; }

/* main buttons = leaf clay */
html body .btn.btn-primary, html body .btn.btn-info, html body .btn.btn-secondary, html body .btn.btn-dark,
html body .btn.btn-default, html body .btn.btn-green, html body .btn.bg-green, html body #main-content .btn.btn-light:not(.dropdown-toggle) {
    background: var(--as-grad-leaf) !important; color: #fff !important;
}
/* meaning colours stay, only clay + gradient */
html body .btn.btn-success { background: linear-gradient(135deg, #3fb37f, #23855a) !important; color: #fff !important; }
html body .btn.btn-danger  { background: linear-gradient(135deg, #f29d1a, #c97a08) !important; color: #fff !important; }
html body .btn.btn-warning { background: linear-gradient(135deg, #ffc24a, #e08e1e) !important; color: #fff !important; }
/* outline buttons = mint clay with leaf text */
html body .btn[class*="btn-outline-"] { background: #f7fcf8 !important; color: #14663a !important; }
html body .btn[class*="btn-outline-"]:hover { background: var(--as-grad-leaf) !important; color: #fff !important; }
html body .btn[class*="btn-outline-"] i { color: inherit !important; }
/* top-bar buttons = mint clay (like theme 23 top bar) */
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn,
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn.btn-outline-dark {
    background: #f7fcf8 !important; color: var(--as-deep) !important; border: 0 !important; border-radius: 14px !important; box-shadow: var(--as-clay) !important;
}
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn:hover { background: var(--as-grad-leaf) !important; color: #fff !important; }
html body nav.navbar.navbar-fixed-top .navbar-nav > li > a.btn-info { background: var(--as-grad-leaf) !important; color: #fff !important; }
/* small icon buttons in tables (edit / delete / print) */
html body #main-content table .btn, html body .modal table .btn { border-radius: 10px !important; }

/* ---- drop-down pickers look like fields, not buttons ---- */
html body .bootstrap-select > .dropdown-toggle, html body .bootstrap-select > .dropdown-toggle.btn-light {
    background: #fff !important; color: var(--as-deep) !important; border: 1px solid var(--as-line) !important; border-radius: 12px !important; box-shadow: inset 1px 1px 3px rgba(15,59,44,.06) !important;
}
html body .bootstrap-select > .dropdown-toggle .filter-option, html body .bootstrap-select > .dropdown-toggle .filter-option * { color: var(--as-deep) !important; }

/* ---- fields ---- */
html body .form-control, html body .custom-select, html body .input-group-text, html body .select2-container .select2-selection,
html body .dataTables_wrapper .dataTables_filter input, html body .dataTables_wrapper .dataTables_length select {
    border-radius: 12px !important; border-color: var(--as-line) !important;
}
html body .input-group > .form-control:not(:first-child), html body .input-group > .input-group-append > .btn { border-top-left-radius: 0 !important; border-bottom-left-radius: 0 !important; }
html body .input-group > .form-control:not(:last-child), html body .input-group > .input-group-prepend > .input-group-text { border-top-right-radius: 0 !important; border-bottom-right-radius: 0 !important; }
html body .form-control:focus, html body .select2-container--focus .select2-selection { border-color: var(--as-leaf-2) !important; box-shadow: 0 0 0 .18rem rgba(31,138,76,.18) !important; }

/* ---- links ---- */
html body #main-content a:not(.btn):not(.page-link):not(.nav-link):not(.dropdown-item):not(.as-btn):not(.as-ch) { color: #1f8a4c !important; font-weight: 600; }
html body #main-content a:not(.btn):not(.page-link):not(.nav-link):not(.dropdown-item):not(.as-btn):not(.as-ch):hover { color: var(--as-deep) !important; text-decoration: underline; }

/* ---- table heading rows: green clay ---- */
html body #main-content .table thead th, html body #main-content .thead-dark th, html body .modal .thead-dark th, html body table.dataTable thead th {
    background: var(--as-grad-deep) !important; color: #fff !important; border-color: rgba(255,255,255,.08) !important;
}
html body #main-content .table thead tr:first-child th:first-child { border-top-left-radius: 12px; }
html body #main-content .table thead tr:first-child th:last-child { border-top-right-radius: 12px; }

/* ---- cards: soft clay ---- */
html body #main-content .card { border-radius: 20px !important; border: 0 !important;
    box-shadow: 8px 8px 20px rgba(15,59,44,.08), inset -3px -3px 8px rgba(0,0,0,.02), inset 3px 3px 8px rgba(255,255,255,.7) !important; }

/* ---- page numbers, badges, tabs ---- */
html body .page-link { border-radius: 10px !important; margin: 0 3px; border: 0 !important; background: #f7fcf8 !important; box-shadow: var(--as-clay) !important; color: var(--as-deep) !important; }
html body .page-item.active .page-link { background: var(--as-grad-leaf) !important; color: #fff !important; }
html body .page-item.disabled .page-link { opacity: .5; box-shadow: none !important; }
html body .badge { border-radius: 10px !important; padding: .4em .7em; }
html body .badge-primary, html body .badge-info, html body .badge-secondary, html body .badge-dark { background: var(--as-grad-leaf) !important; color: #fff !important; }
html body #main-content .nav-tabs .nav-link { border-radius: 12px 12px 0 0 !important; }
html body #main-content .nav-tabs .nav-link.active { background: var(--as-grad-leaf) !important; color: #fff !important; border-color: transparent !important; }

/* ---- pop-up windows and drop-down menus ---- */
html body .modal-content { border-radius: 22px !important; border: 0 !important; box-shadow: 0 20px 50px rgba(15,59,44,.25) !important; overflow: hidden; }
html body .modal-header { background: #f7fcf8 !important; border-bottom: 1px solid var(--as-line) !important; }
html body .dropdown-menu { border-radius: 14px !important; border: 1px solid var(--as-line) !important; box-shadow: 0 12px 28px rgba(15,59,44,.14) !important; padding: 6px !important; }
html body .dropdown-menu .dropdown-item, html body .dropdown-menu > li > a { border-radius: 10px !important; }
html body .dropdown-menu .dropdown-item:hover, html body .dropdown-menu > li > a:hover { background: #e6f4ea !important; color: var(--as-deep) !important; }
html body .alert { border-radius: 14px !important; }

/* ---- side menu items in the same clay style ---- */
html body #left-sidebar .as-item.on, html body #left-sidebar .as-grp.on > .as-head { background: var(--as-grad-leaf) !important; box-shadow: var(--as-clay) !important; }
html body #left-sidebar .as-prof { box-shadow: var(--as-clay) !important; border: 0 !important; }

/* ---- POS screen (pos.php has its own "slate" colours) in the same look ---- */
html body .headerOfPOS, html body .pos-header { background: #f7fcf8 !important; border-bottom: 1px solid var(--as-line) !important; box-shadow: 0 2px 10px rgba(15,59,44,.06) !important; }
html body .btn.btn-slate { background: var(--as-grad-deep) !important; color: #fff !important; }
html body .btn.btn-slate.white:not(.confirm-delete) { background: var(--as-grad-leaf) !important; }
html body #submit_form1, html body .btn.btn-slate[type="submit"] { background: linear-gradient(135deg, #ffb84d, #e8930c) !important; color: #fff !important; }
html body .btn.btn-outline-slate { background: #f7fcf8 !important; color: var(--as-deep) !important; }
html body .btn.btn-outline-slate:hover { background: var(--as-grad-leaf) !important; color: #fff !important; }
html body .bg-slate, html body select.bg-slate { background: var(--as-grad-deep) !important; color: #fff !important; border: 0 !important; }
html body .text-slate { color: var(--as-deep) !important; }
html body .btn.btn-light.btn-hover-primary, html body .btn-icon.btn-light { background: #f7fcf8 !important; color: var(--as-deep) !important; }
/* page background behind everything (beats color_skins body[class*="theme-"]) */
html body[class], html:has(> body[class]) { background: var(--as-mist) !important; background-color: var(--as-mist) !important; }

/* =====================================================================
   GLOWING BUTTONS (user: "buttons blinking type hon") - a soft light pulse runs
   around the main buttons; it stops on hover so the button is easy to press,
   and is switched off for people who turn off animations on their computer.
   ===================================================================== */
@keyframes as-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(47,174,99,.55), 0 6px 14px rgba(15,59,44,.18); }
    50%      { box-shadow: 0 0 0 7px rgba(47,174,99,0), 0 6px 18px rgba(15,59,44,.22); }
}
@keyframes as-glow-sun {
    0%, 100% { box-shadow: 0 0 0 0 rgba(245,166,35,.6), 0 6px 14px rgba(15,59,44,.18); }
    50%      { box-shadow: 0 0 0 7px rgba(245,166,35,0), 0 6px 18px rgba(15,59,44,.22); }
}
@keyframes as-shine { 0% { left: -60%; } 60%, 100% { left: 130%; } }
html body .btn.btn-primary, html body .btn.btn-success, html body .btn.btn-info, html body .btn.btn-green,
html body button[type="submit"].btn, html body .as-blink {
    position: relative; overflow: hidden; animation: as-glow 2.2s ease-in-out infinite;
}
html body .btn.btn-warning, html body .as-blink-sun { animation: as-glow-sun 2.2s ease-in-out infinite; }
html body .btn.btn-primary::after, html body .btn.btn-success::after, html body .btn.btn-info::after,
html body .btn.btn-green::after, html body .as-blink::after {
    content: ''; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,255,255,.35), rgba(255,255,255,0));
    transform: skewX(-20deg); animation: as-shine 3.6s ease-in-out infinite;
}
html body .btn:hover, html body .as-blink:hover { animation-play-state: paused; transform: translateY(-1px); }
html body .btn:hover::after { animation-play-state: paused; }
/* table rows full of small buttons: glow only on hover, so long lists stay calm */
html body table .btn { animation: none !important; }
html body table .btn::after { display: none !important; }
@media (prefers-reduced-motion: reduce) {
    html body .btn, html body .as-blink, html body .as-blink-sun, html body .btn::after { animation: none !important; }
}

/* =====================================================================
   POS (New Sale) in the agro look: deep green top bar with white text, leaf-green
   bill table head, mint panels - so the sale screen does not look like the old one.
   ===================================================================== */
html body header.pos-header.headerOfPOS {
    background: linear-gradient(110deg, #0f3b2c 0%, #17503b 55%, #1f8a4c 100%) !important; border: 0 !important;
    box-shadow: 0 6px 18px rgba(15,59,44,.25) !important;
}
html body header.pos-header.headerOfPOS, html body header.pos-header.headerOfPOS * { color: #fff !important; }
html body header.pos-header.headerOfPOS .btn, html body header.pos-header.headerOfPOS a.btn {
    background: rgba(255,255,255,.12) !important; border: 1px solid rgba(255,255,255,.35) !important; color: #fff !important; border-radius: 30px !important;
}
html body header.pos-header.headerOfPOS .btn:hover { background: #f5a623 !important; border-color: #f5a623 !important; }
html body header.pos-header.headerOfPOS input, html body header.pos-header.headerOfPOS select { color: #0f3b2c !important; }
html body #product_info_table thead th, html body table.product_info_table thead th {
    background: linear-gradient(90deg, #1f8a4c, #2fae63) !important; color: #fff !important; border-color: transparent !important;
}
html body .card.card-custom, html body .card-custom { border-radius: 20px !important; border: 1px solid #dcebe0 !important; }
