/*
|--------------------------------------------------------------------------
| Base
|--------------------------------------------------------------------------
*/

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f6f8;
    color: #333;
}

h1 {
    margin-top: 0;
    margin-bottom: 24px;
    font-size: 28px;
}

h2 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 20px;
}

/*
|--------------------------------------------------------------------------
| Layout
|--------------------------------------------------------------------------
*/

.container {
    width: min(960px, calc(100% - 32px));
    margin: 40px auto;
    padding: 32px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.pageHeader {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.pageActions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
}

.pageActions .button {
    white-space: nowrap;
}

.linkArea {
    margin-top: 24px;
}

.linkButton {
    padding: 0;
    color: #2563eb;
    font: inherit;
    font-weight: 700;
    background: none;
    border: 0;
    cursor: pointer;
}

.linkButton:hover {
    text-decoration: underline;
}

.demoLoginArea {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.demoLoginTitle {
    margin: 0 0 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

.demoLoginButtons {
    display: grid;
    gap: 10px;
}

.demoLoginButtons form {
    margin: 0;
}

.demoLoginButton {
    width: 100%;
}

.demoReadonlyMenuButton {
    display: block;
    width: 100%;
    padding: 10px 12px;
    color: #374151;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.demoReadonlyMenuButton:hover {
    background-color: #f3f4f6;
}

/*
|--------------------------------------------------------------------------
| Header / User Menu
|--------------------------------------------------------------------------
*/

.siteHeader {
    position: sticky;
    top: 0;
    z-index: 40;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid #e5e7eb;
    backdrop-filter: blur(10px);
}

.siteHeaderInner {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 14px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.siteBrandArea {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 0 0 auto;
    min-width: 150px;
}

.siteTitle {
    color: #111827;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.siteTitle:hover {
    color: #2563eb;
}

.siteSubtitle {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
}

.headerActions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
}

/*
|--------------------------------------------------------------------------
| Project Switcher
|--------------------------------------------------------------------------
*/

.projectSwitcherBox {
    display: flex;
    align-items: center;
    flex-shrink: 1;
    min-width: 0;
}

.projectSwitcherForm {
    margin: 0;
}

.projectSwitcherSelect {
    width: auto;
    min-width: 180px;
    max-width: 260px;
    height: 42px;
    padding: 8px 36px 8px 14px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
    background-color: #f8fafc;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    cursor: pointer;
}

.projectSwitcherSelect:hover {
    background-color: #ffffff;
    border-color: #93c5fd;
}

.projectSwitcherSelect:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/*
|--------------------------------------------------------------------------
| User Menu
|--------------------------------------------------------------------------
*/

.userMenu {
    position: relative;
    flex-shrink: 0;
}

/* ボタンとメニューの間の8pxの隙間をホバー範囲に含める */
.userMenu::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 0;
    width: 100%;
    height: 8px;
}

.userMenuButton {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 8px 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.04);
}

.userMenuButton:hover {
    background-color: #f9fafb;
    border-color: #93c5fd;
}

.userMenuName {
    max-width: 140px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.userMenuArrow {
    color: #6b7280;
    font-size: 10px;
}

.userMenuDropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 50;
    display: none;
    box-sizing: border-box;
    min-width: 210px;
    padding: 8px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
}

.userMenu:hover .userMenuDropdown,
.userMenu:focus-within .userMenuDropdown {
    display: block;
}

.userMenuDropdown::before {
    content: "";
    position: absolute;
    top: -8px;
    right: 18px;
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-top: 1px solid #e5e7eb;
    border-left: 1px solid #e5e7eb;
    transform: rotate(45deg);
}

.userMenuDropdown a,
.userMenuDropdown button {
    position: relative;
    z-index: 1;
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 10px 12px;
    color: #374151;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    text-decoration: none;
    background: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
}

.userMenuDropdown a:hover,
.userMenuDropdown button:hover {
    color: #1d4ed8;
    background-color: #eff6ff;
}

.userMenuDropdown form {
    width: 100%;
    margin: 0;
}

.visuallyHidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip: rect(0, 0, 0, 0);
}

/*
|--------------------------------------------------------------------------
| Breadcrumb
|--------------------------------------------------------------------------
*/

.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 20px;
    color: #6b7280;
    font-size: 14px;
}

.breadcrumb a {
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #374151;
    font-weight: 700;
}

.breadcrumbSeparator {
    color: #9ca3af;
}

/*
|--------------------------------------------------------------------------
| Form
|--------------------------------------------------------------------------
*/

.formGroup {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: bold;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
    border: 1px solid #ccd3dc;
    border-radius: 6px;
    font-size: 15px;
}

input[type="checkbox"],
input[type="radio"] {
    width: auto;
    padding: 0;
    margin: 0;
}

.checkboxLabel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
    cursor: pointer;
}

.checkboxLabel input {
    flex-shrink: 0;
}

textarea {
    resize: vertical;
}

.checkboxGroup label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.checkboxGroup input {
    width: auto;
}

.passwordInputWrap {
    display: flex;
    gap: 8px;
}

.passwordInputWrap input {
    flex: 1;
}

.passwordToggleButton {
    flex: 0 0 auto;
    padding: 10px 14px;
    color: #374151;
    font-size: 14px;
    background-color: #f9fafb;
    border: 1px solid #ccd3dc;
    border-radius: 6px;
    cursor: pointer;
}

.passwordToggleButton:hover {
    background-color: #f3f4f6;
}

/*
|--------------------------------------------------------------------------
| Button
|--------------------------------------------------------------------------
*/

.button {
    display: inline-block;
    padding: 10px 20px;
    color: #ffffff;
    font-size: 14px;
    text-decoration: none;
    background-color: #2563eb;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.button:hover {
    background-color: #1d4ed8;
}

.subButton {
    background-color: #6b7280;
}

.subButton:hover {
    background-color: #4b5563;
}

.deleteButton {
    background-color: #ef4444;
}

.deleteButton:hover {
    background-color: #dc2626;
}

.smallButton {
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
}

/*
|--------------------------------------------------------------------------
| Message / Text
|--------------------------------------------------------------------------
*/

.errorText {
    margin: 6px 0 0;
    color: #dc2626;
    font-size: 14px;
}

.successMessage {
    margin-bottom: 20px;
    padding: 12px 16px;
    color: #166534;
    background-color: #dcfce7;
    border-radius: 8px;
}

.errorMessage {
    margin-bottom: 20px;
    padding: 12px 16px;
    color: #991b1b;
    background-color: #fee2e2;
    border-radius: 8px;
}

