.ticket-main { padding: 42px 0 84px; }
.ticket-layout { max-width: 960px; }
.case-page-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; }
.case-page-head h1 { margin-bottom: 0; font-size: 28px; }
.case-new-link { color: var(--teal-dark); font: 500 11px "DM Mono", monospace; text-decoration: none; }
.case-new-link:hover { text-decoration: underline; }
.ticket-intro { max-width: 620px; color: var(--muted); line-height: 1.7; }
.form-status { min-height: 24px; color: var(--teal-dark); font-size: 14px; }
.admin-view-indicator { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 20px 0; padding: 16px 19px; border: 1px solid #b34532; background: #fff0c2; box-shadow: 5px 6px 0 rgba(179, 69, 50, .14); }.admin-view-indicator .eyebrow { margin-bottom: 7px; color: #9b3328; }.admin-view-indicator strong { display: block; color: #772b25; font-size: 16px; }.admin-view-indicator p:last-child { margin: 6px 0 0; color: #6c4a31; font-size: 13px; line-height: 1.55; }.admin-view-indicator .secondary-button { min-height: 38px; flex: 0 0 auto; border-color: #b34532; color: #772b25; background: rgba(255, 255, 255, .45); font-size: 12px; }.admin-view-indicator .secondary-button:hover { background: var(--white); }
.admin-billing-desk { margin-top: 24px; padding: 24px 0; border-top: 2px solid #0c5960; border-bottom: 1px solid #b9cbc6; }.admin-billing-desk-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; }.admin-billing-desk-head h2 { margin: 0; font-size: 22px; }.admin-billing-desk-head label { display: grid; gap: 6px; color: #526c73; font: 500 10px "DM Mono", monospace; letter-spacing: .06em; }.admin-billing-desk-head select { min-width: 180px; padding: 9px 10px; border: 1px solid #a8bfbb; border-radius: 0; color: var(--ink); background: #fffef8; font: 13px "DM Sans", "Noto Sans Thai", sans-serif; }.admin-billing-desk-grid { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.65fr); gap: 20px; margin-top: 14px; }.billing-order-list { display: grid; align-content: start; gap: 7px; max-height: 590px; overflow-y: auto; }.billing-order-item { display: grid; gap: 5px; width: 100%; padding: 12px 13px; border: 1px solid #c4d6d2; border-radius: 0; color: var(--ink); background: #f0f6f3; text-align: left; cursor: pointer; }.billing-order-item:hover, .billing-order-item[aria-pressed="true"] { border-color: #0c5960; background: #d8ebe5; }.billing-order-item strong { font: 500 11px "DM Mono", monospace; }.billing-order-item span { color: #526c73; font-size: 12px; line-height: 1.45; }.billing-order-detail { min-width: 0; padding: 20px; border-left: 1px solid #c4d6d2; background: #fffef8; }.billing-order-detail h2 { margin: 0; font: 700 20px "DM Sans", "Noto Sans Thai", sans-serif; }.billing-order-detail h3 { margin: 22px 0 8px; color: #315e62; font-size: 14px; }.billing-order-detail p { margin: 0; color: #405565; font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }.billing-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 17px 0 0; border-top: 1px solid #d6e1dd; border-left: 1px solid #d6e1dd; }.billing-facts div { min-width: 0; padding: 10px; border-right: 1px solid #d6e1dd; border-bottom: 1px solid #d6e1dd; }.billing-facts dt { color: #60727c; font: 500 10px "DM Mono", monospace; letter-spacing: .05em; }.billing-facts dd { margin: 5px 0 0; color: #1e303b; font: 500 12px "DM Mono", monospace; overflow-wrap: anywhere; }.billing-lines, .billing-task-list, .billing-evidence-list { display: grid; gap: 7px; margin: 0; padding-left: 20px; color: #405565; font-size: 13px; line-height: 1.55; }.billing-evidence-list { font: 11px/1.55 "DM Mono", monospace; overflow-wrap: anywhere; }.billing-order-detail .secondary-button { margin-top: 13px; }
.ticket-panel { margin-top: 24px; padding: 28px; border: 1px solid #cad9d5; border-radius: 3px; background: var(--white); box-shadow: 7px 8px 0 rgba(16, 43, 62, .08); }
.request-form, .message-form { display: grid; gap: 11px; }
.request-form label, .message-form label { font-weight: 700; }
.request-form select, .request-form textarea, .message-form textarea { width: 100%; border: 1px solid #a8bfbb; border-radius: 2px; padding: 11px; color: var(--ink); background: #fbfcfa; font: inherit; }
.request-form textarea, .message-form textarea { min-height: 160px; resize: vertical; }
.request-form .primary-button, .message-form .primary-button { justify-self: start; margin-top: 7px; }
.ticket-list { display: grid; gap: 10px; margin-top: 24px; }
.ticket-list-item { display: grid; gap: 5px; padding: 16px 18px; border: 1px solid #c5d8d4; color: var(--ink); background: var(--note-blue); text-decoration: none; }
.ticket-list-item:hover { border-color: var(--teal); background: #cce6e4; }
.ticket-list-item span, .message-item small { color: var(--muted); font: 11px "DM Mono", monospace; }
.case-file { position: relative; margin-top: 24px; border: 1px solid #bccdca; background-color: #fcfcf7; background-image: linear-gradient(rgba(41, 106, 102, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(41, 106, 102, .05) 1px, transparent 1px); background-size: 100% 28px, 28px 100%; box-shadow: 11px 12px 0 rgba(16, 43, 62, .09); }
.case-file::before { content: ""; position: absolute; top: -9px; left: 42%; width: 110px; height: 20px; background: var(--tape); transform: rotate(-1.5deg); }
.case-file-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; padding: 30px 32px 20px; background: rgba(255, 255, 250, .94); border-bottom: 1px solid #bdcfca; }
.case-number { margin: 0 0 10px; color: var(--teal); font: 500 11px "DM Mono", monospace; letter-spacing: .07em; overflow-wrap: anywhere; }
.case-file-head h2 { margin: 0; font-size: 22px; }
.ticket-status { padding: 6px 9px; color: #075c58; background: #dcefcf; font: 11px "DM Mono", monospace; }
.case-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; background: rgba(242, 247, 245, .92); border-bottom: 1px solid #bdcfca; }.case-facts div { padding: 16px 20px; border-right: 1px solid #d3dfdb; }.case-facts div:last-child { border-right: 0; }.case-facts dt { margin-bottom: 7px; color: #526c73; font: 500 10px "DM Mono", monospace; letter-spacing: .06em; }.case-facts dd { margin: 0; color: var(--ink); font-size: 13px; line-height: 1.45; }
.case-brief { padding: 25px 32px; background: rgba(255, 255, 250, .86); border-bottom: 1px solid #bdcfca; }.case-brief h3, .section-label h3, .conversation h3 { margin: 0; font-size: 17px; }.ticket-details { margin: 10px 0 0; white-space: pre-wrap; color: #365063; line-height: 1.7; }
.case-records { padding: 24px 32px; background: rgba(255, 255, 250, .88); border-bottom: 1px solid #bdcfca; }.section-label { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 12px; }.section-label span { color: var(--muted); font: 10px "DM Mono", monospace; }
.quotation-list { display: grid; gap: 8px; }.quotation-link { display: grid; gap: 3px; padding: 12px 14px; border: 1px solid #d3dad1; color: var(--ink); background: #fffceb; text-decoration: none; }.quotation-link:hover { border-color: var(--teal); }.quotation-link strong { font-size: 13px; }.quotation-link span { color: var(--muted); font: 10px "DM Mono", monospace; }
.conversation { padding: 29px 32px 32px; }.conversation-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 18px; }.conversation-head .eyebrow { margin-bottom: 7px; }.chat-window { max-width: 230px; color: #506a6f; font: 10px/1.45 "DM Mono", monospace; text-align: right; }
.message-list { display: grid; gap: 14px; }.message-item { width: min(78%, 590px); padding: 15px 17px 16px; box-shadow: 4px 5px 0 rgba(16, 43, 62, .09); }.message-customer { justify-self: start; border: 1px solid #a7cfd1; background: var(--note-blue); transform: rotate(-.35deg); }.message-admin { justify-self: end; border: 1px solid #ded07c; background: var(--note-yellow); transform: rotate(.3deg); }.message-system { width: 100%; box-sizing: border-box; border: 1px dashed #a9bdb6; background: rgba(239, 245, 241, .92); box-shadow: none; }.message-item small { display: block; color: #51717a; font: 10px "DM Mono", monospace; }.message-item p { margin: 9px 0 0; white-space: pre-wrap; color: #203e4d; font-size: 14px; line-height: 1.65; }.message-record-link { display: inline-flex; margin-top: 13px; padding: 8px 10px; border: 1px solid var(--teal); color: var(--white); background: var(--teal); font: 500 10px "DM Mono", monospace; text-decoration: none; }.message-record-link:hover { background: var(--teal-dark); }
.message-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }.message-tool { min-height: 34px; padding: 7px 11px; border: 1px solid #729994; border-radius: 0; color: #164c4d; background: rgba(255, 255, 255, .86); font: 700 11px/1 "DM Sans", "Noto Sans Thai", sans-serif; cursor: pointer; }.message-tool:hover { color: var(--ink); background: var(--white); }.message-tool-delete { border-color: #b34532; color: #8b3028; }.message-tool-delete:hover { background: #fff0ec; }
.admin-inbox { margin-top: 28px; padding-top: 24px; border-top: 2px solid #0c5960; }.admin-inbox-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 14px; }.admin-inbox-head h2 { margin: 0; font-size: 22px; }.admin-ticket-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }.admin-ticket-item { position: relative; display: grid; min-width: 0; gap: 7px; width: 100%; padding: 16px 46px 16px 17px; border: 1px solid #c4d6d2; border-left: 4px solid #4d938d; border-radius: 0; color: var(--ink); background: #fffef8; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }.admin-ticket-item:hover { border-color: #0c5960; background: #edf6f2; transform: translateY(-1px); }.admin-ticket-item[aria-pressed="true"] { border-color: #0c5960; border-left-color: #f4bd38; background: #e2f0eb; box-shadow: 4px 5px 0 rgba(16, 43, 62, .08); }.admin-ticket-item strong { display: block; color: var(--ink); font: 700 14px/1.35 "DM Sans", "Noto Sans Thai", sans-serif; overflow-wrap: anywhere; }.admin-ticket-item span:not(.admin-unread-count) { display: block; color: #526c73; font: 500 11px/1.45 "DM Mono", monospace; overflow-wrap: anywhere; }.admin-unread-count { position: absolute; top: 14px; right: 14px; display: grid; min-width: 24px; height: 24px; place-items: center; padding: 0 6px; border-radius: 50%; color: #6c3910; background: var(--yellow); font: 700 11px "DM Mono", monospace; }
@media (max-width: 680px) { .admin-inbox { margin-top: 24px; }.admin-inbox-head { align-items: start; flex-direction: column; gap: 10px; }.admin-ticket-list { grid-template-columns: 1fr; }.admin-ticket-item { min-height: 92px; } }
.message-form { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin-top: 22px; padding: 15px; border: 0; border-top: 1px dashed #8ba8a4; border-radius: 0; background: transparent; box-shadow: none; }.composer-label { grid-column: 1 / -1; color: #315e62; font: 500 10px "DM Mono", monospace; letter-spacing: .06em; }.message-form textarea { min-height: 56px; padding: 12px 14px; border: 1px solid #d4d9d5; background: rgba(255, 255, 255, .9); }.message-form .primary-button { align-self: end; min-height: 56px; margin: 0; border-radius: 0; font: 500 11px "DM Mono", monospace; }
.admin-case-log { background-color: #fcfcf7; background-image: linear-gradient(rgba(41, 106, 102, .06) 1px, transparent 1px); background-size: 100% 28px; }.admin-case-log .conversation-head { margin-bottom: 16px; }.admin-case-log .conversation-head h2 { margin: 0; font-size: 19px; }.admin-case-log .message-list { max-height: 440px; overflow-y: auto; padding: 7px 5px 11px; }.admin-case-log .message-form { padding-bottom: 0; }
.request-page { background-color: #edf1ed; background-image: linear-gradient(rgba(31, 105, 100, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(31, 105, 100, .045) 1px, transparent 1px); background-size: 28px 28px; }.request-main { box-sizing: border-box; display: grid; min-height: calc(100vh - 122px); place-items: center; padding: 32px 16px 52px; }.request-sheet { position: relative; width: min(100%, 680px); padding: 27px 30px 30px; border: 1px solid #b9cbc6; background: #fffef8; box-shadow: 10px 12px 0 rgba(16, 43, 62, .10); }.request-sheet::before { content: ""; position: absolute; top: -8px; left: calc(50% - 45px); width: 90px; height: 18px; background: var(--tape); transform: rotate(-1deg); }.request-sheet-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid #bfceca; }.request-sheet-head .eyebrow { margin-bottom: 7px; }.request-sheet-head h1 { margin: 0; color: var(--ink); font-size: 25px; line-height: 1.25; }.request-close { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #adc1bd; color: #315e62; font: 400 25px/1 "DM Sans", sans-serif; text-decoration: none; }.request-close:hover { color: var(--ink); background: var(--note-yellow); }.request-sheet .ticket-intro { margin: 15px 0 0; max-width: none; font-size: 14px; line-height: 1.65; }.request-sheet .ticket-panel { margin-top: 17px; padding: 18px 0 0; border: 0; border-top: 1px dashed #aabbb6; border-radius: 0; background: transparent; box-shadow: none; }.request-sheet .request-form { gap: 10px; }.request-reference { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 13px 14px; border: 1px solid #d1ddda; background: #f2f7f4; }.field-label { margin: 0 0 6px; color: #536c72; font: 500 10px "DM Mono", monospace; letter-spacing: .05em; }.request-reference output { color: var(--ink); font-size: 13px; font-weight: 700; }.request-sheet .request-form textarea { min-height: 116px; }.request-sheet .request-form .primary-button { min-width: 164px; margin-top: 4px; border-radius: 0; font: 500 11px "DM Mono", monospace; }
@media (max-width: 680px) { .ticket-main { padding: 32px 0 58px; }.admin-view-indicator { align-items: stretch; flex-direction: column; gap: 14px; }.admin-view-indicator .secondary-button { width: 100%; }.admin-billing-desk-head { align-items: stretch; flex-direction: column; }.admin-billing-desk-head select { width: 100%; }.admin-billing-desk-grid { grid-template-columns: 1fr; }.billing-order-list { max-height: 300px; }.billing-order-detail { padding: 17px 0 0; border-top: 1px solid #c4d6d2; border-left: 0; background: transparent; }.billing-facts { grid-template-columns: 1fr; }.case-page-head { align-items: start; }.case-page-head h1 { font-size: 25px; }.ticket-panel { padding: 21px 18px; }.case-file-head { padding: 26px 20px 18px; flex-direction: column; gap: 10px; }.case-file-head h2 { font-size: 21px; }.case-facts { grid-template-columns: 1fr; }.case-facts div { border-right: 0; border-bottom: 1px solid #d3dfdb; }.case-facts div:last-child { border-bottom: 0; }.case-brief, .case-records, .conversation { padding-left: 20px; padding-right: 20px; }.conversation-head { align-items: start; flex-direction: column; }.chat-window { text-align: left; }.message-item { width: calc(100% - 14px); }.message-form { grid-template-columns: 1fr; padding-left: 0; padding-right: 0; }.message-form .primary-button { width: 100%; }.request-main { min-height: calc(100vh - 114px); align-items: start; padding: 28px 14px 42px; }.request-sheet { padding: 23px 19px 22px; }.request-sheet-head h1 { font-size: 22px; }.request-reference { grid-template-columns: 1fr; gap: 12px; }.request-sheet .request-form .primary-button { width: 100%; } }
@media (hover: hover) and (pointer: fine) { .case-file, .request-sheet { transition: transform .18s ease, box-shadow .18s ease; }.case-file:hover { box-shadow: 14px 16px 0 var(--pinned-shadow); transform: translateY(-3px); }.request-sheet:hover { box-shadow: 13px 15px 0 var(--pinned-shadow); transform: translateY(-3px); } }