:root {
    --color-main: #2d9cdb;
    --color-border-inner: #c9e4f6;
    --color-border-outer: #3d85c6;
    --color-border-block: #ca9362;
    --color-border-cell: #e0e7ee;
    --color-border-header: #e4e4e4;
    --color-border-header-em: hsl(0, 0%, 80%);
    --color-bkg-header: #e5f3ff;
    --color-bkg-header1: #f8f9fa;
    --color-bkg-ttl: #a1c6e6;
    --color-bkg-ttl-em: #b5cfe6;
    --color-bkg-subttl: #f8f9fa;
    --color-bkg-subttl-em: #eeeeee;
    --color-bkg-subttl-em2: #f1f1f1;
    --color-bkg-icon: #56ccf2;
    --color-danger: #f46c6c;
    /* #c67676; */
    --color-text-subttl: #808c99;
    --color-currency: #9abca2;
    --color-commands: #a8a8a8;
    --color-acc-em: #ac6f39;
    --color-header1: #4e4e4e;
    --color-header2: #0b5394;
    --color-icon: #b19cfb;
    --color-subtotal: #5d5d5d;
    --color-multiselected: #eef4fa;
    --color-active: #c4ddf6;
    --color-link: #007bff;
    --color-success: #419d41;
    /* report views: ProductOrdersDeficit/ProductionDeficit detail.css and ProductionCapabilities (no .container) read it without a local definition */
    --color-grey: #969696;
}

* {
    scrollbar-color: rgb(147, 204, 236) #f1f1f1;
}

html {
    padding: 0;
}

html,
body {
    overflow: hidden;
    margin: 0px;
    width: 100%;
    height: 100%;
    position: relative;
    background: #F2F2F2;
    font-size: 12px;
    /* background-image: radial-gradient(ellipse farthest-corner at 45px 45px, rgba(147, 206, 222, 1) 0%, rgba(107, 179, 199, 1) 50%, rgba(23, 115, 141, 1) 95%); */
    background-image: radial-gradient(ellipse farthest-corner at 45px 45px, rgba(147, 206, 222, 1) 0%, #b3b27f9e 80%, #BDBC86 95%);
    font-family: 'Roboto', sans-serif;
    -ms-overflow-style: scrollbar;
}

::-webkit-scrollbar {
    width: 12px;
    border-radius: 4px;
}

::-webkit-scrollbar-track {
    border-radius: 4px;
    background: transparent;
}

::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgb(147, 204, 236);
    border: 2px solid transparent;
}

::-webkit-scrollbar-thumb:hover {
    border-radius: 4px;
    background-color: rgb(32, 135, 220);
    border: 2px solid transparent;
}

/*main window*/
/*
#accordion::-webkit-scrollbar {
    
}*/
/*
#accordion::-webkit-scrollbar-track {
    -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
    padding-bottom: 500px;
    margin-bottom: 500px;
}*/
/*
::-webkit-scrollbar-button {
    background: linear-gradient(to right top, transparent 50%, red 50%) left / 50% 100% no-repeat, linear-gradient(to left top, transparent 50%, red 50%) right / 50% 100% no-repeat;
}*/
#accordion {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    overflow-y: scroll;
    height: calc(100% - 135px);
    /* 60 + 50 + 50 + 25 */
}

#accordionTask {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    overflow-y: scroll;
    height: calc(100% - 160px);
}

#accordionTask::-webkit-scrollbar-track-piece {
    background: rgb(249, 249, 249);
}

#accordionTask::-webkit-scrollbar {
    width: 15px;
}

#accordionTask::-webkit-scrollbar-thumb {
    background: #E0E0E0;
}

#accordionReg {
    width: 100%;
    height: 100%;
    background: #FFFFFF;
    overflow-y: scroll;
    height: calc(100% - 160px);
}

#accordionReg::-webkit-scrollbar-track-piece {
    background: rgb(249, 249, 249);
}

#accordionReg::-webkit-scrollbar {
    width: 15px;
}

#accordionReg::-webkit-scrollbar-thumb {
    background: #E0E0E0;
}

#accordion::-webkit-scrollbar-track-piece {
    background: rgb(249, 249, 249);
}

#accordion::-webkit-scrollbar {
    width: 15px;
}

#accordion::-webkit-scrollbar-thumb {
    background: #E0E0E0;
}

#accordionCollapse::-webkit-scrollbar-track-piece {
    background: rgb(249, 249, 249);
}

#accordionCollapse::-webkit-scrollbar {
    width: 15px;
}

#accordionCollapse::-webkit-scrollbar-thumb {
    background: #E0E0E0;
}

#accordion.a {
    font-family: Roboto;
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 14px;
}

#folderName {
    background: #FFFFFF;
    border: 1px solid #E0E0E0;
    box-sizing: border-box;
    width: 160px;
    height: 30px;
    margin: 11px 5px 11px 15px;
    padding-left: 10px;
    padding-right: 18px;
}

#folderName:focus {
    outline: #2D9CDB auto 5px;
}

#createFolderDrawer {
    background-color: #ffffff;
}

#createFolderDrawer h6 {
    margin: 0 0 -5px 16px;

}

