:root {
    --bs-body-font-size: 0.9rem !important; /* Override Bootstrap default */
    --faded: #999; /* Faded */
}

/* Base font */

@font-face {
    font-family: "Droid Sans";
    src: url(/fonts/droid-sans.ttf);
}

body {
    font-family: "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
}

#metadata { /* CRUD metadata shown at the top of an edit form */
    font-size: 0.8em;
    margin-bottom: 1em;
    color: var(--faded);
}

input::placeholder,
textarea::placeholder { /* Placeholder text */
    color: var(--faded) !important;
    font-style: italic;
}

/* Use the default font size for ALL page elements */

.form-control,
.form-select,
.btn,
.input-group-text {
    font-size: var(--bs-body-font-size) !important;
}

/* Headers */

h1, h2, h3,
.h1, .h2, .h3 {
    border-bottom: 1px solid;
    padding-bottom: 0.5rem;
    margin-bottom: 0.5rem;
}

h1, .h1 {
    font-size: 1.8rem;
}

h2, .h2 {
    font-size: 1.4rem;
}

h3, .h3 {
    font-size: 1.2rem;
}

/* List views */

#filter_box {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 6px 12px;
    margin: 12px 0;
}

thead {
    font-weight: bold;
    border-bottom: 2px solid black;
}

tfoot {
    font-weight: bold;
    border-top: 2px solid black;
}

table.dataTable > thead > tr > th { /* Override DataTable padding */
}

/* Icon chooser */

.icon-chooser {
    color: #999;
    font-size: 120%;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.icon-chooser:hover {
    color: #333;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #eee;
}

.icon-chosen {
    margin-bottom: 8px;
    cursor: pointer;
}

.icon-chosen .bi {
    font-size: 150%;
    padding: 4px;
    border: 1px solid #ccc;
}

.icon-grid {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 4px;
    margin: 4px 0;
}

/* Links */

a, a:visited {
    text-decoration: none !important;
}

/* Time report */

tr.bg-client td {
    background-color: var(--faded);
}

/* Quill overrides */

.ql-toolbar {
    border-top: 1px solid var(--faded);
    border-left: 1px solid var(--faded);
    border-right: 1px solid var(--faded);
    border-radius: 6px 6px 0 0;
}

.ql-container {
    font-family: "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif !important;
    font-size: var(--bs-body-font-size) !important;
    border-bottom: 1px solid var(--faded);
    border-left: 1px solid var(--faded);
    border-right: 1px solid var(--faded);
    border-radius: 0 0 6px 6px;
}

.ql-container {
    height: calc(100% - 42px); /* Account for toolbar height */
}
