#tooltip {
    position: fixed;
    background: #222;
    color: #fff;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 4px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 100ms ease;
    z-index: 9999;
	font-weight: bold;
}

.dark-mode #tooltip {
	background: #FF0;
    color: #000;
}

#loginrequired {
	display: none;
	padding: 20px;
	border: 1px solid #EAEAEA;
	margin: 20px;
}

#contentwrap {
	background-color: #FFFFFF;
	width: CALC(100vw - 0px);
}

#content {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-content: flex-start;
	width: auto;
	height: auto;
	background-color: transparent;
}

#bulk-help-text > span {
	background-color: #000080;
	color: #FFFFFF;
	padding: 0px 6px;
	display: inline-block;
	margin-bottom: 3px;
	border-radius: 3px;
	font-size: 13px;
}

.help-text {
	margin-bottom: 12px;
}

a.btn {
	text-decoration: none;
}

#menucontrol > span:first-of-type {
	margin-top: 20px;
	text-align: center;
	text-transform: uppercase;
	font-family: var(--default-label-font);
	margin-bottom: 0px;
	font-size: 12px;
}


#menucontrol > p:first-of-type {
	margin-top: 20px;
	text-align: center;
	text-transform: uppercase;
	font-weight: bold;
	font-family: var(--default-label-font);
	margin-bottom: 0px;
}

#maincontent {
	flex: 1 0 320px;
	flex-shrink: 0;
	height: auto;
	overflow-y: hidden;
	min-width: 400px;
}

#preview-area {
	overflow-x: auto;
}

#preview-area table td, th {
    padding: 2px 8px; /* vertical | horizontal padding */
}

#apptoolbar {
	position: relative;
	float: right;       /* push toolbar to right */
    margin-top: 10px;
	background-color: transparent;
	align-items: flex-start;
	box-shadow: none;
	border: none;
}

#appheader {
	padding: 10px;
	margin: 0;
	text-align: center;
	border-bottom: 1px solid var(--border-color);
	user-select: none;
	display: flex;
	gap: 10px;
	justify-content: space-between;
}

#maincontent h1 {
	background-color: transparent;
	color: var(--heading-text-color);
	margin: 0;
	font-size: 28px;
	text-transform: uppercase;
	padding: 0;
	margin-bottom: 30px;
}

#maincontent h2 {
	
	background-color: transparent;
	color: var(--heading-text-color);
	margin: 30px 0 20px 0;
	font-size: 22px;
	text-transform: uppercase;
	padding: 0;
}

.section-divider {
	display: none;
}

/* FORMS ====================================================== */

h3,
.label,
label {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
	margin-top: 16px;
    font-weight: 600;
	text-transform: uppercase;
	color: #2C5F2D;
	font-family: var(--heading-font-family);
}

h3 {
	margin-bottom: 12px;
	font-weight: 800;
	color: #6F2C2D;
}

#maincontent label {
    font-size: 15px;
	margin-top: 20px;
}

input[type="text"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
select {
    width: 100%;
    padding: 6px 8px;
    font-size: 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.field-row {
    margin-bottom: 22px;
	margin-top: 16px;
}

.field-selection-panel {
    background: #ffffff;
	margin-top: 30px;
	padding: 0 10px;
}

.columns-list-note,
.field-selection-panel p {
	font-size: 13px;
	text-align: justify;
}

.field-selection-panel .btn {
    width: 100%;
}

.panel-config, .panel-export {
    padding: 10px;
    border-radius: 4px;
    border: 0px solid #BBBBBB;
}
.panel-export {
    background-color: #FFFFFF;
}

/* COLUMN LIST ================================================= */

.columns-list {
    background: #fafafa;
    padding: 8px;
    max-height: 220px;
    overflow-y: auto;
    border-radius: 4px;
    box-shadow: inset 0 0 0 1px #e5e5e5;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
	margin-bottom: 20px;
}

.columns-list:hover {
    scrollbar-color: #D0D0D0 transparent;
}

.columns-list::-webkit-scrollbar {
    width: 6px;
}

.columns-list::-webkit-scrollbar-track {
    background: transparent;
}

.columns-list::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 3px;
}

.columns-list:hover::-webkit-scrollbar-thumb {
    background: #D5D5D5;
}

.columns-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}
.columns-list-item:hover {
    background: #f0f4ff;
}

