/*
    DJANGO Main styles
    aggiunte per Claim Master
*/
@import url('/static/admin/css/base.css');

/* imposto la dimensione di base per i font-size misurati in rem */
:root {
	font-size: 16px;
}

/* VARIABLE DEFINITIONS */
html[data-theme="light"], :root {
	--error-bg: rgb(255, 255, 204);
	--error-fg: rgb(186, 33, 33);
	/* ------------------------------------- */
	--breadcrumbs-bg: rgb(221, 242, 255);
	--breadcrumbs-fg: rgb(156, 115, 110);
	--breadcrumbs-link-fg: rgb(0, 0, 0);
	/* ------------------------------------- */
	--button-create-bg: rgb(122, 128, 255);
	--button-create-fg: rgb(255, 255, 255);
	--button-create-hover-bg: rgb(81, 90, 255);
	/* ------------------------------------- */
	--button-detail-bg: rgb(255, 255, 0);
	--button-detail-fg: rgb(0, 0, 0);
	--button-detail-hover-bg: rgb(236, 236, 0);
	/* ------------------------------------- */
	--button-edit-bg: rgb(41, 206, 107);
	--button-edit-fg: rgb(255, 255, 255);
	--button-edit-hover-bg: rgb(15, 175, 19);
	/* ------------------------------------- */
	--button-warning-bg: rgb(255, 136, 136);
	--button-warning-fg: rgb(255, 255, 255);
	--button-warning-hover-bg: rgb(255, 0, 0);
	/* ------------------------------------- */
	--button-disabled-bg: rgb(211, 215, 207);
	--button-disabled-fg: rgb(255, 255, 255);
	/* ------------------------------------- */
	--multitab-bg: rgb(221, 242, 255);
	--multitab-selected-bg: rgb(122, 128, 255);
	--multitab-selected-hover-bg: rgb(81, 90, 255);
	/* ------------------------------------- */
	--menu-item-bg: rgb(237, 243, 254);
	--menu-item-hover-bg: rgb(219, 232, 255);
	--menu-item-fg: rgb(5, 5, 5);
	--menu-item-hover-fg: rgb(5, 5, 5);
	--menu-item-disabled-fg: rgb(187, 187, 187);
	--menu-item-border: rgb(173, 173, 173);
	--menu-item-border-bottom: rgb(173, 173, 173);
	--menu-item-border-right: rgb(173, 173, 173);
	--menu-badge-fg: rgb(33, 33, 33);
	--menu-badge-bg: rgb(204, 204, 204);
	/* ------------------------------------- */
	--input-disabled-bg: rgb(244, 244, 244);
	--field-highlight-bg: rgb(255, 255, 0);
	--field-highlight-fg: rgb(0, 0, 0);
	--field-infonote-bg: rgb(204, 207, 255);
	--field-infonote-border: rgb(0, 0, 255);
	--field-infonote-fg: rgb(0, 0, 255);
	--field-warningnote-bg: rgb(255, 255, 204);
	--field-warningnote-border: rgb(255, 0, 0);
	--field-warningnote-fg: rgb(255, 0, 0);
	/* ------------------------------------- */
	--modal-wait-bg: rgb(255, 255, 204);
	--modal-wait-fg: rgb(16, 16, 12);
	--modal-wait-border: rgb(0, 0, 0);
	/* ------------------------------------- */
	--upload-area-bg: rgb(218, 255, 182);
	--upload-area-border: rgb(128, 128, 128);
	--upload-area-dashed-border: rgb(211, 211, 211);
	/* ------------------------------------- */
	--allegato-drag-brightness: brightness(100%);
	--allegato-flag-yes-brightness: brightness(100%);
	--allegato-flag-no-brightness: brightness(100%);
	--anteprima-brightness: brightness(100%);
	--boolicon-brightness: brightness(100%);
	--item-brightness: brightness(100%);
	/* ------------------------------------- */
	--object-status-pending-bg: rgb(125, 125, 125);
	--object-status-pending-fg: rgb(255, 255, 255);
	--object-status-started-bg: rgb(125, 125, 255);
	--object-status-started-fg: rgb(255, 255, 255);
	--object-status-success-bg: rgb(57, 167, 57);
	--object-status-success-fg: rgb(255, 255, 255);
	--object-status-failure-bg: rgb(255, 125, 125);
	--object-status-failure-fg: rgb(255, 255, 255);
	/* ------------------------------------- */
	--comment-personal-bg: rgb(255, 255, 0);
	--comment-group-bg: rgb(204, 207, 255);
	--comment-public-bg: rgb(255, 255, 255);
	--comment-header-bg: rgb(230, 230, 230);
	--comment-header-fg: rgb(0, 0, 0);
	/* ------------------------------------- */
	--table-caption-bg: rgb(203, 238, 255);
	--table-caption-fg: rgb(0, 0, 0);
	--table-enhanced-bg: rgb(68, 255, 221);
	--table-cell-grey-bg: rgb(224, 224, 224);
	--table-cell-grey-fg: rgb(0, 0, 0);
	--table-totale-bg: rgb(224, 224, 224);
	--table-totale-fg: rgb(0, 0, 0);
	--box-attivita-bg: rgb(231, 255, 231);
	--box-attivita-fg: rgb(5, 5, 5);
	--box-istruzioni-bg: rgb(235, 255, 189);
	--box-istruzioni-darkened-bg: rgb(225, 244, 181);
	--box-istruzioni-fg: rgb(5, 5, 5);
	--box-shadow: rgb(136, 136, 136);
	--box-border: rgb(0, 0, 0);
    /* ------------------------------------- */
    --allegato-card-bg: rgb(255, 255, 255);
    --assigned-bg: rgb(255, 255, 0);
    --assigned-fg: rgb(0, 0, 0);
}

