/*
 * ATELIER — A refined workspace theme for Redmine 7
 * Version 1.0.0 | 2 November 2026 | SPDX-License-Identifier: MIT
 * Copyright (c) 2026 F1 Technology LTD
 * Permission is granted, free of charge, to use, copy, modify, distribute,
 * sublicense and sell this stylesheet, provided this notice is retained.
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
 * This license covers this stylesheet only, not Redmine or its assets.
 *
 * INSTALL: themes/atelier/stylesheets/application.css (Redmine application root).
 * Restart Passenger, then choose Atelier in Administration > Settings > Display.
 * Retains Redmine's base CSS, native SVG icons, JS behavior and responsive menu.
 * No remote fonts, images, JavaScript, plugins or build tools required.
 * Change the --at-* tokens below to customize the palette and density.
 * Designed for Redmine 7; validate third-party plugins on a staging instance.
 */
@import url("/assets/application-744365ca.css");

:root {
  color-scheme: light;
  --at-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --at-canvas: #f3f6fa;
  --at-surface: #ffffff;
  --at-surface-soft: #f8fafc;
  --at-ink: #17263b;
  --at-muted: #586a80;
  --at-line: #dce4ed;
  --at-navy: #12263f;
  --at-navy-deep: #0c1b2e;
  --at-brand: #087f80;
  --at-brand-hover: #056568;
  --at-brand-soft: #e6f5f3;
  --at-link: #086d85;
  --at-danger: #b42338;
  --at-success: #186443;
  --at-radius: 12px;
  --at-radius-sm: 7px;
  --at-shadow: 0 3px 14px rgb(19 38 62 / 5%);
  --at-focus: #247abf;
  /* Redmine 7 also consumes these for the responsive header. */
  --color-header-background: #12263f;
  --color-top-menu-background: #0c1b2e;
}

/* Foundation: do not alter Redmine's structural display/position rules. */
html { background: var(--at-canvas); }
body {
  color: var(--at-ink);
  background: var(--at-canvas);
  font-family: var(--at-font);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
input, select, textarea, button { font-family: inherit; }
a, a:link, a:visited { color: var(--at-link); }
a:hover, a:active { color: var(--at-brand-hover); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--at-focus);
  outline-offset: 3px;
}
::selection { background: #c8e9e9; color: #12263f; }
h1, h2, h3, h4 { font-family: inherit; color: var(--at-ink); }
#content > h2, #content > .contextual + h2 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: -.6px;
  line-height: 1.3;
  padding-block-end: 18px;
  margin-block-end: 24px;
  border-bottom: 1px solid var(--at-line);
}
h3 { font-size: 17px; font-weight: 650; }
h4 { font-size: 14px; font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--at-line); }
.description, .wiki { line-height: 1.7; }
.wiki img { max-width: 100%; height: auto; }
.wiki pre, .wiki code, .journal pre { font-size: 12px; }
pre, code, kbd, samp { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
pre {
  background: var(--at-surface-soft);
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-sm);
  padding: 16px;
  overflow-x: auto;
}
.wiki blockquote { border-inline-start: 3px solid #a9d4d3; color: var(--at-muted); }

/* Navigation: retain native menus, nesting, icons and mobile controls. */
#top-menu {
  background: var(--at-navy-deep);
  color: #d7e4f1;
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  font-size: 12px;
}
#top-menu a, #top-menu a:visited { color: #d7e4f1; }
#top-menu a:hover { color: #fff; }
#header {
  background: var(--at-navy);
  color: #fff;
  border-bottom: 1px solid #253f5d;
}
#header h1 { color: #fff; font-weight: 650; letter-spacing: -.5px; }
#header a, #header a:visited { color: #eef7ff; }
#header .breadcrumbs { color: #b8cce0; }
#header #quick-search { color: #d7e4f1; }
#header #quick-search input {
  background-color: #1b3551;
  color: #fff;
  border: 1px solid #526a84;
  border-radius: var(--at-radius-sm);
}
#header #quick-search input::placeholder { color: #c3d0df; }
#main-menu { background: transparent; }
#main-menu ul li a {
  border-radius: 7px 7px 0 0;
  font-weight: 600;
  padding: 9px 13px;
}
#main-menu ul li a:hover { background: #25415f; color: #fff; }
#main-menu ul li a.selected, #main-menu ul li a.selected:hover {
  background: var(--at-canvas);
  color: var(--at-ink);
}
#main-menu .menu-children, #main-menu ul ul {
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-sm);
  box-shadow: 0 12px 28px rgb(12 27 46 / 16%);
}
#main-menu .menu-children a, #main-menu ul ul a { color: var(--at-ink); }
#main-menu .menu-children a:hover, #main-menu ul ul a:hover {
  background: var(--at-brand-soft);
  color: var(--at-brand-hover);
}
.drdn-content {
  background-color: var(--at-surface);
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius-sm);
  box-shadow: 0 12px 28px rgb(12 27 46 / 14%);
}
.drdn-content a, #header .drdn-content a { color: var(--at-link); }
.drdn-content a:hover, #header .drdn-content a:hover {
  background-color: var(--at-brand-soft);
  color: var(--at-brand-hover);
}

