/*
  Copyright 2008-2025 Rumma & Ko Ltd
  License: GNU Affero General Public License v3 (see file COPYING for details)
*/

/* beginning of former lino.css */

.dashboard-item-closed {
	/*max-height: 0px !important;*/
	overflow:hidden;
	display: none;
}

.dashboard-item {
	/*max-height: 110vh;*/
	transition: height 2s ease-in;
}

.lino-auto-height {
  white-space: normal;
  overflow: visible;
}

.x-grid3-cell-inner {
  white-space: normal;
  overflow:hidden;
}

.x-grid3-hd-inner {
  white-space: normal;
}

.lino-info {
  padding:3pt;
}

.lino-info-red { padding:3pt; background-color:#FA7F7F; }
.lino-info-green { padding:3pt; background-color:#82FA8C; }
.lino-info-blue { padding:3pt; background-color:#8282FA; }
.lino-info-yellow { padding:3pt; background-color:#FAEF5A; }

/*.lino-phantom-row table.x-grid3-row-table {
	color: blue;
}
*/
.lino-phantom-row td {
	/* font-style: italic; */
	color:white;
}

.x-grid3-row-red td { background-color:#FA7F7F; }
.x-grid3-row-green td { background-color:#82FA8C; }
.x-grid3-row-blue td { background-color:#8282FA; }
.x-grid3-row-yellow td { background-color:#FAEF5A; }

/*
.x-item-disabled, .x-tree-node-disabled, .x-date-disabled
*/
.x-item-disabled {
  color: blue;
  /*   opacity: 1;
  font-weight: bold; */
}

.x-item-disabled * {
  color: blue !important;
  /*font-weight: bold !important; */
}

.x-btn-noicon {
	color: red; font-style:italic;
}
.x-btn-pressed {
	color: red; font-style:italic;
}

.x-btn-text {
	color: red; font-style:italic;
}

.x-btn-menu-active {
	cursor: 'wait';
	color:'red';
}

/* See blog/2011/0603
*/
.x-form-item-label{
    white-space: nowrap;
}




/*
.x-form-field { padding: 10px; }
*/

.x-panel-body-noheader { padding-left: 2px; padding-right: 2px; }
.x-panel-body { padding-left: 2px; padding-right: 2px; }



/* TinyMCE specific rules */
/*
body.mceContentBody {
  color: red !important;
}
*/
body.mceNonEditable {
  color: blue !important;
}

/*

To display "normal" HTML inside an ExtJS component,
wrap it into a <div class="htmlText">.

*/

.htmlText {
	/* font-family: arial,tahoma; */
		font: normal 1rem arial,tahoma,verdana,helvetica;
}
.htmlText h1 {
	font-size:1.6rem;
	padding-top:10px;
	padding-bottom:12px;
	}
.htmlText h2 {
	font-size:1.4rem;
	padding-top:10px;
	padding-bottom:2px;
	}
.htmlText h3 {
	font-size:1.2rem;
	font-style: italic;
	padding-top:1px;
	padding-bottom:1px;
    }
table.htmlText td,th {
	padding:0px;
	}
.htmlText p {
	padding-top:3px;
	padding-bottom:3px;
	margin-top:0px;
	margin-bottom:0px;
	}
.htmlText ol {
	margin-top:3px;
	margin-left:20px;
	margin-bottom:3px;
	list-style-type: decimal;
	list-style-image: none;
	list-style-position: outside;
	}
.htmlText ul {
	margin-top:3px;
	margin-left:20px;
	margin-bottom:3px;
	list-style-type: square;
	list-style-image: none;
	list-style-position: outside;
	}
.htmlText strong {
	font-weight:bold;
	}
.htmlText em {
	font-style: italic;
	}

/*
Thanks to http://de.selfhtml.org/css/formate/zentrale.htm
*/
table.htmlText tr td {
	vertical-align: middle;
	text-align: center;
}

.text-cell {
    text-align: left;
    vertical-align: top;
    /* background: #eeeeee; */
}

.number-cell {
    text-align: right;
    vertical-align: top;
    /* background: #eeeeee; */
}




/*
The following are
Alexander Dawson's CSS tooltips
from <http://sixrevisions.com/css/css-only-tooltips/>,
adapted for usage in an ExtJS application.

*/

.x-form-item-label .tooltip {
	border-bottom: 1px dotted #000000; color: #000000; outline: none;
	cursor: help;
	text-decoration: none;
	position: relative;
}
.x-form-item-label .tooltip span {
	margin-left: -999em;
	position: absolute;
}
.x-form-item-label .tooltip:hover span {
	border-radius: 5px 5px; -moz-border-radius: 5px; -webkit-border-radius: 5px;
	box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.1); -webkit-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
	-moz-box-shadow: 5px 5px rgba(0, 0, 0, 0.1);
	font-family: Calibri, Tahoma, Geneva, sans-serif;
	position: absolute; left: 1em; top: 2em; z-index: 99;
	overflow: visible;
    white-space: normal;
	margin-left: 0; width: 250px;

}
.x-form-item-label .tooltip:hover img {
	border: 0; margin: -10px 0 0 -55px;
	float: left; position: absolute;
}
.x-form-item-label .tooltip:hover em {
	font-family: Candara, Tahoma, Geneva, sans-serif; font-size: 1.2em; font-weight: bold;
	display: block; padding: 0.2em 0 0.6em 0;
}
.x-form-item-label .classic { padding: 0.8em 1em; }
.x-form-item-label .custom { padding: 0.5em 0.8em 0.8em 2em; }
.x-form-item-label * html a:hover { background: transparent; }
.x-form-item-label .classic {background: #FFFFAA; border: 1px solid #FFAD33; }
.x-form-item-label .critical { background: #FFCCAA; border: 1px solid #FF3334;	}
.x-form-item-label .help { background: #9FDAEE; border: 1px solid #2BB0D7;	}
.x-form-item-label .info { background: #9FDAEE; border: 1px solid #2BB0D7;	}
.x-form-item-label .warning { background: #FFFFAA; border: 1px solid #FFAD33; }


/*
 20120229 For css tooltips we need to override some CSS rules of ExtJS.
 set all overflows
 to 'visible' for CSS tooltips.
 I don't really understand it, and it doesn't yet work,
 but it doesn't seem to  cause any problem.

.ext-gecko .x-window-body .x-form-item {
	overflow: hidden;
}

*/

.ext-gecko .x-window-body .x-form-item {
	overflow: visible;
}
.x-panel-body .x-panel-body-noheader {
	overflow: visible;
}
.x-panel-bwrap {
	overflow: visible;
}

.x-box-inner {
	overflow: visible;
}
.x-fieldset .x-form-label-top .x-box-item {
	overflow: visible;
}


/*
.x-tip
  .x-tip-tl
    .x-tip-tr
      .x-tip-tc
        .x-tip-header
          .x-tip-header-text
  .x-tip-bwrap
    .x-tip-ml
      .x-tip-mr
        .x-tip-mc
          .x-tip-body
.x-tip-bwrap div {
	background: #FFFFAA;
}
.x-tip-header-text { border: 0; }

.x-tip div {
	background: yellow;
}
.x-tip-bwrap div {
	background: yellow;
}
.x-tip-ml div {
	background: yellow;
}
.x-tip-mr div {
	background: yellow;
}
.x-tip-mc div {
	background: yellow;
}
.x-tip-body div {
	background: yellow;
}
*/

/* border: 1px solid #FFAD33;  */


/*
Thanks to Animal in
http://www.sencha.com/forum/showthread.php?70195-NumberField-and-Right-Alignment
*/
.x-form-num-field {
    text-align: right;
}

.field-margin {
    margin-bottom: 22px;
}


/* Lino calander CSS */
.lino-nav-cal h2 {
    margin-bottom: 2px;
}
.lino-nav-cal h2>span{
    width: 14ch;
    display: inline-block;
}
.lino-nav-cal span.cal-nav-today{

}
.cal-week {
	position: absolute;
	margin-left: -22px;
}
.cal-month-table {
/* 	display: None; */

  	visibility: hidden;
  	opacity: 0;
  	transition: visibility 0s, opacity 0.5s linear;
	position: absolute;
  	margin-left: -96px;
  	border: solid;
	box-sizing: border-box;
	background: #dfe8f6;
	z-index: 1;
	padding: 12px;
	border-color: blue;
  	display: inline-block;
}
.cal-month-table a {
	font-weight: normal;
}
.cal-month-cell div.header{
	padding-bottom: 3px;
}

/*.cal-month-cell.other-month h3 a{*/
	/*color: #5c5c5c;*/
/*}*/
.cal-month-cell.cal-in-past a {
	color: darkgray;
}
.cal-month-cell.cal-in-past div.header a {
	color: unset;
}
.cal-MonthlyView table[name="cal.MonthlyPlanner.grid"] {
	height: 100%;
}
.cal-MonthlyView table[name="cal.MonthlyPlanner.grid"] tr:nth-child(1) th{
	height: 1ch;
}
.cal-WeeklyView table[name="cal.WeeklyPlanner.grid"] td>a{
	margin-bottom: 3px;
	display: block;
}
.cal-WeeklyView table[name="cal.WeeklyPlanner.grid"] tr td:nth-child(1) {
	white-space: nowrap;
}
/*For extjs grid of cal view, never going to be used? */
.cal-MonthlyView td.x-grid3-cell:not(.x-grid3-cell-first) {
	color: #5c5c5c;
	min-height: 14ch;
	border: lightgray solid 1px;
	padding: 3px;
	box-sizing: border-box;
}

.cal-MonthlyView td.x-grid3-cell-first  {
  vertical-align: middle;
}


.lino-nav-cal span>span:hover .cal-month-table {
	visibility: visible;
	opacity: 1;
}
.other-month{
 	background-color: gainsboro;
}
.current-day{
	background-color: #fbfbfb;
}
/* Have "..." overflow*/
.fixed-table{
    width: 100%;
	height: 100%;
    table-layout: fixed;

    /*not really necessary, removes extra white space */
    border-collapse: collapse;
    border-spacing: 0;
    border: 0;
}
.fixed-table tbody{
	vertical-align: unset;
}
.fixed-table td div{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dot {
  height: 7px;
  width: 7px;
  border-radius: 50%;
	display: inline-block;
	vertical-align: middle;
	margin-right: 0.3ch;
	margin-left: 0.3ch;
	margin-bottom: 0.5ch;
}

/* end of former lino.css */

.dangling-modification {
    padding: 2px 4px;
    background: #ffff0030;
}
.unsaved-modification {
    background: red;
    /* background: #ff00ff20; */
}

.l-text-prioritaire {
    background: #f0f8ff00;
    /* color: white; */
    margin: 0;
    padding: 0 3pt;
    border: 0;
    /* border: 1px 5px;
     */
    /* border:1pt solid blue; */
}

.l-card {
    background: #f0f8ff00;
    /* box-shadow: 0 1px 3px rgba(36, 74, 53, 0.2), 0 1px 2px #14141433;
    border-radius: 3px;
    padding: 2px; */
}

.l-tiles-container {
  vertical-align:text-top;
}

.l-tile {
  position: relative; display:inline-block;
  vertical-align:text-top;
  /* width: fit-content; */
  margin:0.5em; padding: 0.5em;
  width:20em;
  background-color:#f0f8ff00;
  box-shadow: 0 1px 3px rgba(36, 74, 53, 0.2), 0 1px 2px #14141433;
  border-radius: 3px;
}

.disabled-input {
    background: cornsilk;
    padding: 2px 4px;
    /* box-shadow: 0 1px 3px rgba(74, 36, 36, 0.6), 0 1px 2px rgba(185, 0, 0, 0.54); */
}

/* .ql-snow .ql-editor p img {
    max-width: 40ch;
    max-height: 26ch;
} */

/* Introduced for preview of a certificate in prima: */

div.htmlText table {
  border-collapse: collapse;
}

div.htmlText th {
  padding:3px;
  border: 1px solid;
  text-align: left;
  background-color:#f0f8ff00;
	}

div.htmlText td {
  padding:3px;
  border: 1px solid;
  vertical-align: top;
  text-align: left;
}


.publisher-document {
  max-width: 840px;
}

/* quill textbox styles */
.ql-textbox {
  border: 2px solid #ccc;
  padding: 10px;
  margin: 10px 0;
  min-height: 60px;
  background: #fafafa;
  border-radius: 4px;
  box-sizing: border-box;
  position: relative;
  transition: border-color 0.2s;
}

.ql-textbox:hover {
  border-color: #4285f4;
}

.ql-textbox:focus-within {
  border-color: #4285f4;
  background: white;
  outline: none;
}

/* Alignment classes */
.ql-textbox-align-left {
  float: left;
  margin-left: 0;
  margin-right: 10px;
  margin-bottom: 10px;
}

.ql-textbox-align-center {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 10px;
  clear: both;
}

.ql-textbox-align-right {
  float: right;
  margin-left: 10px;
  margin-right: 0;
  margin-bottom: 10px;
}

.l-table {
  background-color: #eeeeee;
	width: 100%;
}

.l-text-cell {
    padding: 0.1em;
    text-align: left;
    vertical-align: top;
    background-color: white;
}

.l-number-cell {
    padding: 0.1em;
    text-align: right;
    vertical-align: top;
		background-color: white;
}