/* GLOBAL DEFAULT */
h1 {
	margin: 0 0 4px;
}
input[type="number"] {
	-moz-appearance: textfield;
	appearance: textfield;
}

/* BREADCRUMBS */
div.breadcrumbs {
	padding: 2px 40px;
	background: var(--breadcrumbs-bg);
	color: var(--breadcrumbs-fg);
}

div.breadcrumbs a {
	color: var(--breadcrumbs-link-fg);
}

/* PAGE STRUCTURE */
#content {
	padding: 10px;
}

#footer {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	height: 24px;
	display: flex;
	flex-direction: row;
	justify-content: space-between;
	z-index: 999;
	padding: 0px;
}

#footer p {
	padding: 0px;
}

/* OBJECT TOOLS */
.object-tools {
	margin-top: -34px;
}

.object-tools a.addlink {
	background-color: var(--button-create-bg);
	background-image: url(../img/tooltag-add.svg);
	background-repeat: no-repeat;
	background-position: right 7px center;
	font-weight: bold;
}

.object-tools a.addlink:hover {
	background-color: var(--button-create-hover-bg);
}

/* MODULES */
.module {
	margin-bottom: 20px;
	margin-right: 8px;
}

.module h2, .module caption, .inline-group h2 {
	padding: 4px 8px;
	font-weight: bold;
}

/* LETTURA FACILITATA */
.row1 {
	background: var(--body-bg);
}

.row2 {
	background: var(--darkened-bg);
}

/* MESSAGES & ERRORS */
ul.errorlist {
	background-color: var(--error-bg);
	color: var(--error-fg);
	border: 1px solid var(--error-fg);
	padding: 4px 10px 4px 16px;
	margin: 0 0 2px 0;
}


ul.messagelist li {
	padding: 4px 10px 4px 65px;
	background: var(--message-success-bg) url('../img/icon-yes.svg') 40px 6px no-repeat;
	background-size: 18px auto;
	margin: 0 0 2px 0;
}

ul.messagelist li.warning {
	background: var(--message-warning-bg) url(../img/icon-alert.svg) 40px 6px no-repeat;
	background-size: 18px auto;
}

ul.messagelist li.error {
	background: var(--message-error-bg) url(../img/icon-no.svg) 40px 6px no-repeat;
	background-size: 18px auto;
}

/* ACTION ICONS */
.changelink, .inlinechangelink {
	background: var(--button-edit-bg);
	color: var(--button-fg);
	font-weight: bold;
}

.changelink:hover, .inlinechangelink:hover {
	background: var(--button-edit-hover-bg);
}

.errornote {
	background-color: var(--error-bg);
}

/* TABLES */
table td.totale {
	font-weight: bold;
	background-color: var(--table-totale-bg);
	color: var(--table-totale-fg);
}

table td.align-right {
    text-align: right;
}

table td.align-center {
    text-align: center;
}

/* SORTABLE TABLES */
table thead th {
	white-space: nowrap;
}

/* django-countries */
img.country-select-flag {
	display: none;
}

img[src*=static].country-select-flag {
	width: 24px;
	height: 16px;
	margin: 8px 4px 4px 8px;
	display: inline;
}

/* items */
img.boolicon {
	filter: var(--boolicon-brightness);
}
/* dal autocomplete create option */
span.dal-create {
	font-weight: bold;;
}
span.dal-create::after {
	font-family: "Font Awesome 5 Free";
	content: " \f0fe";
	font-size: 1rem;
	font-weight: bold;
}