.demoNotice {
    order: 3;
    width: 100%;
    box-sizing: border-box;
    max-width: none;
    padding: 8px 14px;
    color: #92400e;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
    background-color: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 14px;
}

.demoReadonlyModal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.demoReadonlyModal.isOpen {
    display: flex;
}

.demoReadonlyModalBackdrop {
    position: absolute;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.45);
}

.demoReadonlyModalDialog {
    position: relative;
    z-index: 1;
    width: min(440px, 100%);
    box-sizing: border-box;
    padding: 28px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.demoReadonlyModalDialog h2 {
    margin-bottom: 12px;
    font-size: 22px;
}

.demoReadonlyModalDialog p {
    margin: 0 0 20px;
    color: #4b5563;
    line-height: 1.7;
}

.demoReadonlyModalClose {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 34px;
    height: 34px;
    color: #4b5563;
    font-size: 22px;
    line-height: 1;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    cursor: pointer;
}

.demoReadonlyModalClose:hover {
    background-color: #f3f4f6;
}

.emptyText {
    color: #6b7280;
}

.resultText {
    margin-bottom: 12px;
    color: #4b5563;
}

/*
|--------------------------------------------------------------------------
| Card / Detail
|--------------------------------------------------------------------------
*/

.card {
    margin-bottom: 24px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.detailList {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 12px 20px;
}

.detailList dt {
    align-self: start;
    color: #555555;
    font-weight: bold;
}

.detailList dd {
    min-width: 0;
    margin: 0;
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/*
|--------------------------------------------------------------------------
| Summary
|--------------------------------------------------------------------------
*/

.summaryArea {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin: 32px 0 24px;
}

.summaryCard {
    position: relative;
    display: block;
    min-height: 96px;
    padding: 18px 20px;
    overflow: hidden;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 6px solid #64748b;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.summaryCard:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.summaryCard::after {
    content: "";
    position: absolute;
    right: -24px;
    bottom: -24px;
    width: 78px;
    height: 78px;
    background: rgba(15, 23, 42, 0.05);
    border-radius: 50%;
}

.summaryLabel,
.summaryCard strong,
.summaryNote {
    position: relative;
    z-index: 1;
    display: block;
}

.summaryLabel {
    margin-bottom: 10px;
    color: #64748b;
    font-size: 13px;
    font-weight: 700;
}

.summaryCard strong {
    color: #111827;
    font-size: 32px;
    font-weight: 800;
    line-height: 1;
}

.summaryNote {
    margin-top: 10px;
    color: #64748b;
    font-size: 12px;
}

.summaryAll {
    background: #f8fafc;
    border-left-color: #64748b;
}

.summaryNew {
    background: #fff7f7;
    border-left-color: #ef4444;
}

.summaryProgress {
    background: #f8fbff;
    border-left-color: #3b82f6;
}

.summaryAnswered {
    background: #f7fff9;
    border-left-color: #22c55e;
}

.summaryClosed {
    background: #f9fafb;
    border-left-color: #9ca3af;
}

.summaryOverdue {
    background: #fff7f7;
    border-left-color: #dc2626;
}

.summaryToday {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.summaryUrgent {
    background: #fff7f7;
    border-left-color: #ef4444;
}

.summaryUnassigned {
    background: #f9fafb;
    border-left-color: #6b7280;
}

.summaryMine {
    background: #faf5ff;
    border-left-color: #8b5cf6;
}

.summaryChildTickets {
    background: #f0fdfa;
    border-left-color: #14b8a6;
}

/*
|--------------------------------------------------------------------------
| Search
|--------------------------------------------------------------------------
*/

.searchBox {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 16px;
    padding: 20px;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.searchItem label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
}

.searchItem input,
.searchItem select {
    width: 100%;
}

.searchKeyword {
    grid-column: span 2;
}

.searchActions {
    display: flex;
    gap: 12px;
    align-items: flex-end;
}

.searchActions .button {
    white-space: nowrap;
}

.auditLogSearchBox {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.auditLogSearchBox .searchActions {
    grid-column: 1 / -1;
    justify-content: flex-end;
}

/*
|--------------------------------------------------------------------------
| Table
|--------------------------------------------------------------------------
*/

.tableWrapper {
    overflow-x: auto;
}

.table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    vertical-align: middle;
    border-bottom: 1px solid #e5e7eb;
}

.table th {
    background-color: #f9fafb;
    white-space: nowrap;
}

.table td {
    font-size: 14px;
}

.tableLink {
    display: inline-block;
    max-width: 260px;
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tableLink:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| Badges
|--------------------------------------------------------------------------
*/

.status,
.priorityBadge,
.dueBadge,
.roleBadge,
.commentRole,
.commentType {
    display: inline-block;
    border-radius: 999px;
    white-space: nowrap;
}

.status,
.priorityBadge,
.dueBadge,
.roleBadge {
    padding: 4px 10px;
    font-size: 13px;
}

.commentRole,
.commentType {
    padding: 3px 8px;
    font-size: 12px;
    font-weight: 700;
}

.roleBadge {
    font-weight: 700;
}

.statusNew,
.priorityUrgent,
.dueOver {
    color: #991b1b;
    background-color: #fee2e2;
}

.statusProgress,
.priorityHigh,
.dueToday,
.roleStaff,
.staffRole,
.internalComment {
    color: #92400e;
    background-color: #fef3c7;
}

.statusAnswered,
.dueNormal,
.roleUser,
.userRole,
.publicComment {
    color: #166534;
    background-color: #dcfce7;
}

.statusClosed,
.priorityLow {
    color: #374151;
    background-color: #e5e7eb;
}

.priorityUnset,
.dueUnset {
    color: #6b7280;
    background-color: #f3f4f6;
}

.priorityMiddle,
.roleAdmin,
.adminRole,
.operatorRole {
    color: #1e40af;
    background-color: #dbeafe;
}

.dueToday,
.dueOver,
.priorityUrgent {
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Pagination
|--------------------------------------------------------------------------
*/

.paginationArea {
    display: flex;
    justify-content: center;
    margin-top: 24px;
}

/* Laravel標準ページネーションの巨大な矢印対策 */
.paginationArea svg {
    width: 18px;
    height: 18px;
}

/* モバイル用とPC用が両方出るのを抑える */
.paginationArea nav > div:first-child {
    display: none;
}

.paginationArea nav > div:last-child {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

/* Showing 11 to 20 of ... の表示 */
.paginationArea p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

/* ページ番号・Previous・Next周り */
.paginationArea a,
.paginationArea span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    padding: 6px 10px;
    color: #2563eb;
    text-decoration: none;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

.paginationArea a:hover {
    background-color: #f3f4f6;
}

/* 現在ページ */
.paginationArea span[aria-current="page"] span {
    color: #ffffff;
    background-color: #2563eb;
    border-color: #2563eb;
}

/* ページリンクの横並び */
.paginationArea nav span {
    gap: 0;
}

/*
|--------------------------------------------------------------------------
| History
|--------------------------------------------------------------------------
*/

.historyArea {
    margin-top: 32px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.historyArea h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.historyItem {
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
}

.historyItem:last-child {
    border-bottom: none;
}

.historyMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.historyMessage {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.historyDetail {
    margin-top: 8px;
    padding: 10px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 13px;
}

.historyField {
    display: block;
    margin-bottom: 4px;
    color: #374151;
    font-weight: 600;
}

.historyBefore,
.historyAfter {
    display: block;
    color: #4b5563;
}

/*
|--------------------------------------------------------------------------
| Comment
|--------------------------------------------------------------------------
*/

.commentArea {
    margin-top: 32px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.commentArea h2 {
    margin-bottom: 16px;
    font-size: 20px;
}

.commentItem {
    margin-bottom: 14px;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.commentItem:last-of-type {
    margin-bottom: 0;
}

.publicCommentItem,
.customerCommentItem {
    background-color: #ffffff;
    border-left: 5px solid #22c55e;
}

.internalMemoItem {
    background-color: #f3f4f6;
    border-color: #d1d5db;
    border-left: 5px solid #f59e0b;
}

.operatorCommentItem {
    background-color: #ffffff;
    border-left: 5px solid #3b82f6;
}

.commentMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-bottom: 8px;
    color: #6b7280;
    font-size: 13px;
}

.commentBody {
    margin: 0;
    line-height: 1.7;
    white-space: normal;
}

.commentForm {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.internalMemoNotice {
    margin: 10px 0;
    padding: 8px 10px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    background-color: #fff7ed;
    border: 1px solid #fdba74;
    border-radius: 6px;
}

/*
|--------------------------------------------------------------------------
| Knowledge
|--------------------------------------------------------------------------
*/

.knowledgeBody {
    line-height: 1.8;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

/*
|--------------------------------------------------------------------------
| Login
|--------------------------------------------------------------------------
*/

.loginWrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.loginCard {
    width: 100%;
    max-width: 480px;
    padding: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
}

.loginCard h1 {
    margin-bottom: 8px;
}

.loginCard p {
    margin-bottom: 16px;
    color: #6b7280;
}

/*
|--------------------------------------------------------------------------
| Responsive
|--------------------------------------------------------------------------
*/

@media (max-width: 900px) {
    .summaryArea {
        grid-template-columns: repeat(2, 1fr);
    }

    .searchBox {
        grid-template-columns: 1fr 1fr;
    }

    .searchKeyword {
        grid-column: span 2;
    }

    .searchActions {
        grid-column: span 2;
    }
}

@media (min-width: 901px) {
    body {
        font-size: 14px;
    }

    h1 {
        margin-bottom: 14px;
        font-size: 24px;
    }

    h2 {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .container {
        width: min(1360px, calc(100% - 40px));
        margin: 24px auto;
        padding: 24px;
        border-radius: 8px;
    }

    .siteHeaderInner {
        width: min(1360px, calc(100% - 40px));
        padding: 10px 0;
        gap: 16px;
    }

    .siteTitle {
        font-size: 18px;
        letter-spacing: 0;
    }

    .headerActions {
        gap: 10px;
    }

    .projectSwitcherSelect,
    .userMenuButton {
        min-height: 36px;
        height: 36px;
        font-size: 13px;
    }

    .projectSwitcherSelect {
        min-width: 170px;
        max-width: 300px;
        padding: 7px 34px 7px 12px;
    }

    .demoNotice {
        order: 0;
        width: auto;
        max-width: 520px;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 999px;
    }

    .breadcrumb {
        margin-bottom: 14px;
        font-size: 13px;
    }

    .pageHeader {
        gap: 12px;
        margin-bottom: 18px;
    }

    .pageHeader p,
    .sectionHeader p {
        margin-top: 0;
        font-size: 13px;
        line-height: 1.5;
    }

    .pageActions {
        gap: 8px;
    }

    .card {
        margin-bottom: 16px;
        padding: 18px;
        border-radius: 8px;
    }

    .formGroup {
        margin-bottom: 14px;
    }

    label {
        margin-bottom: 5px;
        font-size: 13px;
    }

    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        padding: 8px 9px;
        font-size: 13px;
    }

    .button {
        padding: 8px 14px;
        font-size: 13px;
        border-radius: 5px;
    }

    .smallButton {
        padding: 5px 9px;
        font-size: 12px;
    }

    .detailList {
        grid-template-columns: 140px 1fr;
        gap: 8px 14px;
    }

    .detailList dd {
        line-height: 1.55;
    }

    .summaryArea {
        gap: 10px;
        margin: 20px 0 16px;
    }

    .summaryCard {
        min-height: 58px;
        padding: 10px 12px;
        border-left-width: 4px;
        border-radius: 8px;
        box-shadow: none;
    }

    .summaryCard:hover {
        transform: none;
        box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    }

    .summaryCard::after {
        display: none;
    }

    .summaryLabel {
        margin-bottom: 5px;
        font-size: 12px;
    }

    .summaryCard strong {
        font-size: 22px;
    }

    .summaryNote {
        margin-top: 4px;
        font-size: 11px;
    }

    .searchBox {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 12px;
        padding: 14px;
        border-radius: 8px;
    }

    .searchKeyword {
        grid-column: span 2;
    }

    .searchActions {
        grid-column: span 2;
        flex-wrap: wrap;
        gap: 8px;
        align-items: flex-end;
    }

    .auditLogSearchBox {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .auditLogSearchBox .searchActions {
        grid-column: span 2;
        justify-content: flex-start;
    }

    .resultText {
        margin-bottom: 8px;
        font-size: 13px;
    }

    .table {
        min-width: 1080px;
    }

    .table th,
    .table td,
    th,
    td {
        padding: 8px 9px;
        font-size: 13px;
        line-height: 1.45;
    }

    .tableLink {
        max-width: 340px;
        font-size: 13px;
    }

    .tableActions {
        gap: 6px;
    }

    .paginationArea {
        margin-top: 16px;
    }

    .paginationArea p,
    .paginationArea a,
    .paginationArea span {
        font-size: 13px;
    }

    .paginationArea a,
    .paginationArea span {
        min-width: 32px;
        min-height: 32px;
        padding: 5px 8px;
    }

    .dashboardGrid {
        gap: 14px;
    }

    .dashboardListItem {
        padding: 10px 0;
    }

    .dashboardListItem a {
        margin-bottom: 6px;
        font-size: 13px;
    }

    .dashboardMeta {
        gap: 6px 10px;
        font-size: 12px;
    }

    .ticketDetailLayout {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(320px, 380px);
        grid-template-areas:
            "content meta"
            "comments management"
            "comments relation"
            "comments attachments"
            "comments history";
        gap: 16px;
        align-items: start;
    }

    .ticketDetailLayout > * {
        min-width: 0;
        margin-bottom: 0;
    }

    .ticketDetailContent {
        grid-area: content;
    }

    .ticketDetailMeta {
        grid-area: meta;
    }

    .ticketDetailManagement {
        grid-area: management;
    }

    .ticketDetailRelation {
        grid-area: relation;
    }

    .ticketDetailAttachments {
        grid-area: attachments;
    }

    .ticketDetailComments {
        grid-area: comments;
    }

    .ticketDetailHistory {
        grid-area: history;
    }

    .commentArea,
    .historyArea {
        margin-top: 0;
        padding: 14px;
        border-radius: 8px;
    }

    .commentArea h2,
    .historyArea h2 {
        margin-bottom: 12px;
        font-size: 18px;
    }

    .commentItem {
        margin-bottom: 8px;
        padding: 10px;
        border-radius: 8px;
    }

    .commentMeta,
    .historyMeta {
        gap: 6px 10px;
        margin-bottom: 6px;
        font-size: 12px;
    }

    .commentBody {
        line-height: 1.55;
    }

    .commentForm {
        margin-top: 18px;
        padding-top: 16px;
    }

    .historyItem {
        padding: 12px 0;
    }

    .historyMessage {
        font-size: 13px;
    }

    .historyDetail {
        padding: 8px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {

    .childTicketProgressGrid {
        grid-template-columns: 1fr;
    }

    .container {
        margin: 16px auto;
        padding: 20px;
    }

    .siteHeaderInner {
        width: min(960px, calc(100% - 32px));
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .headerActions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }

    .demoNotice {
        width: 100%;
        box-sizing: border-box;
        max-width: none;
        border-radius: 14px;
    }

    .projectSwitcherBox {
        width: 100%;
    }

    .projectSwitcherForm {
        width: 100%;
        min-width: 0;
    }

    .projectSwitcherSelect {
        width: 100%;
        max-width: none;
        border-radius: 14px;
    }

    .userMenu {
        width: 100%;
    }

    .userMenuButton {
        width: 100%;
        justify-content: space-between;
        border-radius: 14px;
    }

    .userMenuDropdown {
        left: 0;
        right: 0;
        min-width: 0;
    }

    .pageHeader {
        flex-direction: column;
    }

    .detailList {
        grid-template-columns: 1fr;
    }

    .searchBox {
        grid-template-columns: 1fr;
    }

    .searchKeyword,
    .searchActions {
        grid-column: span 1;
    }

    .searchActions {
        flex-direction: column;
        align-items: stretch;
    }

    .searchActions .button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }

    .searchBox input,
    .searchBox select {
        width: 100%;
    }

    .pageActions {
        width: 100%;
        justify-content: flex-start;
    }

    .pageActions .button {
        width: 100%;
        box-sizing: border-box;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .summaryArea {
        grid-template-columns: 1fr;
    }

    .summaryCard strong {
        font-size: 24px;
    }

    .faqQuestionBlock,
    .faqAnswerBlock {
        flex-direction: column;
    }
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 12px 10px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: middle;
    line-height: 1.6;
}

th {
    background-color: #f9fafb;
    color: #374151;
    font-size: 14px;
}

td {
    font-size: 14px;
}

.tableActions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tableActions form {
    margin: 0;
}

/*
|--------------------------------------------------------------------------
| FAQ
|--------------------------------------------------------------------------
*/

.sectionHeader {
    margin-bottom: 20px;
}

.sectionHeader h2 {
    margin-bottom: 6px;
}

.sectionHeader p {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.faqList {
    display: grid;
    gap: 16px;
}

.faqItem {
    position: relative;
    padding: 20px 22px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-left: 6px solid #2563eb;
    border-radius: 12px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.faqItem:hover {
    background-color: #f9fafb;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.faqMeta {
    margin-bottom: 10px;
}

.faqCategory {
    display: inline-block;
    padding: 4px 10px;
    color: #1e40af;
    font-size: 12px;
    font-weight: 700;
    background-color: #dbeafe;
    border-radius: 999px;
}

.faqTitle {
    margin: 0 0 12px;
    font-size: 18px;
    line-height: 1.5;
}

.faqTitle a {
    color: #111827;
    font-weight: 800;
    text-decoration: none;
}

.faqTitle a::before {
    content: "Q. ";
    color: #2563eb;
}

.faqTitle a:hover {
    color: #2563eb;
    text-decoration: underline;
}

.faqSummary {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
    line-height: 1.8;
}

/*
|--------------------------------------------------------------------------
| FAQ Detail
|--------------------------------------------------------------------------
*/

.faqDetailCard {
    border-left: 6px solid #2563eb;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.faqQuestionBlock {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.faqQuestionBlock h2 {
    margin: 0;
    color: #111827;
    font-size: 22px;
    line-height: 1.6;
}

.faqQuestionLabel,
.faqAnswerLabel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    color: #ffffff;
    font-size: 18px;
    font-weight: 800;
    border-radius: 999px;
}

.faqQuestionLabel {
    background-color: #2563eb;
}

.faqAnswerLabel {
    background-color: #22c55e;
}

.faqAnswerBlock {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.faqAnswerBody {
    flex: 1;
    padding: 18px 20px;
    color: #374151;
    line-height: 1.9;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.faqActionCard {
    border-left: 6px solid #f59e0b;
    background-color: #fffbeb;
}

.faqActionHeader {
    margin-bottom: 18px;
}

.faqActionLabel {
    display: inline-block;
    margin-bottom: 10px;
    padding: 4px 10px;
    color: #92400e;
    font-size: 12px;
    font-weight: 700;
    background-color: #fef3c7;
    border-radius: 999px;
}

.faqActionHeader h2 {
    margin-bottom: 8px;
}

.faqActionHeader p {
    margin: 0;
    color: #4b5563;
    line-height: 1.8;
}

/*
|--------------------------------------------------------------------------
| Dashboard
|--------------------------------------------------------------------------
*/

.dashboardGrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.dashboardListItem {
    padding: 14px 0;
    border-bottom: 1px solid #e5e7eb;
}

.dashboardListItem:last-child {
    border-bottom: none;
}

.dashboardListItem a {
    display: inline-block;
    margin-bottom: 8px;
    color: #2563eb;
    font-weight: 700;
    text-decoration: none;
}

.dashboardListItem a:hover {
    text-decoration: underline;
}

.dashboardMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    color: #6b7280;
    font-size: 13px;
}

.dashboardListWarning a {
    color: #dc2626;
}

@media (max-width: 900px) {

    .dashboardGrid {
        grid-template-columns: 1fr;
    }
}

/* 添付ファイル一覧 */
.attachmentItem {
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}

.attachmentItem:last-child {
    border-bottom: none;
}

.attachmentItem a {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.attachmentItem a:hover {
    text-decoration: underline;
}

.attachmentMeta {
    margin-top: 4px;
    font-size: 0.85rem;
    color: #6b7280;
}

/* コメント内の添付ファイル */
.commentAttachments {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
}

.commentAttachmentsTitle {
    margin-bottom: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
}

.commentAttachmentItem {
    margin-top: 6px;
}

.commentAttachmentItem a {
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
}

.commentAttachmentItem a:hover {
    text-decoration: underline;
}

.commentAttachmentMeta {
    margin-top: 3px;
    font-size: 0.8rem;
    color: #6b7280;
}

/* 添付ファイル削除ボタン */
.attachmentDeleteForm {
    margin-top: 8px;
}

.attachmentDeleteButton {
    display: inline-block;
    padding: 6px 10px;
    border: none;
    border-radius: 6px;
    background: #dc2626;
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
}

.attachmentDeleteButton:hover {
    background: #b91c1c;
}

/* コメント編集・編集履歴 */
.commentEditedMeta {
    margin-top: 6px;
    font-size: 0.8rem;
    color: #6b7280;
}

.commentEditBox,
.commentHistoryBox {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.commentEditBox summary,
.commentHistoryBox summary {
    cursor: pointer;
    font-weight: 700;
    color: #374151;
}

.commentEditForm {
    margin-top: 10px;
}

.commentHistoryItem {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
}

.commentHistoryItem:first-of-type {
    border-top: none;
}

.commentHistoryItem .historyDetail {
    margin-top: 8px;
    display: grid;
    gap: 10px;
}

.commentHistoryItem .historyDetail div {
    padding: 8px;
    border-radius: 6px;
    background: #ffffff;
}

.commentHistoryItem .historyDetail p {
    margin-top: 4px;
    white-space: normal;
}

/* コメント返信 */
.replyReference {
    margin-bottom: 10px;
    padding: 10px 12px;
    border-left: 4px solid #93c5fd;
    border-radius: 6px;
    background: #eff6ff;
    font-size: 0.85rem;
    color: #374151;
}

.replyReferenceBody {
    margin-top: 4px;
    color: #6b7280;
}

.commentReplyBox {
    margin-top: 12px;
    padding: 10px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
}

.commentReplyBox summary {
    cursor: pointer;
    font-weight: 700;
    color: #374151;
}

.commentReplyForm {
    margin-top: 10px;
}

.commentItem > .commentEditBox,
.commentItem > .commentReplyBox {
    margin-top: 8px;
    padding: 0;
    border: 0;
    background: transparent;
}

.commentItem > .commentEditBox[open],
.commentItem > .commentReplyBox[open] {
    margin-top: 10px;
    padding: 10px;
    border-radius: 8px;
}

.commentItem > .commentEditBox[open] {
    border: 1px solid #e5e7eb;
    background: #f9fafb;
}

.commentItem > .commentReplyBox[open] {
    border: 1px solid #dbeafe;
    background: #f8fafc;
}

.commentItem > .commentEditBox summary,
.commentItem > .commentReplyBox summary {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    min-height: 24px;
    padding: 3px 8px;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    list-style: none;
    background: #f8fafc;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
}

.commentItem > .commentEditBox summary::-webkit-details-marker,
.commentItem > .commentReplyBox summary::-webkit-details-marker {
    display: none;
}

.commentItem > .commentEditBox summary:hover,
.commentItem > .commentReplyBox summary:hover {
    color: #1d4ed8;
    background: #eef6ff;
    border-color: #bfdbfe;
}

@media (min-width: 641px) {
    .commentItem {
        position: relative;
    }

    .commentItem > .commentEditBox:not([open]),
    .commentItem > .commentReplyBox:not([open]) {
        margin-top: 0;
    }

    .commentItem > .commentEditBox > summary,
    .commentItem > .commentReplyBox > summary {
        position: absolute;
        top: 12px;
        z-index: 1;
    }

    .commentItem > .commentEditBox > summary {
        right: 68px;
    }

    .commentItem > .commentReplyBox > summary {
        right: 12px;
    }

    .commentItem > .commentEditBox + .commentHistoryBox {
        margin-top: 12px;
    }
}

/* 親子チケット */
.parentTicketBox {
    margin-bottom: 20px;
    padding: 14px 16px;
    border: 1px solid #dbeafe;
    border-radius: 8px;
    background: #f8fafc;
}

.childTicketBox {
    margin-top: 20px;
}

.childTicketProgressBox {
    margin: 12px 0 18px;
    padding: 14px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.childTicketProgressHeader {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 12px;
}

.childTicketProgressHeader strong {
    color: #111827;
}

.childTicketProgressHeader span {
    padding: 4px 10px;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 700;
    background: #dbeafe;
    border-radius: 999px;
}

.childTicketProgressGrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.childTicketProgressGrid div {
    padding: 10px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.childTicketProgressGrid span {
    display: block;
    margin-bottom: 4px;
    color: #6b7280;
    font-size: 0.8rem;
}

.childTicketProgressGrid strong {
    color: #111827;
    font-size: 1rem;
}

.childTicketProgressNote {
    margin: 12px 0 0;
    color: #6b7280;
    font-size: 0.85rem;
    font-weight: 700;
}

.childTicketProgressNote.warning {
    color: #92400e;
}

.childTicketProgressNote.completed {
    color: #166534;
}

.childTicketItem {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    margin-top: 10px;
}

.childTicketItem > div:first-child {
    min-width: 0;
}

.childTicketItem a {
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
}

.childTicketItem .tableLink {
    overflow-wrap: anywhere;
}

.childTicketItem .status {
    flex: 0 0 auto;
    white-space: nowrap;
}

.childTicketItem a:hover {
    text-decoration: underline;
}

.childTicketMeta {
    margin-top: 6px;
    font-size: 0.85rem;
    color: #6b7280;
}

.childTicketCreateBox {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

/* 問い合わせ一覧：子チケット件数 */
.childTicketListBadge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    background: #eff6ff;
    color: #1d4ed8;
    font-size: 0.8rem;
    font-weight: 700;
}

.childTicketListMeta {
    margin-top: 4px;
    font-size: 0.78rem;
    color: #6b7280;
}

.childTicketListMeta.completed {
    color: #16a34a;
}

/*
|--------------------------------------------------------------------------
| Project Member Picker
|--------------------------------------------------------------------------
*/

.memberPickerFilters {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(180px, 1fr);
    gap: 12px;
}

.memberPickerColumns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.memberPickerPanel {
    min-width: 0;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #f9fafb;
}

.memberPickerHeader {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-bottom: 1px solid #d1d5db;
    background: #ffffff;
}

.memberPickerHeader h3 {
    margin: 0;
    font-size: 15px;
}

.memberPickerHeader span {
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

.memberPickerList {
    min-height: 280px;
    max-height: 420px;
    padding: 10px;
    overflow-y: auto;
}

.memberPickerItem {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border: 1px solid #dbe1e8;
    border-radius: 6px;
    background: #ffffff;
}

.memberPickerItem[hidden] {
    display: none;
}

.memberPickerItem:last-of-type {
    margin-bottom: 0;
}

.memberPickerItem > div {
    min-width: 0;
}

.memberPickerItem strong,
.memberPickerItem span {
    display: block;
}

.memberPickerItem strong {
    overflow-wrap: anywhere;
    color: #111827;
    font-size: 14px;
}

.memberPickerItem > div > span:not(.memberRoleBadge) {
    margin-top: 3px;
    overflow-wrap: anywhere;
    color: #6b7280;
    font-size: 12px;
}

.memberPickerItem.isSelected {
    border-color: #93c5fd;
    background: #eff6ff;
}

.memberPickerItem.isFixed {
    background: #f3f4f6;
}

.memberRoleBadge {
    width: fit-content;
    margin-top: 6px;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
}

.memberRoleBadge.roleAdmin {
    color: #7f1d1d;
    background: #fee2e2;
}

.memberRoleBadge.roleStaff {
    color: #1e40af;
    background: #dbeafe;
}

.memberRoleBadge.roleUser {
    color: #166534;
    background: #dcfce7;
}

.memberPickerAction {
    min-width: 52px;
    padding: 7px 9px;
    color: #1d4ed8;
    font-weight: 700;
    background: #ffffff;
    border: 1px solid #93c5fd;
    border-radius: 6px;
    cursor: pointer;
}

.memberPickerAction:hover {
    background: #dbeafe;
}

.memberPickerAction.removeAction {
    color: #b91c1c;
    border-color: #fca5a5;
}

.memberPickerAction.removeAction:hover {
    background: #fee2e2;
}

.memberPickerFixedLabel {
    color: #6b7280;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.memberPickerEmpty {
    margin: 0;
    padding: 24px 8px;
    text-align: center;
}

.projectNameBadge {
    display: inline-block;
    margin: 2px 4px 2px 0;
    padding: 3px 8px;
    color: #374151;
    font-size: 12px;
    font-weight: 700;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 999px;
}

@media (max-width: 720px) {
    .memberPickerFilters,
    .memberPickerColumns {
        grid-template-columns: 1fr;
    }

    .memberPickerList {
        min-height: 200px;
        max-height: 320px;
    }
}
.auditData {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    border: 1px solid #d7dce2;
    background: #f7f8fa;
    color: #20252b;
    font-family: Consolas, "Courier New", monospace;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.ticketContentHeader {
    margin-bottom: 14px;
}

.ticketContentHeader h2 {
    margin: 8px 0 0;
    color: #111827;
    line-height: 1.45;
}

.ticketContentId {
    display: inline-block;
    padding: 4px 9px;
    color: #1f2937;
    font-size: 12px;
    font-weight: 800;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 999px;
}

.ticketBody {
    padding: 16px;
    color: #111827;
    line-height: 1.75;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.ticketContentMeta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 12px;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
}

/*
|--------------------------------------------------------------------------
| Desktop Dense Layout Overrides
|--------------------------------------------------------------------------
*/

@media (min-width: 769px) {
    html body {
        font-size: 13px;
    }

    html body main.container {
        width: calc(100% - 32px);
        max-width: 1440px;
        box-sizing: border-box;
        margin: 16px auto;
        padding: 18px;
        border-radius: 8px;
    }

    .siteHeaderInner {
        width: calc(100% - 32px);
        max-width: 1440px;
        padding: 8px 0;
    }

    .card,
    .commentArea,
    .historyArea {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    .pageHeader {
        margin-bottom: 14px;
    }

    .searchBox {
        padding: 12px;
        gap: 8px;
    }

    .table th,
    .table td,
    th,
    td {
        padding: 7px 8px;
        font-size: 12px;
        line-height: 1.4;
    }

    .ticketDetailLayout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-areas:
            "content meta"
            "comments management"
            "comments relation"
            "comments attachments"
            "comments history";
        gap: 12px;
        align-items: start;
    }

    .ticketDetailLayout > * {
        min-width: 0;
        margin: 0;
    }

    .ticketDetailContent {
        grid-area: content;
        max-height: none;
        overflow: visible;
    }

    .ticketDetailMeta {
        grid-area: meta;
    }

    .ticketDetailManagement {
        grid-area: management;
    }

    .ticketDetailRelation {
        grid-area: relation;
    }

    .ticketDetailAttachments {
        grid-area: attachments;
    }

    .ticketDetailComments {
        grid-area: comments;
    }

    .ticketDetailHistory {
        grid-area: history;
        max-height: 520px;
        overflow: auto;
    }

    .ticketDetailLayout h2 {
        margin-bottom: 10px;
        font-size: 16px;
    }

    .ticketDetailLayout .detailList {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 6px 10px;
    }

    .ticketDetailLayout .detailList dd {
        line-height: 1.45;
    }

    .ticketDetailLayout .formGroup {
        margin-bottom: 10px;
    }

    .ticketDetailLayout input:not([type="checkbox"]):not([type="radio"]),
    .ticketDetailLayout select,
    .ticketDetailLayout textarea {
        padding: 7px 8px;
        font-size: 12px;
    }

    .ticketDetailLayout .button {
        padding: 7px 11px;
        font-size: 12px;
    }

    .ticketDetailLayout .commentItem {
        margin-bottom: 7px;
        padding: 9px;
    }

    .ticketDetailLayout .commentBody {
        line-height: 1.5;
    }

    .ticketDetailLayout .historyItem {
        padding: 9px 0;
    }

    .ticketContentHeader {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 12px;
        align-items: baseline;
        margin-bottom: 12px;
    }

    .ticketContentHeader h2 {
        margin: 0;
        color: #111827;
        font-size: 20px;
        line-height: 1.35;
    }

    .ticketContentId {
        flex: 0 0 auto;
        padding: 3px 8px;
        color: #1f2937;
        font-size: 12px;
        font-weight: 800;
        background: #f3f4f6;
        border: 1px solid #d1d5db;
        border-radius: 999px;
    }

    .ticketBody {
        min-height: 140px;
        padding: 14px;
        color: #111827;
        font-size: 14px;
        line-height: 1.7;
        background: #ffffff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
    }

    .ticketContentMeta {
        display: flex;
        flex-wrap: wrap;
        gap: 8px 14px;
        margin-top: 12px;
        color: #6b7280;
        font-size: 12px;
        font-weight: 700;
    }
}

@media (min-width: 1280px) {
    .ticketDetailLayout {
        grid-template-columns: minmax(0, 1fr) 380px;
    }
}

/*
|--------------------------------------------------------------------------
| Core Blue UI Theme
|--------------------------------------------------------------------------
*/

:root {
    --cd-page-bg: #eef6fb;
    --cd-sub-bg: #f3f8fc;
    --cd-card-bg: #ffffff;
    --cd-border: #cfe1ee;
    --cd-border-strong: #b9d4e6;
    --cd-heading-bg: #e2f0f8;
    --cd-table-head: #dcecf6;
    --cd-blue: #2563eb;
    --cd-blue-dark: #1d4ed8;
    --cd-text: #1f2937;
    --cd-muted: #64748b;
}

body {
    color: var(--cd-text);
    background: var(--cd-page-bg);
}

a,
.linkButton,
.tableLink {
    color: var(--cd-blue-dark);
}

a:hover,
.linkButton:hover,
.tableLink:hover {
    color: var(--cd-blue);
}

.siteHeader {
    background: linear-gradient(180deg, #f8fcff 0%, #e7f3fb 100%);
    border-bottom-color: var(--cd-border-strong);
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.08);
}

.siteTitle {
    color: #174ea6;
    letter-spacing: 0;
}

.siteTitle:hover {
    color: var(--cd-blue);
}

.container {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--cd-border);
    box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

.card,
.commentArea,
.historyArea,
.loginCard,
.faqDetailCard,
.faqActionCard {
    background: var(--cd-card-bg);
    border-color: var(--cd-border);
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.04);
}

.card h2,
.commentArea h2,
.historyArea h2,
.sectionHeader h2 {
    color: #1e3a5f;
}

.breadcrumb,
.summaryNote,
.dashboardMeta,
.ticketContentMeta,
.commentMeta,
.historyMeta,
.emptyText {
    color: var(--cd-muted);
}

.searchBox {
    background: var(--cd-sub-bg);
    border-color: var(--cd-border);
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    color: var(--cd-text);
    background-color: #ffffff;
    border-color: var(--cd-border-strong);
}

input:not([type="checkbox"]):not([type="radio"]):focus,
select:focus,
textarea:focus {
    border-color: var(--cd-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
    outline: none;
}

.button {
    background: var(--cd-blue);
    border-color: var(--cd-blue);
}

.button:hover {
    background: var(--cd-blue-dark);
    border-color: var(--cd-blue-dark);
}

.subButton {
    background: #55728a;
    border-color: #55728a;
}

.subButton:hover {
    background: #415a70;
    border-color: #415a70;
}

.tableWrapper {
    border-color: var(--cd-border);
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.04);
}

.table th,
th {
    color: #24435a;
    background: var(--cd-table-head);
    border-bottom-color: var(--cd-border-strong);
}

.table td,
td {
    border-bottom-color: #d9e8f2;
}

.table tr:hover td {
    background: #f7fbfe;
}

.successMessage {
    color: #166534;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
}

.errorMessage {
    color: #991b1b;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.demoNotice {
    color: #7c4a03;
    background: #fff7d6;
    border-color: #f2d27a;
}

.projectSwitcherSelect,
.userMenuButton {
    background-color: #f8fcff;
    border-color: var(--cd-border-strong);
}

.userMenuDropdown {
    border-color: var(--cd-border);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.12);
}

.userMenuDropdown a:hover,
.userMenuDropdown button:hover,
.demoReadonlyMenuButton:hover {
    background-color: #eaf4fb;
}

.ticketContentId {
    color: #174ea6;
    background: var(--cd-heading-bg);
    border-color: var(--cd-border-strong);
}

.ticketBody {
    background: #f8fbfe;
    border-color: var(--cd-border);
}

.commentItem,
.historyItem {
    border-color: var(--cd-border);
}

.commentItem {
    background: #ffffff;
}

.historyItem {
    background: #fbfdff;
}

@media (min-width: 901px) {
    body.managementUi {
        font-size: 13px;
    }

    body.managementUi main.container {
        width: calc(100% - 32px);
        max-width: 1440px;
        margin: 14px auto 22px;
        padding: 16px;
        border-radius: 8px;
    }

    body.managementUi .siteHeaderInner {
        width: calc(100% - 32px);
        max-width: 1440px;
        padding: 8px 0;
        gap: 12px;
    }

    body.managementUi h1 {
        margin-bottom: 10px;
        font-size: 23px;
    }

    body.managementUi h2 {
        margin-bottom: 9px;
        font-size: 16px;
    }

    body.managementUi .pageHeader {
        gap: 10px;
        margin-bottom: 12px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--cd-border);
    }

    body.managementUi .card,
    body.managementUi .commentArea,
    body.managementUi .historyArea {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    body.managementUi .searchBox {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 8px;
        padding: 10px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    body.managementUi .searchKeyword {
        grid-column: span 2;
    }

    body.managementUi .searchActions {
        grid-column: span 2;
        gap: 6px;
    }

    body.managementUi .summaryArea {
        gap: 8px;
        margin: 12px 0 10px;
    }

    body.managementUi .summaryCard {
        min-height: 50px;
        padding: 8px 10px;
        border-left-width: 4px;
        border-radius: 6px;
        box-shadow: none;
    }

    body.managementUi .summaryCard strong {
        font-size: 20px;
    }

    body.managementUi .summaryLabel,
    body.managementUi .summaryNote {
        font-size: 11px;
    }

    body.managementUi .table th,
    body.managementUi .table td,
    body.managementUi th,
    body.managementUi td {
        padding: 6px 8px;
        font-size: 12px;
        line-height: 1.35;
    }

    body.managementUi .button {
        padding: 7px 12px;
        font-size: 12px;
        border-radius: 5px;
    }

    body.managementUi .smallButton {
        padding: 5px 8px;
        font-size: 11px;
    }

    body.managementUi .dashboardGrid {
        gap: 10px;
    }

    body.managementUi .dashboardListItem {
        padding: 8px 0;
    }

    body.managementUi .ticketDetailLayout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-areas:
            "content meta"
            "comments management"
            "comments relation"
            "comments attachments"
            "comments history";
        gap: 10px;
        align-items: start;
    }

    body.managementUi .ticketDetailLayout > * {
        min-width: 0;
        margin: 0;
    }

    body.managementUi .ticketDetailContent {
        grid-area: content;
        padding: 14px;
    }

    body.managementUi .ticketDetailMeta {
        grid-area: meta;
    }

    body.managementUi .ticketDetailManagement {
        grid-area: management;
    }

    body.managementUi .ticketDetailRelation {
        grid-area: relation;
    }

    body.managementUi .ticketDetailAttachments {
        grid-area: attachments;
    }

    body.managementUi .ticketDetailComments {
        grid-area: comments;
    }

    body.managementUi .ticketDetailHistory {
        grid-area: history;
        max-height: 520px;
        overflow: auto;
    }

    body.managementUi .ticketContentHeader {
        margin-bottom: 10px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--cd-border);
    }

    body.managementUi .ticketContentHeader h2 {
        color: #102a43;
        font-size: 21px;
        line-height: 1.35;
    }

    body.managementUi .ticketBody {
        min-height: 150px;
        padding: 13px;
        font-size: 14px;
        line-height: 1.7;
    }

    body.managementUi .ticketDetailLayout .detailList {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 6px 10px;
    }

    body.managementUi .ticketDetailLayout .detailList dt {
        color: #31566f;
    }

    body.managementUi .ticketDetailLayout .formGroup {
        margin-bottom: 10px;
    }

    body.managementUi .ticketDetailLayout input:not([type="checkbox"]):not([type="radio"]),
    body.managementUi .ticketDetailLayout select,
    body.managementUi .ticketDetailLayout textarea {
        padding: 7px 8px;
        font-size: 12px;
    }

    body.managementUi .ticketDetailLayout .commentItem {
        margin-bottom: 8px;
        padding: 9px;
    }

    body.managementUi .ticketDetailLayout .historyItem {
        padding: 8px 0;
    }
}

@media (min-width: 1280px) {
    body.managementUi .ticketDetailLayout {
        grid-template-columns: minmax(0, 1fr) 380px;
    }
}

@media (min-width: 901px) {
    body.userUi,
    body.guestUi {
        font-size: 14px;
    }

    body.userUi main.container,
    body.guestUi main.container {
        max-width: 1040px;
        padding: 28px;
    }

    body.userUi .card,
    body.guestUi .card,
    body.userUi .commentArea,
    body.userUi .historyArea,
    body.guestUi .loginCard,
    body.userUi .faqDetailCard,
    body.userUi .faqActionCard,
    body.guestUi .faqDetailCard,
    body.guestUi .faqActionCard {
        padding: 22px;
        border-radius: 10px;
    }

    body.userUi .searchBox,
    body.guestUi .searchBox {
        padding: 18px;
    }

    body.userUi .button,
    body.guestUi .button {
        padding: 8px 14px;
        font-size: 13px;
    }
}

.publicDemoNav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.publicDemoNav a {
    color: #174ea6;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.publicDemoNav a:hover {
    text-decoration: underline;
}

.publicDemoNotice {
    margin-bottom: 12px;
    text-align: center;
    font-size: 13px;
}

.publicDemoCta {
    margin-top: 24px;
}

body.publicDemoUi .siteHeader {
    box-shadow: 0 1px 0 rgba(37, 99, 235, 0.18);
}

body.publicDemoUi .pageHeader {
    margin-bottom: 14px;
}

body.publicDemoUi .summaryArea {
    margin-bottom: 14px;
}

body.publicDemoUi .searchBox {
    margin-bottom: 12px;
}

body.publicDemoUi .tableWrapper {
    margin-top: 8px;
}

body.publicDemoUi .ticketDetailLayout {
    gap: 10px;
}

body.publicDemoUi .ticketBody {
    min-height: 150px;
    padding: 13px;
    font-size: 14px;
    line-height: 1.7;
    border: 1px solid var(--cd-border);
    border-radius: 8px;
    background: #f8fbfe;
}

body.publicDemoUi .ticketContentHeader {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--cd-border);
}

body.publicDemoUi .ticketContentHeader h2 {
    color: #102a43;
    font-size: 21px;
    line-height: 1.35;
}

body.publicDemoUi .historyItem {
    padding: 8px 0;
}

body.publicDemoUi .ticketDetailLayout .detailList dt {
    color: #31566f;
}

@media (min-width: 901px) {
    body.publicDemoUi main.container {
        width: calc(100% - 32px);
        max-width: 1440px;
        margin: 14px auto 22px;
        padding: 16px;
        border-radius: 8px;
    }

    body.publicDemoUi .ticketDetailLayout {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 360px;
        grid-template-areas:
            "content meta"
            "comments management"
            "comments relation"
            "comments attachments"
            "comments history";
        gap: 10px;
        align-items: start;
    }

    body.publicDemoUi .ticketDetailLayout > * {
        min-width: 0;
        margin: 0;
    }

    body.publicDemoUi .card,
    body.publicDemoUi .commentArea,
    body.publicDemoUi .historyArea {
        padding: 12px;
        margin-bottom: 10px;
        border-radius: 6px;
    }

    body.publicDemoUi .ticketDetailContent {
        grid-area: content;
        padding: 14px;
    }

    body.publicDemoUi .ticketDetailMeta {
        grid-area: meta;
    }

    body.publicDemoUi .ticketDetailManagement {
        grid-area: management;
    }

    body.publicDemoUi .ticketDetailRelation {
        grid-area: relation;
    }

    body.publicDemoUi .ticketDetailAttachments {
        grid-area: attachments;
    }

    body.publicDemoUi .ticketDetailComments {
        grid-area: comments;
    }

    body.publicDemoUi .ticketDetailHistory {
        grid-area: history;
        max-height: 520px;
        overflow: auto;
    }

    body.publicDemoUi .ticketDetailLayout .detailList {
        grid-template-columns: 108px minmax(0, 1fr);
        gap: 6px 10px;
    }

    body.publicDemoUi .table th,
    body.publicDemoUi .table td {
        padding: 8px 10px;
        font-size: 13px;
    }
}

@media (min-width: 1280px) {
    body.publicDemoUi .ticketDetailLayout {
        grid-template-columns: minmax(0, 1fr) 380px;
    }
}
