@font-face {
    font-family: "calibri";
    src: url('/font/calibri-regular.ttf');
}

html, body {
    font-family: 'calibri';
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #f0f0f0;
    font-size: 62.5%;
    height: 100%;
}

.hide {
    display: none;
}

.invisible {
    visibility: hidden;
}

.center {
    text-align: center;
    justify-content: center;
}

.link {
  color: #007bff;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.link:hover {
  text-decoration: underline;
  color: #0056b3;
}

.link:visited {
  color: #5a3e85;
}

.link:active {
  color: #ff0000;
}

h1 {
    font-size: 20px;
    font-size: 2.0rem;
}

h1.title_page {
    text-align: center;
    justify-content: center;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    margin: 0;
    border: 1px solid block;
    background: #f0f0f0;
    height: 67px;
    z-index: 999;
    line-height: 67px;
    border: 1px solid black;
    border-radius: 10px;
    display: flex;
    align-items: center;
}

h1.title_page img {
    vertical-align: middle;
    max-height: 45px;
}

h1 span {
    font-weight: normal;
}

h2 {
    font-size: 18px;
    font-size: 1.8rem;
    margin: 0;
}

h2 span {
    font-weight: normal;
}

.content_page {
    margin-top: 80px;
}

p, label {
    font-size: 20px;
    font-size: 2.0rem;
}

.menu-burger {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 1000;
    font-size: 20px;
    font-size: 2.0rem;
}

.burger-icon img {
    max-height: 45px;
    cursor: pointer;
}