.columns-list-labels {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}
.columns-list-label-main {
    font-weight: 500;
    font-size: 13px;
}
.columns-list-label-key {
    font-family: monospace;
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

/* DRAGGABLE COLUMNS ========================================== */

.col-drag-handle {
    cursor: grab;
    font-size: 18px;
    padding: 2px 4px;
    user-select: none;
}

.drag-over {
    outline: 2px dashed #4b7bec;
}

.selected-columns-table td,
.selected-columns-table th {
    vertical-align: middle;
    padding: 6px 8px;
}

.selected-columns-table input.header-input {
    margin: 0;
    height: 30px;
    box-sizing: border-box;
}

.selected-columns-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.selected-columns-table thead th {
	text-align: left;
	padding: 8px 10px;
	border-bottom: 0px solid #ddd;
	background-color: #f5f5f5;
	font-weight: 600;
}

.selected-columns-table tbody td {
	padding: 8px 10px;
	border-bottom: 0px solid #e3e3e3;
	vertical-align: middle;
}

.selected-columns-table tbody tr:nth-child(even) {
	background-color: #fafafa;
}

.selected-columns-table tbody tr:hover {
	background-color: #f0f6ff;
}

.selected-columns-table .col-drag-handle {
	cursor: grab;
	color: #888;
	user-select: none;
}

.selected-columns-table .col-drag-handle:active {
	cursor: grabbing;
}

.selected-columns-table .header-input {
	width: 100%;
	padding: 6px 8px;
	border: 1px solid #EFEFEF;
	border-radius: 4px;
	font-size: 13px;
	box-sizing: border-box;
}

.selected-columns-table .header-input:focus {
	outline: none;
	border-color: #5b9dd9;
	box-shadow: 0 0 0 1px rgba(91, 157, 217, 0.3);
}


/* PANELS ===================================================== */

.tools-panel {
	padding: 20px 24px;
}

.add-domain-panel {
    background: #FFFFFF;
    padding: 20px 24px;
}

#menucontrol {
	position: relative;
}

.form-actions {
	display: flex;
	flex-direction: row;
	justify-content: flex-end;
	gap: 10px;
}

#bulk-add-container,
#single-add-container {
	padding: 0px;
	border: 0px solid var(--border-color);
}

.submit-status-text:empty {
	display: none;
}

.submit-status-text {
	margin-top: 10px;
	text-align: right;
	font-family: var(--default-label-font);
	font-size: 14px;
}

textarea {
	padding: 10px;
	border-radius: 5px;
}

#domaindata {
	padding-right: 20px;
}

.dataset-row-buttons {
	display: flex;
    flex-direction: row-reverse;
    gap: 20px;
    justify-content: space-between;
}

.dataset-row-buttons > .btn {
	padding: 2px 10px;
}

.preview-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13px;
}

.preview-table thead th {
	text-align: left;
	padding: 4px 8px;
	font-weight: 600;
	color: #444;
	background-color: #f6f6f6;
}

.preview-table tbody td {
	padding: 3px 8px;
	white-space: nowrap;
}

.preview-table tbody tr:nth-child(even) {
	background-color: #fafafa;
}

.preview-table tbody tr:hover {
	background-color: #f0f4ff;
}

.computed-item {
	display: flex;
    flex-direction: column;
    gap: 10px;
}

.tools-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.dark-mode .tool-box {
	background-color: #202030;
	color: #FFFFFF;
}

.dark-mode .tool-content p {
	color: #FFFFFF;
}