/* Workspace and sidebar */
#main { background: var(--at-canvas); }
#content {
  background: var(--at-surface);
  border-color: var(--at-line);
  padding: 26px;
  min-width: 0;
}
#sidebar { color: var(--at-muted); padding: 22px 18px; }
#sidebar h3 {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #52647b;
  margin-block: 24px 12px;
}
#sidebar h3:first-child { margin-block-start: 0; }
#sidebar ul { line-height: 1.85; }
#sidebar a { text-decoration: none; }
#sidebar a.selected {
  background: var(--at-brand-soft);
  color: var(--at-brand-hover);
  border-radius: 5px;
  font-weight: 650;
}
#sidebar p { font-size: 12px; }
#footer {
  background: var(--at-canvas);
  color: var(--at-muted);
  border-top: 1px solid var(--at-line);
  padding: 20px;
  font-size: 11px;
}
.box, .news.box, #my-page .mypage-box {
  background-color: var(--at-surface-soft);
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  padding: 18px;
  box-shadow: none;
}
fieldset { border-color: var(--at-line); border-radius: var(--at-radius-sm); }
legend { color: var(--at-muted); font-weight: 650; padding-inline: 7px; }
.contextual { font-size: 12px; line-height: 2; }
.contextual a { font-weight: 600; }
.nodata, .warning {
  background: #fffae9;
  color: #79551b;
  border: 1px solid #ead79e;
  border-radius: var(--at-radius-sm);
  padding: 14px 18px;
}
p.other-formats { color: var(--at-muted); font-size: 11px; }

