#main a {
    color: #2165AD;
    text-decoration: none;
    cursor: pointer;
}

#main a:hover {
    text-decoration: underline;
}

.iden {
    margin-left: 20px;
    display: inline-block;
}

#firstline {
    display: flex;
    justify-content: space-between;
}

#main form#mod {
    background-color: wheat;
    border: 1px solid black;
    display: table;
    min-width: 90%;
    padding: 3px;
}

#main form#mod div {
    display: table-row;
}

#main #mod label,
#main #mod input,
#main #mod textarea {
    display: table-cell;
}

#main #mod label {
    text-align: right;
    width: 10%;
    vertical-align: middle;
}

#main #mod input:not([type=submit]),
#main #mod textarea {
    text-align: left;
}

#main #mod input:not([type=submit]):not(.nowidth),
#main #mod textarea {
    width: 90%;
}

#main #mod textarea {
    height: 50px;
}

#main #advertencia,
#main #advertenciaautors,
#main #advertenciaedicions {
    color: red;
}

#main #formautors {
    background-color: wheat;
    border: 1px solid black;
    padding: 3px;
    width: fit-content;
}

#formautors select {
    width: 100%;
}

#main #formautors th:nth-child(1),
#main #formautors td:nth-child(1) {
    width: 34px;
}

#main #formautors th:nth-child(2) {
    width: 170px;
}

#main #formautors td:nth-child(3),
#main #formautors th:nth-child(3) {
    width: 400px;
}

#main #formautors td:nth-child(3) input {
    width: 100%;
}

#main #formedicions {
    background-color: wheat;
    border: 1px solid black;
    padding: 3px;
    width: fit-content;
}

#main #formedicions img:hover {
    cursor: pointer;
    background-color: white;
}

#formedicions th,
#formedicions td {
    width: 173px;
    text-align: center;
}

#formedicions th:nth-child(1),
#formedicions td:nth-child(1) {
    width: 44px;
}

#formedicions th:nth-child(2),
#formedicions th:nth-child(3),
#formedicions th:nth-child(5),
#formedicions td:nth-child(2),
#formedicions td:nth-child(3),
#formedicions td:nth-child(5) {
    width: 61px;
}

#formedicions th:nth-child(7),
#formedicions td:nth-child(8) {
    width: 200px;
}

#formedicions td:nth-child(7) input[type=text] {
    width: 100%;
}

#formedicions td:nth-child(8) input[type=text] {
    width: 100%;
}

#formedicions th:nth-child(10),
#formedicions td:nth-child(10) {
    text-align: center;
    width: 30px;
}

#formedicions th:nth-child(11),
#formedicions td:nth-child(11),
#formedicions th:nth-child(12),
#formedicions td:nth-child(12) {
    text-align: center;
    width: fit-content;
}

#main #citen {
    display: none;
}

#main .citen {
    color: #2165AD;
    cursor: pointer;
    text-decoration: none;
}

#main .citen:hover {
    text-decoration: underline;
}

#main .red {
    color: red;
}

/*
ul {
    margin-top: 4px;
    margin-bottom: 4px;
}
*/

#main td:first-child {text-align: right;}
#main table.cataleg {padding:11px 0;width: 66%;}
#main table.cataleg td:first-child {background: #ddd;width: 88px; vertical-align: top;}
#main table.cataleg td {background: #eee}
#main table.llulldb td:first-child {background: #add;}
#main table.llulldb td {background: #aee}
#main ul {list-style-type: none; border: 1px solid gray;}
#main li {text-indent: -22px;}

/* etiquetes i llistats del catàleg CDRL (#9, #10) */
#submenu-cdrl { margin: 0.5em 0; }
#etiquetes-cdrl { margin: 0.5em 0 1em; line-height: 1.8; }
#etiquetes-cdrl small { color: #666; }
#main h2 { display: flex; justify-content: space-between; }
#main h2 span:last-child { font-size: 0.7em; font-weight: normal; margin: auto 0; }
.llista-cdrl li { margin: 0.25em 0; }
.llista-cdrl small { color: #666; }
.paginacio { margin: 0.5em 0; }
.paginacio a, .paginacio b { margin-right: 0.4em; }
.etiquetes-fitxa { margin: 0.5em 0 1em; }
#main form.form-etiquetes { display: block; width: auto; background: wheat; border: 1px solid black; padding: 8px; margin-bottom: 1em; }
#main form.form-etiquetes .caselles { display: flex; flex-wrap: wrap; gap: 0.3em 1.2em; margin: 0.5em 0; }
#main form.form-etiquetes label { white-space: nowrap; }