.tool-box {
    display: flex;
    align-items: center;
    gap: 32px;
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: background 120ms ease, box-shadow 120ms ease;
}

.tool-box:hover,
.tool-box:focus {
    background: #f7f9fb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    outline: none;
}

.dark-mode .tool-box:hover,
.dark-mode .tool-box:focus {
    background: #303040;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    outline: none;
}

.tool-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
	background-size: 32px 32px;
	background-repeat: no-repeat;
	background-position: 0px 0px;
}

.tool-content h3 {
    margin: 0 0 6px 0;
    font-size: 16px;
}

.tool-content p {
    margin: 0;
    font-size: 13px;
    color: #555;
}

.tool-add-domains .tool-icon {
    background-image: url("../../lib/layouts/colors/light/images/64/toolbar/add-circle-outline.png");
}

.tool-export-domains .tool-icon {
    background-image: url("../../lib/layouts/colors/light/images/64/toolbar/export.png");
}

.tool-portfolio-domains .tool-icon {
    background-image: url("../../lib/layouts/colors/light/images/64/toolbar/portfolio.png");
}

.tool-wcag .tool-icon {
    background-image: url("../../lib/layouts/colors/light/images/64/toolbar/accessibility.png");
}
.tool-lighthouse .tool-icon {
    background-image: url("../../lib/layouts/colors/light/images/64/toolbar/lighthouse.png");
}

.tool-diagnostics .tool-icon {
    background-image: url("../../lib/layouts/colors/light/images/64/toolbar/diagnostics.png");
}

body.dark-mode .tool-add-domains .tool-icon {
    background-image: url("../../lib/layouts/colors/dark/images/64/toolbar/add-circle-outline.png");
}

body.dark-mode .tool-export-domains .tool-icon {
    background-image: url("../../lib/layouts/colors/dark/images/64/toolbar/export.png");
}

body.dark-mode  .tool-diagnostics .tool-icon {
    background-image: url("../../lib/layouts/colors/dark/images/64/toolbar/diagnostics.png");
}

body.dark-mode .tool-portfolio-domains .tool-icon {
    background-image: url("../../lib/layouts/colors/dark/images/64/toolbar/portfolio.png");
}

body.dark-mode .tool-wcag .tool-icon {
    background-image: url("../../lib/layouts/colors/dark/images/64/toolbar/accessibility.png");
}

body.dark-mode .tool-lighthouse .tool-icon {
    background-image: url("../../lib/layouts/colors/dark/images/64/toolbar/lighthouse.png");
}

body.dark-mode .tools-dev-note {
    background: #1e1e1e;
    border-color: #3a3a3a;
    color: #aaa;
}

.tools-dev-note {
    margin-top: 24px;
    padding: 12px 16px;
    border: 1px solid var(--border-color, #e0e0e0);
    border-radius: 5px;
    font-size: 13px;
    color: var(--text-muted, #888);
    background: var(--row-bg, #f9f9f9);
}

.tools-dev-note code {
    background-color: #e8f0ff;
    color: #2a5bd7;
    padding: 1px 7px;
    border-radius: 20px;
    border: none;
	font-size: 13px;
	font-family: inherit;
}

body.dark-mode .tools-dev-note code {
    background-color: #1e2a4a;
    color: #7aa4f7;
}

@media screen and (min-width: 640px) {
    #maincontent {
        padding-left: 20px;
    }
}

@media screen and (max-width: 640px) {
	#menucontrol {
		width: 100%;
		display: block;
	}
	#maincontent {
		height: auto;
		padding-left: 0px;
	}
	
	#content {
		padding-right: 10px;
	}
	.add-domain-panel,
	#domaindata {
		padding: 10px;
	}
}

.tool-disabled {
	opacity: 0.7;
	cursor: default;
}

.tool-disabled .tool-content h3 {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.tool-pill {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.4;
	background: #ececec;
	color: #444;
	vertical-align: middle;
	pointer-events: none;
}