.btn-main-menu {
    color: white;
    border: none !important;
    border-radius: unset !important;
}

.btn-main-menu:hover .BlockLabel {
    color: black !important;
    transition: color 1s ease-out;
}

.btn-main-menu:hover {
    color: black;
    transition: color 0.7s ease-out;
}

.btn-main-menu .Icon {
    font-size: 40px !important;
}

.app-background {
    background: #eaf6f9 !important;
}

/* [C12] The wijmo list rules that lived here (.wj-cell, .wj-cell.wj-header, .wj-cell.wj-alt,
   .wj-state-selected / -multi-selected / .wj-state-active, .wj-cell.check-mark svg and the
   .wj-glyph-up/down chevron) now style upstream's DataGrid: client/components/styles/DataGrid.less.
   .wj-btn .wj-btn-default and .wj-listbox.ctx-menu styled wijmo controls that are gone: dropped. */

/* A cancelled document's row is struck through (src SalesOrders list puts the class on every cell). */
.DataGrid .dg-cell.crossed-out-row {
    position: relative;
}

.DataGrid .dg-cell.crossed-out-row::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: rgba(244, 108, 108, 0.6);
    transform: translateY(-50%);
    pointer-events: none;
}

/* Value backgrounds a list formatter puts on a cell (src RozetkaItems); they win over stripes and selection. */
.dg-bkg-green {
    background-color: #c6e2c6 !important;
}

.dg-bkg-red {
    background-color: #febcbc !important;
}


/*  alps [15.12.2023] :  */
ul.nav.navbar-nav.navbar-nav-left,
ul.nav.navbar-nav.navbar-nav-right {
    gap: 15px;
}

.nav.navbar-nav.navbar-nav-left .nav-link {
    align-items: center;
}

nav.navbar a.brand::after {
    content: 'test';
    color: #f87715;
    font-size: 12px;
    position: absolute;
    bottom: -5px;
    left: 80px;
}

ul.nav.navbar-nav.navbar-nav-left>div.itemName:first-of-type {
    text-transform: uppercase;
}

.Window {
    box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.55);
    border-radius: 12px;
    border: transparent;
}

.textbtn:hover {
    text-shadow: 2px 2px 7px #bfd1db;
}

/* alps: accounting report skin. .tbs-rpt - turnover-balance-like 6 column report */
/* [C12] Re-targeted from wijmo to DataGrid classes: the accounting reports (TBS, TBSPerAccount2, LedgerReport2,
   LedgerCorrReport2, TransactionsReport2) build the core Table/DataGrid since the wijmo-reports plan
   (docs/superpowers/specs/2026-09-25-wijmo-reports-design.md in the project); no wijmo grid is left behind
   this skin. Selectors go through .DataGrid so they outrank DataGrid.less, which loads after this file.
   .wj-cell -> .dg-cell; .wj-cell.wj-header -> .dg-hcell (its band: .dg-header);
   .wj-align-right -> .dg-align-right (DataGrid puts it on header and body cells of a right-aligned column);
   .wj-colfooters .wj-header -> .dg-footer .dg-cell: the totals band the design's footerRows adds must carry
   this class; .wj-frozen-row -> dropped (a specificity helper for .rpt-header1, which stands alone now).
   Vertical paddings are relative to DataGrid's line-height centring: wijmo's padding-top here was 2px,
   which DataGrid does not need, so 3px became 1px and 8px became 6px. */

.tbs-rpt .WindowBody {
    background-color: #f6f6f6;
}

.tbs-rpt .DataGrid .dg-header {
    background-color: #f6f6f6;
    border-bottom-color: var(--color-border-header);
}