/* Forms: native checkboxes, radio buttons and file controls remain native. */
input[type="text"], input[type="password"], input[type="email"],
input[type="url"], input[type="number"], input[type="search"],
input[type="tel"], input[type="date"], input[type="datetime-local"],
select, textarea {
  color: var(--at-ink);
  background-color: var(--at-surface);
  border: 1px solid #aebdce;
  border-radius: var(--at-radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.4;
  max-width: 100%;
  box-sizing: border-box;
}
input:focus, select:focus, textarea:focus { border-color: var(--at-brand); }
textarea { line-height: 1.65; }
input[type="checkbox"], input[type="radio"] { accent-color: var(--at-brand); }
input:disabled, select:disabled, textarea:disabled {
  background-color: #eef2f6;
  color: #66758a;
  cursor: not-allowed;
}
input[readonly], textarea[readonly] { background-color: var(--at-surface-soft); }
.tabular label { font-weight: 600; color: #36475d; }
.tabular p { padding-block: 5px; }
.required { color: var(--at-danger); }
.info, .help, em.info { color: var(--at-muted); font-size: 12px; }
input[type="submit"], input[type="button"], input[type="reset"],
button:not(.ui-dialog-titlebar-close):not(.flyout-menu__toggle-button) {
  border: 1px solid #aebdce;
  border-radius: var(--at-radius-sm);
  background-color: var(--at-surface);
  color: var(--at-ink);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
input[type="submit"] {
  background: var(--at-brand);
  border-color: var(--at-brand);
  color: #fff;
  box-shadow: 0 2px 3px rgb(8 127 128 / 12%);
}
input[type="submit"]:hover { background: var(--at-brand-hover); border-color: var(--at-brand-hover); }
input[type="button"]:hover, input[type="reset"]:hover { background-color: #edf2f7; }
input[type="submit"]:disabled, button:disabled { opacity: .55; cursor: not-allowed; }
.field_with_errors input, .field_with_errors select,
.field_with_errors textarea { border-color: var(--at-danger); background-color: #fff8f9; }
#errorExplanation, .flash {
  border-radius: var(--at-radius-sm);
  padding: 14px 18px 14px 38px;
}
#errorExplanation, .flash.error { border: 1px solid #edb8c0; background-color: #fff0f2; color: #8f2032; }
.flash.notice { border: 1px solid #b6dbc9; background-color: #edf9f2; color: #185638; }
.flash.warning { border: 1px solid #ead79e; background-color: #fffae9; color: #79551b; }

/* Lists: retain semantic tables, column widths and horizontal scrolling. */
table.list {
  border: 1px solid var(--at-line);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--at-radius-sm);
  background: var(--at-surface);
  overflow: hidden;
  font-size: 13px;
}
table.list th {
  background: #eef3f8;
  color: #43566e;
  font-weight: 650;
  border-bottom: 1px solid var(--at-line);
  padding: 11px 9px;
}
table.list th a { color: inherit; }
table.list td { padding: 10px 9px; border-bottom: 1px solid #e9eef4; }
table.list tr:last-child td { border-bottom: 0; }
table.list tbody tr.odd { background-color: #fff; }
table.list tbody tr.even { background-color: #f9fbfd; }
table.list tbody tr:hover { background-color: #edf6f8; }
table.list tbody tr.context-menu-selection {
  background-color: #d9eeef;
  color: var(--at-ink);
}
table.list tbody tr.context-menu-selection a { color: #075b6b; }
table.list td.subject a { font-weight: 600; }
table.list tr.group td { background: #e9f0f6; font-weight: 700; color: #354b66; }
table.list tr.issue.closed td.subject a { color: #6b7788; }
table.list tr.issue.overdue td.due_date { color: var(--at-danger); font-weight: 700; }
table.list tr.issue.priority-highest td.priority { color: var(--at-danger); font-weight: 700; }
.autoscroll { scrollbar-color: #b5c5d6 transparent; scrollbar-width: thin; }
.pagination { margin-block: 18px; color: var(--at-muted); }
.pagination ul.pages li { border-color: var(--at-line); border-radius: 5px; }
.pagination ul.pages li.current { background: var(--at-brand); color: #fff; border-color: var(--at-brand); }

/* Tabs, query filters and administration */
.tabs { border-bottom-color: var(--at-line); }
.tabs ul li a {
  background: var(--at-surface-soft);
  border-color: var(--at-line);
  border-radius: 7px 7px 0 0;
  color: var(--at-muted);
  padding: 8px 14px;
  font-weight: 600;
}
.tabs ul li a:hover { background: var(--at-brand-soft); color: var(--at-brand-hover); }
.tabs ul li a.selected { background: #fff; border-bottom-color: #fff; color: var(--at-brand-hover); }
#query_form fieldset { background: var(--at-surface-soft); }
#query_form .buttons { margin-block: 12px; }
#admin-menu a { border-radius: 5px; }
#admin-menu a.selected { background-color: var(--at-brand-soft); color: var(--at-brand-hover); }

/* Issue details, journals, attachments and project overview */
div.issue {
  background: #f7fafc;
  border: 1px solid #d8e4ee;
  border-inline-start: 4px solid var(--at-brand);
  border-radius: var(--at-radius);
  padding: 22px;
  box-shadow: var(--at-shadow);
}
div.issue .subject h3 { font-size: 21px; line-height: 1.4; letter-spacing: -.3px; }
div.issue .author { color: var(--at-muted); font-size: 12px; }
div.issue .attributes { margin-block: 18px; }
div.issue .attributes .label { color: #52647b; font-weight: 600; }
div.issue .description { border-top: 1px solid var(--at-line); padding-block-start: 15px; }
div.journal {
  border-bottom: 1px solid var(--at-line);
  margin-block: 16px;
  padding-block: 8px 18px;
}
div.journal h4 { color: var(--at-muted); font-size: 12px; }
div.journal .details { color: var(--at-muted); line-height: 1.8; }
div.journal .wiki { color: var(--at-ink); }
img.gravatar { border-radius: 50%; }
.attachments { font-size: 12px; }
.attachments p { padding-block: 5px; }
#projects-index ul.projects div.root {
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  padding: 18px;
  margin-block-end: 14px;
  background: var(--at-surface);
  box-shadow: var(--at-shadow);
}
#activity h3 { border-bottom: 1px solid var(--at-line); padding-block: 12px; }
#activity dt { padding-block: 5px; }
#activity dd { color: var(--at-muted); }
table.progress { border: 1px solid #b6ccc8; border-radius: 4px; overflow: hidden; }
table.progress td.closed { background: #087f80; }
table.progress td.done { background: #85c9be; }
table.progress td.todo { background: #e5eef1; }

/* Calendar, Gantt: preserve geometry and Redmine's positioning calculations. */
table.cal { border-color: var(--at-line); }
table.cal th { background: #eef3f8; color: #43566e; padding-block: 10px; }
table.cal td { border-color: var(--at-line); }
table.cal td.today { background: #e9f6f3; }
table.cal td.odd { background: #f6f8fb; }
.gantt_hdr { background-color: #eef3f8; border-color: var(--at-line); color: #43566e; }

/* Editors, context menus and dialogs */
.jstEditor textarea { border-radius: 0 0 7px 7px; }
.jstElements { background-color: #eef3f8; border-radius: 7px 7px 0 0; }
.ui-widget { font-family: var(--at-font); }
.ui-dialog {
  border: 1px solid var(--at-line);
  border-radius: var(--at-radius);
  box-shadow: 0 24px 70px rgb(12 27 46 / 25%);
}
.ui-dialog .ui-dialog-titlebar { background: #eef3f8; border: 0; color: var(--at-ink); }
.ui-widget-overlay { background: #12263f; opacity: .38; }
#context-menu ul { border-color: var(--at-line); border-radius: 7px; box-shadow: 0 10px 24px rgb(12 27 46 / 16%); }
#context-menu li:hover { background-color: var(--at-brand-soft); border-color: transparent; }

/* Authentication: only native login elements; no fabricated labels or markup. */
#login-form {
  background: var(--at-surface);
  border: 1px solid var(--at-line);
  border-top: 4px solid var(--at-brand);
  border-radius: var(--at-radius);
  box-shadow: 0 18px 50px rgb(18 38 63 / 10%);
  padding: 28px;
  max-width: min(440px, calc(100vw - 48px));
  box-sizing: border-box;
  margin: 48px auto;
}
#login-form label { font-weight: 600; color: #36475d; }
#login-form input[type="text"], #login-form input[type="password"] { padding: 11px 12px; }
#login-form input[type="submit"] { padding: 11px 18px; }

/* Keep the core mobile breakpoint and flyout mechanics in charge. */
@media screen and (min-width: 900px) {
  #content { margin: 18px; border: 1px solid var(--at-line); border-radius: var(--at-radius); box-shadow: var(--at-shadow); }
  #sidebar { padding-block-start: 28px; }
}
@media screen and (max-width: 899px) {
  #content { padding: 18px 14px; }
  #content > h2 { font-size: 22px; }
  div.issue { padding: 16px; }
  table.list { font-size: 12px; }
  table.list td, table.list th { padding: 9px 7px; }
}
@media screen and (max-width: 599px) {
  .box { padding: 12px; }
  #login-form { padding: 22px 16px; margin-block: 24px; }
  input[type="text"], input[type="password"], input[type="email"],
  input[type="search"], input[type="number"], select, textarea { font-size: 16px; }
  div.issue .subject h3 { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (forced-colors: active) {
  input[type="submit"], .box, div.issue { border: 1px solid CanvasText; }
  a:focus-visible, input:focus-visible, button:focus-visible { outline-color: Highlight; }
}
@media print {
  body, #main, #content, div.issue, .box { background: #fff !important; color: #000 !important; box-shadow: none !important; }
  #content { margin: 0; padding: 0; border: 0; border-radius: 0; }
  #top-menu, #header, #sidebar, #footer, .contextual, .other-formats { display: none !important; }
  #content { width: auto !important; }
  a, a:visited { color: #000 !important; }
  table.list { font-size: 10pt; border-radius: 0; }
  table.list th, table.list td { padding: 5px; }
  .autoscroll { overflow: visible; }
}
