/* GlobalVatBundle: "Länderspezifische MwSt." module (js/pimcore/vatDetermination/panel.js) and
   the "MwSt.-Ermittlung" panel of the article's "Vervollständigung" tab (js/pimcore/object/vatPanel.js) */

/* globe (outline), white like the other main navigation icons */
.pimcore_main_nav_icon_vat_determination {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23FFFFFF' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9.2'/%3E%3Cellipse cx='12' cy='12' rx='4' ry='9.2'/%3E%3Cpath d='M2.8 12h18.4M4.2 7h15.6M4.2 17h15.6'/%3E%3C/g%3E%3C/svg%3E") center center no-repeat !important;
}

/* module tab, buttons and windows */
.pimcore_icon_vat_determination {
    background: url(/bundles/pimcoreadmin/img/flat-color-icons/globe.svg) center center no-repeat !important;
}

/* the icon of the Article class, which storage articles show in the tree (see App\Model\Article\AdminStyle\Article) */
.pimcore_icon_vat_storage_article {
    background: url(/bundles/pimcoreadmin/img/flat-color-icons/deployment.svg) center center no-repeat !important;
}

/* sticky action bar at the bottom of the module */
.vat-determination-actions {
    border-top: 1px solid #d0d0d0 !important;
    background: #f5f5f5 !important;
}

.vat-determination-cell-with-action {
    display: flex;
    align-items: center;
    gap: 6px;
}

.vat-determination-cell-content {
    flex: 1;
    min-width: 0;
}

/* open icon inside a cell of the "Regeln" tab (category, article count) */
.vat-determination-cell-action {
    flex: none;
    width: 16px;
    height: 16px;
    cursor: pointer;
    opacity: 0.8;
}

.vat-determination-cell-action:hover {
    opacity: 1;
}

/* every table of the module and of the article "Vervollständigung" tab: texts and icons
   centred vertically in the row (the ExtJS theme aligns grid cells at the top) */
.vat-determination-grid .x-grid-td {
    vertical-align: middle;
}

/* options and result of a run above its log */
.vat-determination-run-details {
    background: #f5f5f5;
    border-bottom: 1px solid #e0e0e0;
}

.vat-determination-run-details p {
    margin: 0 0 4px 0;
}

.vat-determination-dry-run-info {
    margin: 0 0 8px 0;
    padding: 6px 8px;
    background: #fff8e1;
    border-left: 3px solid #ef6c00;
}

.vat-determination-hint {
    color: #888;
    font-size: 11px;
}

.vat-determination-hidden {
    display: none !important;
}

.vat-determination-row-disabled .x-grid-cell {
    color: #9e9e9e;
    background-color: #fafafa;
}

.vat-determination-badge {
    display: inline-block;
    padding: 0 7px;
    border-radius: 9px;
    font-size: 11px;
    color: #fff;
    background: #9e9e9e;
}

/* status of a run in front of its name ("Läufe"), coloured like the badges */
.vat-determination-status-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-right: 7px;
    border-radius: 50%;
    vertical-align: middle;
    background: #9e9e9e;
}

.vat-determination-badge-new,
.vat-determination-badge-finished,
.vat-determination-badge-match {
    background: #2e7d32;
}

.vat-determination-badge-changed,
.vat-determination-badge-running,
.vat-determination-badge-queued,
.vat-determination-badge-mismatch {
    background: #ef6c00;
}

.vat-determination-badge-failed {
    background: #c62828;
}

.vat-determination-log pre {
    margin: 0;
    padding: 8px;
    font-size: 11px;
    white-space: pre-wrap;
}

/* runs open their details on click */
.vat-determination-clickable-row .x-grid-cell {
    cursor: pointer;
}

/* "Änderung offen" badge of a rule: opens the run details */
.vat-determination-cell-action-inline {
    cursor: pointer;
}

.vat-determination-changes-hint {
    background: #fff8e1;
    border-bottom: 1px solid #f0e0b0;
}

/* category tree of a rules run: picked, not typed */
.vat-determination-category-field input {
    cursor: default;
    background: #f7f7f7;
}

/* article determinations by status (module tab "Artikel" and the article's panel) */
.article-completion-status-open .x-grid-cell,
.article-completion-status-rule_removed .x-grid-cell {
    background-color: #fff8e1;
}

.article-completion-status-conflict .x-grid-cell {
    background-color: #fdecea;
}

.article-completion-status-applied .x-grid-cell {
    background-color: #edf7ed;
}

.article-completion-status-rejected .x-grid-cell,
.article-completion-status-not_applicable .x-grid-cell,
.article-completion-status-removed .x-grid-cell,
.article-completion-status-kept .x-grid-cell,
.article-completion-status-obsolete .x-grid-cell {
    color: #888;
}

/* rule of an article run started from the context menu of a rule */
.vat-determination-rule-info {
    margin: 0 0 8px 0;
    padding: 6px 8px;
    background: #f5f5f5;
    border-left: 3px solid #2878f0;
}