.tbs-rpt .DataGrid .dg-hcell {
    background-color: #f6f6f6;
    border-right: 1px solid var(--color-border-header);
    color: var(--color-subtotal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tbs-rpt .DataGrid .dg-hcell.dg-align-right {
    justify-content: flex-end;
}

.tbs-rpt .DataGrid .rpt-header1 {
    color: var(--color-subtotal);
    font-weight: bold;
    padding-top: 1px;
    background-color: var(--color-bkg-header);
}

.tbs-rpt .DataGrid .rpt-header2 {
    color: #0b5394;
}

/* wijmo widened the cell's bottom rule to 2px; a DataGrid row owns 1px, the cell adds the second */
.tbs-rpt .DataGrid .rpt-header2-gr {
    color: #0b5394;
    font-weight: bold;
    padding-top: 6px;
    border-bottom: 1px solid var(--color-border-cell);
}

.tbs-rpt .DataGrid .subtotal {
    color: var(--color-subtotal);
    background-color: var(--color-bkg-subttl);
    font-weight: 500;
    padding-top: 1px;
}

/* Table footer (totals) */
.tbs-rpt .DataGrid .dg-footer .dg-cell {
    background-color: #f6f6f6;
    border: 1px solid transparent;
    color: var(--color-header2);
    text-align: right;
}

.tbs-rpt .DataGrid .dt {
    background-color: var(--color-bkg-subttl);
}

.tbs-rpt .DataGrid .obj,
.tbs-rpt .DataGrid .obj a {
    font-size: 11px;
    color: var(--color-commands);
    word-wrap: break-word;
}

.tbs-rpt .DataGrid .acnt {
    font-weight: 400;
    font-size: 10px;
    color: var(--color-border-block);
}

/* [wijmo plan] LedgerReport2: a posting with no (or a wrong) correspondence (the server's missEntry).
   Production (45f375a30d) drew this on screen only — the cell's data/text stayed the bare account, so
   Excel and print read it unmarked. The window keeps the cell's text/value untouched and only adds this
   class; the mark is generated content, so it never reaches toModel()'s text, slimModel's Excel payload,
   or printReportGrid's own stylesheet (which doesn't load main.css). The warning is the cell's title. */
.tbs-rpt .DataGrid .dg-cell.miss-entry::before {
    content: '⁉️';
}

.tbs-rpt .DataGrid .link {
    color: var(--color-link);
    cursor: pointer;
}

.tbs-rpt .DataGrid .dg-cell p {
    margin: 0;
}

/* [wijmo plan] TransactionsReport2's object cells: one bare <p> per object, 18px a line (the window makes a
   row of several lines lines x 18 + 7 high, wijmo's autoRowHeights over its word-wrapped object columns, and a
   row of one line or none production's 21). The window drops the grid's single-line inline line-height from
   these cells so this rule decides; 1px on top puts the first line's middle (1 + 18 / 2 = 10) where a
   single-line neighbour's is (the grid's 20px line in a 21px row), so a one-line object cell is centred like
   its neighbours. The row has room for one line per object, so a long name keeps to its line and ends in an
   ellipsis; the cell's tooltip lists the names in full. */
.tbs-rpt .DataGrid .dg-cell.obj-lines {
    line-height: 18px;
    padding-top: 1px;
}

.tbs-rpt .DataGrid .dg-cell.obj-lines p {
    overflow: hidden;
    text-overflow: ellipsis;
}

.tbs-rpt .DataGrid .border-em,
.tbs-rpt .DataGrid .dg-hcell.border-em,
.tbs-rpt .DataGrid .dg-footer .border-em,
.tbs-rpt .DataGrid .dg-cell .b-r-off .border-em {
    border-right: 1px solid var(--color-border-header-em);
}

.tbs-rpt .DataGrid .currency,
.tbs-rpt .DataGrid .dg-footer .currency {
    color: var(--color-currency);
    font-size: 11px;
}

/* [wijmo plan] a bold cell (TBS's account column; under wijmo an inline font-weight). A class, so the
   report's print and Excel, which read classes, keep it too. */
.tbs-rpt .DataGrid .bold {
    font-weight: bold;
}

/* [wijmo plan] a cell indented by 10px (TBSPerAccount2's object days; under wijmo an inline-styled span, which
   the report's print escapes away): DataGrid's 6px cell padding + 10. A class, so print indents it too. */
.tbs-rpt .DataGrid .dg-cell.ind10 {
    padding-left: 16px;
}

/* [wijmo plan] the same by 14px (LedgerCorrReport2's days and months under a correspondence; under wijmo an
   inline-styled span): 6 + 14. */
.tbs-rpt .DataGrid .dg-cell.ind14 {
    padding-left: 20px;
}

/* [wijmo plan] header-rows cell without the inner rule under it (TBS's "Starting balance / Turnover /
   Ending balance" had none under wijmo: borderBottom none on row 0). Outranks DataGrid.less's
   .dg-header-rows .dg-hcell-upper. */
.tbs-rpt .DataGrid .dg-header .dg-hcell.b-b-off {
    border-bottom: none;
}

.tbs-rpt .DataGrid .dg-cell.b-r-off:not(.border-em) {
    border-right: none;
}

.dropzone,
.collapse {
    position: relative;
    z-index: 1;
}

.draggable {
    position: relative;
    z-index: 10;
}

.draggable.can-drop {
    border: 1px solid rgb(57, 188, 57) !important;
    z-index: 11;
}

.drop-active {
    border: dashed 1px #2d9cdb !important;
    border-radius: 4px !important;
    opacity: 0.6;
    z-index: 9;
}

/* Phone link */
a.phone-link {
    text-decoration: none;
}

.phone-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

/* base icon style */
.phone-link i {
    font-size: 18px;
    color: #36ae36;
    line-height: 1;
    transition: transform 0.3s ease, color 0.3s ease;
}

/* “wave” hover effect with keyframes */
.phone-link:hover {
    background-color: rgba(54, 174, 54, 0.1);
}

.phone-link:hover i {
    animation: pulse 0.6s ease-out;
    color: #2b8f2b;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    40% {
        transform: scale(1.4);
        opacity: 0.6;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@media (max-width: 768px) {

    .itemName,
    .brand {
        display: none;
    }

    .itemName.always-visible {
        display: block;
    }

    .verticalLine {
        width: 0;
    }
}

/* Dashboard mount: index.html <div class="main"> (main.js, DashboardDesk). Structural rule carried
   from upstream; its opacity:0 + main-loadup fade-in is left out so the desk shows at once. */
.main {
    z-index: 1;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
}