.menu-content {
    position: absolute;
    top: 50px;
    left: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 6px;
    display: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu-content li {
    border-bottom: 1px solid #eee;
}

.menu-content li:last-child {
    border-bottom: none;
}

.menu-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.menu-content a:hover {
    background-color: #f2f2f2;
}

.menu-content a.selected {
    background-color: #3498db;
    color: white;
}

.buttons {
    padding: 10px;
}

p {
    padding: 0px 10px;
}

button {
    font-size: 1.6rem;
    padding: 10px 20px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

button:hover {
    background-color: #2980b9;
}

button:active {
    background-color: #2471a3;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

button:disabled {
    background-color: #bdc3c7;
    cursor: not-allowed;
    color: #eee;
}

button.cancel {
    background-color: #eee;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 1.6rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

button.cancel:hover {
    background-color: #ddd;
}


.block_add {
    padding: 0 10px;
}

input[type="text"],
textarea {
    font-size: 20px;
    font-size: 2rem;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    color: #333;
    width: 100%;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.4);
}

textarea {
    display: block;
    min-height: 100px;
    resize: vertical;
}

.branch {
    padding: 10px;
    margin: 10px 0;
}

.leaf {
    padding: 6px 2px 6px 6px;
    margin-top: 5px;
    border: 1px solid grey;
    border-radius: 6px;
}

.branch div.title, 
.leaf div.title,
.user .name { 
    display: flex;
    align-items: center;
}

.branch img,
.leaf img,
.role img,
.user img { 
    height: auto;
    width: auto;
    cursor: pointer;
    max-height: 32px;
}

.branch.family {
    background-color: #f9f9f9;
    border: 1px solid grey;
    border-radius: 6px;
}

.branch.family > .title {
    color: #000;
    font-weight: bold;
    font-size: 2.0rem;
    gap: 5px;
}

.branch.family.disabled {
    background-color: #BBBBBB;
}

.branch.family.disabled > .title {
    color: grey;
}

.branch.family > .title .nb {
    position: absolute;
    right: 13px;
}

.branch.activity {
    background-color: #d0e8fa;
    border-radius: 6px;
    margin-left: 10px;
    border: 1px solid grey;
}

.branch.activity > .title {
    color: #1c6eb8;
    font-weight: 600;
    font-size: 1.6rem;
    gap: 5px;
}

.branch.activity.disabled {
    background-color: #BBBBBB;
}

.branch.activity.disabled > .title {
    color: grey;
}

.branch.activity > .title .nb {
    position: absolute;
    right: 22px;
}


.leaf.task {
    background-color: #dfe6e9;
    margin-left: 10px;
}

.leaf.task > .title {
    color: #333;
    font-size: 1.4rem;
    gap: 5px;
    flex-direction: column;
}

.leaf.task span.role {
    font-weight: bold;
}

.role {
    padding: 10px;
    margin: 10px;
    background: white;
    border: 1px solid black;
    border-radius: 10px;
}

.role  span {
    font-weight: bold;
}

.role .label {
    font-size: 20px;
    font-size: 2.0rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.role .description,
.role .definition {
    font-size: 16px;
    font-size: 1.6rem;
}

.user {
    padding: 10px;
    margin: 10px;
    background: white;
    border: 1px solid black;
    border-radius: 10px;
}

.user .name {
    font-size: 20px;
    font-size: 2.0rem;
    gap: 10px;
    font-weight: bold;
}

.form {
  position: fixed;
  top: 80px;
  bottom: 20px;
  left: 20px;
  right: 20px;

  padding: 10px;
  text-align: center;

  background: #fff;
  border: 4px solid #000;
  border-radius: 20px;

  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}


.attribute .form .title {
    background-position: 0px center;
    background-repeat: no-repeat;
    background-size: 30px 30px;
    margin: 0 0 10px 0;
    padding-left: 40px;
}

.form .title p {
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid black;
    padding: 10px;
    min-height: 20px;
}

.form .title.family {
    background-image: url("../img/picto_family.png");
}

.form .title.family p {
    justify-content: center;
    font-size: 20px;
    font-size: 2.0rem;
    font-weight: bold;
}

.form .title.activity {
    background-image: url("../img/picto_activity.png");
}

.form .title.activity p {
    justify-content: center;
    font-size: 16px;
    font-size: 1.6rem;
    color: #1c6eb8;
    background-color: #d0e8fa;
    font-weight: 600;
}

.form .title.task {
    background-image: url("../img/picto_task.png");
}

.form .title.task p {
    text-align: left;
    color: #333;
    background-color: #dfe6e9;
    font-size: 14px;
    font-size: 1.4rem;
}

.menu {
    position: absolute;
    z-index: 1000;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.menu.family {
    background: white;
    border: 1px solid #333;
}

.menu.activity {
    background: #d0e8fa;
    border: 1px solid black;
}

.menu.task {
    background: #dfe6e9;
    border: 1px solid grey;
}

.menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.menu ul li {
    font-size: 14px;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px 14px 8px 9px;
}

.menu.family ul li {
    border-bottom: 1px solid #333;
}

.menu.activity ul li {
    border-bottom: 1px solid black;
}

.menu.task ul li {
    border-bottom: 1px solid grey;
}


.menu ul li.title {
    text-align: center;
}

.menu ul li.title span {
    font-size: 18px;
    font-size: 1.8rem;
    font-weight: bold;
}

.checkbox_list {
    display: inline-flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
    margin: 0 auto;
    border: 1px solid black;
    border-radius: 10px;
    padding: 20px;
}

.checkbox_list div {
    display: flex;
    gap: 5px; 
    align-items: center;
    font-size: 16px;
    font-size: 1.6rem;
}
.checkbox_list div img {
    vertical-align: middle;
    max-height: 20px;
    cursor: pointer;
}

.block {
    background-color: #f9f9f9;
    border: 1px solid grey;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 10px;
}

.block h1 img,
.block h2 img {
    vertical-align: sub;
    max-height: 20px;
    cursor: pointer;
}

.block p {
    font-size: 14px;
    font-size: 1.4rem;
    margin: 0;
    padding: 0;
}

.role_block {
    background-color: #f9f9f9;
    border: 1px solid grey;
    border-radius: 6px;
    margin-bottom: 10px;
    padding: 0 10px 10px 10px;
}

.role_block ul li {
    font-size: 14px;
    font-size: 1.4rem;
}

table.raci_structure {
    font-size: 16px;
    font-size: 1.6rem;
}

table.raci_structure th {
    white-space: nowrap;
}

table.raci_structure th.ASC::after {
    content: " ↓";
}

table.raci_structure th.DESC::after {
    content: " ↑";
}

tr.select td {
    background-color: lightGreen;
}

td.select {
    background-color: green !important;
    font-weight: bold;
}

.block_family, 
.block_activity, 
.block_task, 
.block_role,
.block_users,
.block_user,
.block_circles,
.block_circle,
.block_role {
    border: 1px solid black;
    border-radius: 10px;
    padding: 5px;
}

.block_role {
    margin-bottom: 5px;
}

.block_users {
    margin-top: 5px;
}

.block_family::before, 
.block_activity::before, 
.block_task::before,
.block_user::before,
.block_circle::before,
.block_role::before,
.block_users .checkbox::before {
    content: "";
    display: inline-block;
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.block_family, .block_user, .block_circle {
    font-size: 20px;
    font-size: 2.0rem;
    text-align: left;
    font-weight: bold;
    margin-bottom: 10px;
    background: white;
}

.block_role {
    font-size: 20px;
    font-size: 2.0rem;
    text-align: left;
    margin-bottom: 10px;
    background: white;
    padding-top: 10px;
}

.block_activity {
    color: #1c6eb8;
    font-weight: 600;
    font-size: 1.6rem;
    background-color: #d0e8fa;
    margin-top: 10px;
}

.block_task {
    color: #333;
    font-size: 14px;
    font-size: 1.4rem;
    font-weight: 600;
    background-color: #dfe6e9;
    margin-top: 10px;
    line-height: 30px;
}

.block_family::before {
    background-image: url("../img/picto_family.png");
    width: 30px;
    height: 30px;
}

.block_circle::before {
    background-image: url("../img/picto_circle.png");
    width: 30px;
    height: 30px;
}

.block_user::before {
    background-image: url("../img/picto_user.png");
    width: 30px;
    height: 30px;
}

.block_activity::before {
    background-image: url("../img/picto_activity.png");
    width: 30px;
    height: 30px;
}

.block_task::before {
    background-image: url("../img/picto_task.png");
    width: 30px;
    height: 30px;
    margin-right: -5px;
}

.block_role::before {
    background-image: url("../img/picto_role.png");
    width: 30px;
    height: 30px;
    margin: 0px 0px 0px 10px;
}

.block_users .checkbox.checked::before {
    background-image: url("../img/checked.png");
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.block_users .checkbox.unchecked::before {
    background-image: url("../img/unchecked.png");
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

.block_role span {
    font-weight: bold;
}

.block_users {
    font-size: 16px;
    font-size: 1.6rem;
    text-align: left;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
}

.block_users.cols_2 {
    grid-template-columns: repeat(2, 1fr);
}

.block_users .checkbox {
    display: flex;
    text-align: left;
    justify-self: start;
    justify-content: flex-start;
    padding-left: 5px;
    align-items: center;
    cursor: pointer;
}

.block_family img, .block_user img, .block_role img, .block_circle img
{width: 20px; vertical-align: sub; cursor: pointer;}

.name_role {
    background: white;
    padding: 4px 10px;
    font-weight: bold;
    border: 1px solid black;
    border-radius: 10px;
}

img.close {
    width: 32px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
}

span.toggle {
    background-repeat: no-repeat;
    background-position: center 0px;
    background-size: 20px;
    width: 20px;
    height: 20px;
    display: inline-block;
    cursor: pointer;
}

span.open {
    background-image: url("../img/close.png");
}

span.close {
    background-image: url("../img/open.png");
}

#automenu {
    position: absolute;
}

ul {
    margin: 0 0 0 20px;
    padding: 0;
    font-size: 16px;
    font-size: 1.6rem;
}
