/* Minification failed. Returning unminified contents.
(1418,32): run-time error CSS1030: Expected identifier, found '>'
(1418,52): run-time error CSS1031: Expected selector, found ')'
(1418,52): run-time error CSS1025: Expected comma or open brace, found ')'
 */
body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* ============================================================
   Web フォント定義
   - Inter: 英数字用 (SIL OFL 1.1)
   - Noto Sans JP: 日本語用 (SIL OFL 1.1) ※最優先
   - BIZ UDPGothic: 日本語UDフォントフォールバック (SIL OFL 1.1)
     OSにインストール済みの場合は local() で利用、無い場合は
     woff2 ファイル (セルフホスト) を読み込む。
   .woff2 ファイルは ~/Content/fonts/ 配下に配置してください。
   詳細は Content/fonts/README.md を参照。
   ============================================================ */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Inter Regular'), local('Inter-Regular'),
         url('fonts/Inter/Inter-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Inter Bold'), local('Inter-Bold'),
         url('fonts/Inter/Inter-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('Noto Sans JP Regular'), local('NotoSansJP-Regular'), local('Noto Sans CJK JP Regular'),
         url('fonts/NotoSansJP/NotoSansJP-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'Noto Sans JP';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('Noto Sans JP Bold'), local('NotoSansJP-Bold'), local('Noto Sans CJK JP Bold'),
         url('fonts/NotoSansJP/NotoSansJP-Bold.woff2') format('woff2');
}
@font-face {
    font-family: 'BIZ UDPGothic';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: local('BIZ UDPGothic'),
         local('BIZ UDPGothic Regular'),
         local('BIZUDPGothic-Regular'),
         local('BIZUDPGothic'),
         url('fonts/BIZUDPGothic/BIZUDPGothic-Regular.woff2') format('woff2');
}
@font-face {
    font-family: 'BIZ UDPGothic';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: local('BIZ UDPGothic Bold'),
         local('BIZUDPGothic-Bold'),
         local('BIZUDPGothic Bold'),
         url('fonts/BIZUDPGothic/BIZUDPGothic-Bold.woff2') format('woff2');
}

body {
    font-family: 'Inter',
                 'Noto Sans JP',
                 'BIZ UDPGothic',
                 'Yu Gothic UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
                 'Meiryo',
                 'Helvetica Neue', Arial, sans-serif;
    font-feature-settings: "palt";
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 数値表(サイズ表示など)の桁揃え */
.text-right,
table td.text-right,
.num {
    font-variant-numeric: tabular-nums;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Override the default bootstrap behavior where horizontal description lists 
   will truncate terms that are too long to fit in the left column 
*/
.dl-horizontal dt {
    white-space: normal;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}
/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}
/*カスタム*/
.login-whole-box {
    position: relative;
    width: 800px;
    margin-top: 500px auto;
    margin: 0 auto;
    height: auto;
    top: 100px;
}

.drophover {
    position: absolute;
    min-height: 500px;
    min-width: 300px;
    background-color: aquamarine;
    opacity: 0.5;
}


#myDiv {
    width: 150px;
    border: solid 1px #2AA7DE;
    background: #6CC8EF;
    text-align: center;
    padding: 4em .5em;
    margin: 1em;
    float: left;
}

.target-dragover {
    border-style: solid;
    background-color: #00ffff;
    -moz-opacity: 0.6;
    opacity: 0.6;
    z-index: 100;
    border-color: #00ffff;
}

/*.target-string {
    margin: 0 0 0 -300px;
    width: 600px; 横幅
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 30px;
    background-color: red;
    display: none;
    text-align: center;
}*/

.target-string {
    /*margin: 0 0 0 -300px;*/ /*縦横の半分をネガティブマージンでずらす*/
    width: 100%; /*横幅*/
    height: 100%; /*横幅*/
    position: absolute;
    font-size: 30px;
    background-color: #00ffff;
    display: none;
    text-align: center;
    -moz-opacity: 0.1;
    opacity: 0.1;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
}

.table-custom-over {
    background-color: #acf5fc;
}

.table-custom-hover {
    background-color: #e9fdff;
}

.container {
    width: 1400px !important;
}

.thumb-image {
    max-width: 90px;
    max-height: 90px;
    height: auto;
    width: auto;
}



/* ===== Preserve theme-specific overrides when updating to Bootstrap 3.4.1 ===== */

/* 本テーマの本文フォント/カラー */
body {
    font-family: 'Inter',
                 'Noto Sans JP',
                 'BIZ UDPGothic',
                 'Yu Gothic UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
                 'Meiryo',
                 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #666666;
    background-color: #ffffff;
}

/* Glyphicons の相対パス（フォント配置が同じならそのまま／違うなら編集） */
@font-face {
    font-family: 'Glyphicons Halflings';
    src: url('../fonts/glyphicons-halflings-regular.eot');
    src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

/* ナビバー（inverse）の配色を継承 */
.navbar-inverse {
    background-color: #446e9b;
    border-color: #345578;
}

    .navbar-inverse .navbar-brand {
        color: #dddddd;
    }

    .navbar-inverse .navbar-nav > li > a {
        color: #dddddd;
    }

/* リンク風ボタン */
.btn-link {
    color: #3399f3;
    font-weight: normal;
    border-radius: 0;
}

/* テーブルの罫線表示方針（collapse） */
.table {
    border-collapse: collapse !important;
}

/* モーダルの最大幅（画像/PDF表示に合わせて維持） */
.modal-lg {
    width: 900px;
}

/* ラベルの縁取り */
.label {
    border: 1px solid #000;
}

/* --- Buttons: Bootswatch系の primary グラデーション/色味を維持 --- */
.btn-primary {
    color: #ffffff;
    background-color: #446e9b;
    border-color: #446e9b;
}

.btn-primary {
    background-image: -webkit-linear-gradient(#6d94bf, #446e9b 50%, #3e648d);
    background-image: -o-linear-gradient(#6d94bf, #446e9b 50%, #3e648d);
    background-image: -webkit-gradient(linear, left top, left bottom, from(#6d94bf), color-stop(50%, #446e9b), to(#3e648d));
    background-image: linear-gradient(#6d94bf, #446e9b 50%, #3e648d);
    background-repeat: no-repeat;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff6d94bf', endColorstr='#ff3e648d', GradientType=0);
    -webkit-filter: none;
    filter: none;
    border: 1px solid #345578;
}
/* （必要なら）:hover/:focus/:active などの派生ルールも追加で維持したい場合はここに追記 */

.navba.btn-info {
  color: #fff;
  background-color: #5bc0de;      /* 背景を旧Bootswatch調へ */
  border-color: #46b8da;
  background-image: linear-gradient(#7cd0ec, #5bc0de 50%, #31b0d5);
  background-repeat: no-repeat;
  filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff7cd0ec', endColorstr='#ff31b0d5', GradientType=0);
}r-fixed-top {
    position: absolute !important;
}

/* site.css（bootstrapの後で読み込み） */
.navbar{
    background-color: #fff !important;
    border:none !important;
}
/* jQuery UI dialog buttons → Bootstrap風 */
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset .ui-button {
    padding: 6px 12px;
    font-size: 14px;
    line-height: 1.42857143;
    border-radius: 4px;
    border: 1px solid #ccc;
    background: #fff;
    color: #333;
    margin-left: .5em;
}

    .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset .ui-button:hover {
        background-color: #e6e6e6;
        border-color: #adadad;
    }

    .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset .ui-button.btn-primary,
    .ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset .ui-button[data-primary="true"] {
        color: #fff;
        background-color: #337ab7;
        border-color: #2e6da4;
    }

/* Home / KI Sign filename option */
.ki-sign-option-badge {
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    width: 20px;
    height: 20px;
}

.ki-sign-option-badge-warning {
    filter: drop-shadow(0 0 2px #f0ad4e);
}

.ki-sign-option-badge-error {
    filter: drop-shadow(0 0 2px #d9534f);
}

.ki-sign-option-warning-mark {
    display: inline-block;
    vertical-align: middle;
    margin-left: 2px;
    color: #f0ad4e;
    font-weight: bold;
    cursor: help;
}

.ki-sign-option-warning-label,
.ki-sign-option-error-label {
    display: inline-block;
    vertical-align: middle;
    margin-left: 4px;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    cursor: help;
    line-height: 1.4;
}

.ki-sign-option-warning-label {
    color: #8a6d3b;
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
}

.ki-sign-option-error-label {
    color: #a94442;
    background-color: #f2dede;
    border: 1px solid #ebccd1;
}

#dialog-kisign-option .form-control {
    max-width: none;
    width: 100%;
}

#dialog-kisign-option .form-inline .form-control {
    width: auto;
}

#dialog-kisign-option .kisign-option-date-label {
    display: block;
}

#dialog-kisign-option .kisign-option-date-controls {
    margin-top: 4px;
}

#dialog-kisign-option .kisign-option-section-box,
#dialog-kisign-upload-option .kisign-option-section-box {
    border: 1px solid #bce8f1;
    border-radius: 4px;
    padding: 10px 12px;
    background-color: #f5fbff;
    margin-bottom: 12px;
}

#dialog-kisign-option .kisign-option-section-title,
#dialog-kisign-upload-option .kisign-option-section-title {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #31708f;
}

#dialog-kisign-option .kisign-option-section-box .form-group:last-child {
    margin-bottom: 0;
}

#dialog-kisign-option .kisign-option-period-row,
#dialog-kisign-upload-option .kisign-option-period-row {
    margin-left: 16px;
    margin-top: 10px;
}

#dialog-kisign-option .kisign-option-period-row .kisign-option-date-label,
#dialog-kisign-upload-option .kisign-option-period-row .kisign-option-date-label {
    font-weight: normal;
}

#dialog-kisign-option .kisign-option-date-control .form-control,
#dialog-kisign-upload-option .kisign-option-date-control .form-control {
    display: inline-block;
    width: auto;
}

#dialog-kisign-option .kisign-option-date-control,
#dialog-kisign-upload-option .kisign-option-date-control {
    display: inline-block;
    margin-top: 0;
    margin-right: 4px;
    vertical-align: middle;
}

#dialog-kisign-option .kisign-option-clear-date,
#dialog-kisign-upload-option .kisign-option-clear-date {
    margin-left: 6px;
}

#dialog-kisign-option .kisign-option-hm-row,
#dialog-kisign-upload-option .kisign-option-hm-row {
    margin-bottom: 4px;
}

#dialog-kisign-option .kisign-option-hm-row .form-control,
#dialog-kisign-upload-option .kisign-option-hm-row .form-control {
    display: inline-block;
    width: 120px;
}

#dialog-kisign-option .kisign-option-weekday-clear-area,
#dialog-kisign-upload-option .kisign-option-weekday-clear-area {
    margin-top: 8px;
}

#dialog-kisign-option-confirm .kisign-option-confirm-row {
    margin-bottom: 12px;
}

#dialog-kisign-option-confirm .kisign-option-confirm-title {
    display: block;
    margin-bottom: 4px;
    font-weight: bold;
}

#dialog-kisign-option-confirm .kisign-option-confirm-file-name {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    font-weight: normal;
    word-break: break-all;
    white-space: normal;
}

#dialog-kisign-option-confirm .kisign-option-confirm-changes {
    margin-top: 12px;
    padding: 8px 10px;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    background-color: #f5fbff;
}

#dialog-kisign-option-confirm .kisign-option-confirm-changes table {
    width: 100%;
    margin-bottom: 0;
}

#dialog-kisign-option-confirm .kisign-option-confirm-changes th,
#dialog-kisign-option-confirm .kisign-option-confirm-changes td {
    padding: 3px 4px;
    vertical-align: top;
    word-break: break-all;
}

#dialog-kisign-option-confirm .kisign-option-confirm-changes th {
    width: 90px;
    color: #31708f;
    white-space: nowrap;
}

.kisign-option-help {
    color: #777;
    font-size: 12px;
    margin-top: 4px;
}

.tooltip-inner {
    white-space: pre-line;
    text-align: left;
}

#dialog-kisign-upload-option .form-control {
    max-width: none;
    width: 100%;
}

#dialog-kisign-upload-option .form-inline .form-control {
    width: auto;
}

#dialog-kisign-upload-list .kisign-upload-file-item {
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#dialog-kisign-upload-list .kisign-upload-file-item:last-child {
    border-bottom: none;
}

#dialog-kisign-upload-list .kisign-upload-file-item .file-option-status {
    font-size: 12px;
    color: #31708f;
    margin-left: 8px;
}

.drop-zone {
    border: 3px dashed #ccc;
    border-radius: 12px;
    padding: 60px 40px;
    text-align: center;
    color: #888;
    flex: 1;
    font-size: 16px;
    transition: background-color 0.2s, border-color 0.2s;
    cursor: default;
}

.drop-zone-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(255,255,255,0.92);
    padding: 40px;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.drop-zone-container.visible {
    display: flex;
}

.drop-zone-direct:hover,
.drop-zone-direct.dragover {
    border-color: #5cb85c;
    background-color: #f0fff0;
    color: #3c763d;
}

.drop-zone-option:hover,
.drop-zone-option.dragover {
    border-color: #31708f;
    background-color: #f5fbff;
    color: #31708f;
}

/* KI Sign filename option dialogs */
.dialog-initial-hidden {
    display: none;
}

.kisign-option-add-hm,
.kisign-upload-add-hm {
    margin-top: 4px;
}

.kisign-option-t,
.kisign-upload-t {
    width: 120px;
    display: inline-block;
}

.kisign-option-clear-t,
.kisign-upload-clear-t {
    margin-left: 6px;
}

.kisign-upload-file-list-area {
    max-height: 350px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 8px;
    border-radius: 4px;
    background: #fafafa;
}

.kisign-upload-option-file-list {
    max-height: 80px;
    overflow-y: auto;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    background: #fafafa;
}

.kisign-upload-option-help {
    color: #777;
    font-size: 12px;
    margin-bottom: 10px;
}

.kisign-upload-option-preview {
    max-height: 80px;
    overflow-y: auto;
    word-break: break-all;
}

.kisign-repeat-number-input {
    width: 58px;
}

.kisign-repeat-time-input {
    width: 120px;
}

.kisign-upload-repeat-number-input {
    width: 70px;
    display: inline-block;
}

.kisign-upload-repeat-time-input {
    width: 130px;
    display: inline-block;
}

.kisign-upload-old-name {
    color: #999;
    text-decoration: line-through;
}

.kisign-upload-file-newname {
    color: #31708f;
    font-weight: bold;
    cursor: help;
}

.kisign-upload-file-name-cell {
    flex: 1;
    min-width: 0;
    word-break: break-all;
}

.kisign-upload-file-option-btn {
    margin-left: 8px;
}

#kisign-option-hover-tooltip {
    position: absolute;
    z-index: 10001;
    min-width: 280px;
    max-width: 520px;
    white-space: normal;
    text-align: left;
    background-color: #fff;
    color: #333;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.5;
    box-shadow: 0 3px 10px rgba(0,0,0,.2);
    pointer-events: none;
}

.kisign-option-tooltip-header {
    font-weight: bold;
    margin: -10px -12px 8px -12px;
    padding: 8px 12px;
    background: #d9edf7;
    border-bottom: 1px solid #bce8f1;
    color: #31708f;
}

.kisign-option-tooltip-section-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #31708f;
}

.kisign-option-tooltip-table {
    width: 100%;
    border-collapse: collapse;
}

.kisign-option-tooltip-table-spaced {
    margin-bottom: 6px;
}

.kisign-option-tooltip-table th {
    vertical-align: top;
    white-space: nowrap;
    color: #31708f;
    padding: 2px 10px 2px 0;
}

.kisign-option-tooltip-table td {
    vertical-align: top;
    padding: 2px 0;
}

.kisign-option-tooltip-control {
    margin-top: 6px;
    border-top: 1px solid #eee;
    padding-top: 6px;
}

.kisign-option-tooltip-control-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #8a6d3b;
}

.kisign-option-tooltip-error {
    margin-top: 6px;
    color: #a94442;
}

.kisign-option-tooltip-warning {
    margin-top: 6px;
    padding: 8px 10px;
    background-color: #fcf8e3;
    border: 1px solid #faebcc;
    border-left: 4px solid #f0ad4e;
    border-radius: 3px;
    color: #8a6d3b;
}

.kisign-option-tooltip-warning-title {
    font-weight: bold;
    margin-bottom: 4px;
    color: #8a6d3b;
}

.kisign-option-tooltip-notes {
    margin-top: 6px;
    color: #777;
    font-size: 11px;
}

.upload-progress-container {
    min-width: 360px;
}

.upload-progress-frame {
    border: 1px solid #999;
    height: 24px;
    margin-top: 12px;
    background-color: #f5f5f5;
}

#upload-progress-bar {
    width: 0;
    height: 100%;
    line-height: 24px;
    background-color: #5bc0de;
    color: #fff;
    text-align: center;
}

#upload-progress-text {
    margin-top: 8px;
    font-size: 13px;
}

/* Home file list */
.hidden-empty,
.context-menu-hidden {
    display: none;
}

.drop-zone-upload-icon {
    font-size: 48px;
}

.drop-zone-option-icon {
    width: 48px;
    height: 48px;
}

.no-select {
    -moz-user-select: none;
    -khtml-user-select: none;
    user-select: none;
}

.file-list-area-min-height {
    min-height: 500px;
}

.table-middle,
.table-middle > td,
.cell-middle {
    vertical-align: middle !important;
}

.modal-body-tight {
    padding: 5px !important;
}

.video-full-width {
    max-width: 100%;
}

.pdf-dialog {
    width: 90%;
}

.pdf-modal-body {
    height: 90vh;
}

.pdf-frame {
    border: none;
}

.file-name-inline {
    display: inline-block;
    _display: inline;
}

/* ファイル一覧テーブルの列幅と折り返し制御 */
.file-list-table {
    table-layout: auto;
    width: 100%;
}

.file-list-table .cell-nowrap {
    white-space: nowrap;
}

.file-list-table .col-name {
    width: 100%;
    max-width: 0; /* 子の flex に幅を委譲し ellipsis を有効化 */
}

.file-list-table .col-name > .file-name-cell {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    width: 100%;
}

.file-list-table .col-name .file-name-cell > img,
.file-list-table .col-name .file-name-cell > a > img,
.file-list-table .col-name .file-name-cell > .ki-sign-option-badge,
.file-list-table .col-name .file-name-cell > .ki-sign-option-warning-label,
.file-list-table .col-name .file-name-cell > .ki-sign-option-error-label {
    flex: 0 0 auto;
}

.file-list-table .col-name .file-name-cell > .file-name-inline {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.file-list-table .col-name .file-name-cell > .file-name-inline > a {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-list-table .col-updated {
    width: 1%;
    min-width: 155px;
}

.file-list-table .col-type {
    width: 1%;
    min-width: 70px;
}

.file-list-table .col-count {
    width: 1%;
    min-width: 80px;
    text-align: center;
}

.file-list-table .col-size {
    width: 1%;
    min-width: 80px;
    text-align: right;
}

.context-menu-wide {
    min-width: 210px;
}

.context-menu-narrow {
    min-width: 150px;
}

.context-menu-item-wide {
    min-width: 210px;
    white-space: nowrap;
}

.context-menu-item-narrow {
    min-width: 150px;
}

/* =====================================================================
   Right-click context menu modern refresh
   ===================================================================== */
#jqContextMenu {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    z-index: 1050 !important;
}
#jqContextMenu > ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 6px 0 !important;
    background: #ffffff !important;
    border: 1px solid #e5e9f0 !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 24px rgba(30, 50, 80, 0.18), 0 2px 6px rgba(30, 50, 80, 0.08) !important;
    min-width: 200px !important;
    width: auto !important;
    overflow: hidden;
    font-size: 13px;
}
#jqContextMenu > ul > li {
    display: flex !important;
    align-items: center !important;
    gap: 8px;
    margin: 0 !important;
    padding: 8px 14px !important;
    border: none !important;
    border-left: 3px solid transparent !important;
    background-color: transparent !important;
    color: #2f3a4a !important;
    cursor: pointer !important;
    white-space: nowrap;
    transition: background-color 0.12s ease, color 0.12s ease, border-color 0.12s ease;
    font-size: 13px;
    line-height: 1.5;
}
#jqContextMenu > ul > li:hover {
    background-color: #f1f6fb !important;
    color: #2c5282 !important;
    border-left-color: #4a8ecc !important;
}
#jqContextMenu > ul > li img {
    width: 16px;
    height: 16px;
    vertical-align: middle;
    padding-right: 0 !important;
    margin: 0;
    flex-shrink: 0;
}

/* Replace legacy image icons with unified Glyphicons */
#jqContextMenu > ul > li > img {
    display: none !important;
}
#jqContextMenu > ul > li::before {
    font-family: 'Glyphicons Halflings';
    content: "\e136"; /* default: asterisk-ish placeholder */
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: #6c7a8a;
    flex-shrink: 0;
    transition: color 0.12s ease;
    font-weight: normal;
    line-height: 1;
}
#jqContextMenu > ul > li:hover::before {
    color: #2c5282;
}
#jqContextMenu > ul > li#list::before          { content: "\e056"; } /* th-list */
#jqContextMenu > ul > li#rename::before        { content: "\270f"; } /* pencil */
#jqContextMenu > ul > li#kisignOption::before  { content: "\e019"; } /* cog */
#jqContextMenu > ul > li#move::before          { content: "\e177"; } /* transfer */
#jqContextMenu > ul > li#download::before      { content: "\e025"; } /* download-alt */
#jqContextMenu > ul > li#delete::before        { content: "\e020"; } /* trash */
#jqContextMenu > ul > li#folder::before        { content: "\1f4c1"; } /* folder-close */
#jqContextMenu > ul > li#thumb::before         { content: "\e060"; } /* picture */

/* Visually emphasise the "delete" item */
#jqContextMenu > ul > li#delete {
    color: #a94442 !important;
}
#jqContextMenu > ul > li#delete::before {
    color: #c66262;
}
#jqContextMenu > ul > li#delete:hover {
    background-color: #fdf3f2 !important;
    color: #8a3a3a !important;
    border-left-color: #c66262 !important;
}
#jqContextMenu > ul > li#delete:hover::before {
    color: #8a3a3a;
}

/* Rename dialog input: full width */
#dialog-form-rename {
    padding: 14px 18px !important;
}
#dialog-form-rename form,
#dialog-form-rename fieldset {
    width: 100%;
    margin: 0;
    padding: 0;
    border: none;
}
#dialog-form-rename .file-name {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

.home-toolbar-shell {
    height: 180px;
    vertical-align: bottom;
    display: table-cell;
}

.home-toolbar-spacer {
    height: 20px;
}

.home-toolbar-item {
    float: left;
}

.file-upload {
    display: none;
}

.breadcrumb-row {
    margin-left: 10px;
}


/* =====================================================================
   App-wide modern UI refresh
   ===================================================================== */

/* Base */
body {
    background-color: #f5f7fa;
    color: #2f3a4a;
}

.app-container {
    padding-top: 12px;
}

/* ---------- Top navbar ---------- */
.app-navbar.navbar {
    background-color: #ffffff !important;
    border-bottom: 1px solid #e5e9f0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    min-height: 56px;
}

.app-navbar .navbar-header {
    float: left;
}

.app-navbar-brand {
    font-weight: 600;
    color: #2c5282 !important;
    font-size: 17px;
    line-height: 56px !important;
    padding: 0 16px !important;
    height: 56px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.app-navbar-brand .glyphicon {
    color: #4a8ecc;
    font-size: 18px;
    margin-right: 6px;
}
.app-navbar-brand-logo {
    height: 36px;
    width: auto;
    margin-right: 8px;
    display: inline-block;
    vertical-align: middle;
}
.app-navbar-brand:hover,
.app-navbar-brand:focus {
    color: #1f3d62 !important;
    text-decoration: none;
}

.app-navbar .navbar-nav > li > a.app-navbar-user {
    color: #4a5568;
    font-weight: 500;
    padding: 18px 16px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.app-navbar .navbar-nav > li > a.app-navbar-user .glyphicon {
    color: #4a8ecc;
}
.app-navbar .navbar-nav > li > a.app-navbar-user:hover,
.app-navbar .navbar-nav > li > a.app-navbar-user:focus {
    background-color: #f5f8fb;
    color: #2c5282;
}

/* ---------- Sidebar ---------- */
.app-sidebar {
    padding-top: 18px;
    position: sticky;
    top: 68px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    z-index: 1;
}

.app-brand-block {
    margin: 18px 18px 14px 18px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
    text-align: center;
}
.app-brand-logo {
    max-height: 90px;
    margin: 0 auto;
}

/* Menu card */
.app-menu-panel.panel {
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    background: #ffffff;
}
.app-menu-panel.panel-info > .panel-heading {
    background: linear-gradient(180deg, #5b8cc6 0%, #446e9b 100%);
    color: #ffffff;
    border-bottom: none;
    padding: 10px 14px;
}
.app-menu-panel.panel-info > .panel-heading .panel-title {
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.05em;
}
.app-menu-panel.panel-info > .panel-heading .panel-title .glyphicon {
    margin-right: 6px;
    font-size: 12px;
    opacity: 0.9;
}

.app-menu-panel .panel-body {
    padding: 6px 0;
}

.app-menu-list {
    margin: 0;
}
.app-menu-list > li {
    margin: 0;
}

.app-menu-link {
    display: block;
    padding: 10px 14px 10px 38px;
    color: #3a4a5e;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-left: 3px solid transparent;
    position: relative;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-menu-link:hover,
.app-menu-link:focus {
    background-color: #f1f6fb;
    color: #2c5282;
    border-left-color: #4a8ecc;
    text-decoration: none;
}
.app-menu-link::before {
    content: "\e001"; /* default glyphicon (placeholder) */
    font-family: 'Glyphicons Halflings';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a8aa0;
    font-size: 12px;
    transition: color 0.15s ease;
    font-weight: normal;
}
.app-menu-link:hover::before {
    color: #4a8ecc;
}

/* Icon per menu via data-icon */
.app-menu-link[data-icon="folder-open"]::before  { content: "\1f4c2"; }
.app-menu-link[data-icon="phone"]::before        { content: "\e145"; }
.app-menu-link[data-icon="lock"]::before         { content: "\e033"; }
.app-menu-link[data-icon="qrcode"]::before       { content: "\e039"; }
.app-menu-link[data-icon="tower"]::before        { content: "\e086"; }
.app-menu-link[data-icon="bullhorn"]::before     { content: "\e122"; }
.app-menu-link[data-icon="book"]::before         { content: "\e043"; }
.app-menu-link[data-icon="log-out"]::before      { content: "\e163"; }

.app-menu-link-logout {
    margin-top: 4px;
    border-top: 1px solid #eef2f6;
    color: #a85b5b;
}
.app-menu-link-logout:hover,
.app-menu-link-logout:focus {
    background-color: #fdf3f2;
    color: #8a3a3a;
    border-left-color: #c66262;
}
.app-menu-link-logout::before {
    color: #c08585;
}

/* ---------- Main content ---------- */
.app-main {
    padding-left: 18px;
    padding-right: 0;
}
.app-main-inner {
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    padding: 18px 22px;
    min-height: 600px;
}

/* Legacy 180px table-cell heading spacer used in Password / TwoFactor / Company pages */
.app-main-inner > .row > div[style*="height:180px"],
.app-main-inner > .row > div[style*="height: 180px"] {
    height: auto !important;
    display: block !important;
    vertical-align: baseline !important;
    margin-bottom: 12px;
}
.app-main-inner > .row > div[style*="height:180px"] > h3,
.app-main-inner > .row > div[style*="height: 180px"] > h3 {
    margin: 0 0 4px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #d6e1ee;
    color: #2c5282;
    font-weight: 600;
}

/* Headings within content (do not affect manual page which sets its own) */
.app-main-inner h2,
.app-main-inner h3 {
    color: #2c3e50;
}

/* Tables soft refresh */
.app-main-inner .table {
    background: #ffffff;
}
.app-main-inner .table > thead > tr > th,
.app-main-inner .table > thead.info > tr > th,
.app-main-inner .table > thead > tr.info > th {
    background-color: #f5f8fb;
    color: #2c5282;
    border-bottom: 2px solid #d6e1ee;
    font-weight: 600;
    letter-spacing: 0.02em;
}
.app-main-inner .table-hover > tbody > tr:hover {
    background-color: #f5f8fb;
}

/* Buttons soft refresh */
.app-main-inner .btn-link {
    border-radius: 4px;
    padding: 6px 10px;
    transition: background-color 0.15s ease;
}
.app-main-inner .btn-link:hover,
.app-main-inner .btn-link:focus {
    background-color: #eef4fa;
    text-decoration: none;
}

/* Breadcrumb area */
.breadcrumb-row {
    background: #f5f8fb;
    border: 1px solid #e5e9f0;
    border-radius: 6px;
    padding: 8px 14px;
    margin-left: 0;
    margin-bottom: 10px;
}
.breadcrumb-row h4 {
    margin: 0;
    font-size: 14px;
    color: #4a5568;
    font-weight: 500;
}
.breadcrumb-row a {
    color: #2c5282;
    font-weight: 600;
}
.breadcrumb-row a:hover {
    color: #1f3d62;
    text-decoration: none;
}

/* Modal soft refresh */
.modal-content {
    border: none;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.modal-header {
    background: #f5f8fb;
    border-bottom: 1px solid #e5e9f0;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.modal-title {
    color: #2c5282;
    font-weight: 600;
}

/* Override container width to use viewport responsively */
@media (max-width: 1450px) {
    .container {
        width: 100% !important;
        max-width: 1400px;
    }
}

/* =====================================================================
   Home page toolbar refresh
   ===================================================================== */

/* Reset legacy table-cell / fixed-height layout */
.home-toolbar-shell {
    height: auto !important;
    display: block !important;
    vertical-align: baseline !important;
    padding: 4px 0 0 0;
}

.home-toolbar-spacer {
    height: 4px !important;
}

/* The row that holds the action items becomes a flex toolbar card */
.home-toolbar-shell > .row:has(> .home-toolbar-item) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    padding: 8px 12px;
    margin: 0 0 12px 0;
}

.home-toolbar-item {
    float: none !important;
    display: inline-flex;
    align-items: center;
    margin: 0 !important;
}

.home-toolbar-item form {
    margin: 0;
}

.home-toolbar-item h4 {
    margin: 0;
}

/* Action buttons: turn the legacy btn-link into pill-style action buttons */
.btn-upload,
.btn-dirCreate,
.btn-thumbCreate {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    font-weight: 600;
    padding: 7px 14px !important;
    border-radius: 999px !important;
    border: 1px solid transparent !important;
    background-color: #f1f6fb !important;
    color: #2c5282 !important;
    text-decoration: none !important;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
    line-height: 1.4 !important;
}

.btn-upload .glyphicon,
.btn-dirCreate .glyphicon,
.btn-thumbCreate .glyphicon {
    top: 0;
    font-size: 13px;
    margin-right: 2px;
    color: inherit;
}

/* Slight icon spacing fix for the double-icon dir-create button */
.btn-dirCreate .glyphicon + .glyphicon {
    margin-left: -2px;
    margin-right: 4px;
}

.btn-upload:hover,
.btn-upload:focus,
.btn-dirCreate:hover,
.btn-dirCreate:focus,
.btn-thumbCreate:hover,
.btn-thumbCreate:focus {
    background-color: #2c5282 !important;
    color: #ffffff !important;
    border-color: #2c5282 !important;
    box-shadow: 0 1px 3px rgba(44, 82, 130, 0.25);
    text-decoration: none !important;
}

/* Primary (upload) is highlighted */
.btn-upload {
    background-color: #2c5282 !important;
    color: #ffffff !important;
    border-color: #2c5282 !important;
}
.btn-upload:hover,
.btn-upload:focus {
    background-color: #1f3d62 !important;
    border-color: #1f3d62 !important;
}

/* Breadcrumb row inside toolbar shell: keep modern pill look defined earlier */
.home-toolbar-shell .breadcrumb-row {
    margin: 0 0 8px 0;
}
.home-toolbar-shell .breadcrumb-row h4 {
    line-height: 1.6;
}

/* Hide the lower spacer row so the toolbar sits compactly */
.home-toolbar-shell > .row:last-child > .home-toolbar-spacer {
    height: 0 !important;
}


/* ---------- Auth pages (Login / Two-factor) modern card ---------- */
.app-auth-body {
    background: linear-gradient(135deg, #eef3f9 0%, #f8fafc 60%, #ffffff 100%);
    min-height: 100vh;
    margin: 0;
    font-family: 'Inter',
                 'Noto Sans JP',
                 'BIZ UDPGothic',
                 'Yu Gothic UI', 'Hiragino Sans', 'Hiragino Kaku Gothic ProN',
                 'Meiryo',
                 'Helvetica Neue', Arial, sans-serif;
    color: #2f3a4a;
}
.app-auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}
.app-auth-card {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border: 1px solid #e5e9f0;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(44, 82, 130, 0.10), 0 2px 6px rgba(0, 0, 0, 0.04);
    padding: 36px 44px 32px;
}
.app-auth-brand {
    text-align: center;
    margin: 8px 0 26px;
    padding: 6px 0 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
}
.app-auth-brand img {
    height: 64px;
    width: auto;
    margin: 0;
    opacity: 0.95;
}
.app-auth-brand .app-auth-product {
    font-size: 19px;
    font-weight: 600;
    color: #1f3d62;
    letter-spacing: 0.02em;
}
.app-auth-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f3d62;
    margin: 0 0 6px;
    text-align: center;
}
.app-auth-subtitle {
    font-size: 13px;
    color: #6b7785;
    margin: 0 0 20px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.app-auth-card .form-group {
    margin: 0 auto 14px;
    max-width: 300px;
}
.app-auth-card .app-auth-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
    text-align: left;
}
.app-auth-card .form-control {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #d6dde6;
    box-shadow: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    width: 100%;
    display: block;
}
.app-auth-card .form-control:focus {
    border-color: #4a8ecc;
    box-shadow: 0 0 0 3px rgba(74, 142, 204, 0.18);
}
.app-auth-card .app-auth-code {
    text-align: center;
    letter-spacing: 0.4em;
    font-size: 20px;
    font-weight: 600;
}
.app-auth-card .app-auth-remember {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #4a5568;
    margin: 4px auto 18px;
    max-width: 300px;
}
.app-auth-card .app-auth-remember input[type="checkbox"] {
    margin: 0;
}
.app-auth-card .app-auth-submit {
    display: block;
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
    height: 44px;
    border-radius: 8px;
    background-color: #2c7be5;
    border-color: #2c7be5;
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background-color 0.15s, box-shadow 0.15s;
}
.app-auth-card .app-auth-submit:hover,
.app-auth-card .app-auth-submit:focus {
    background-color: #1f63c0;
    border-color: #1f63c0;
    box-shadow: 0 4px 12px rgba(44, 123, 229, 0.25);
    color: #fff;
}
.app-auth-card .app-auth-submit[disabled],
.app-auth-card .app-auth-submit[disabled]:hover {
    background-color: #a9c4ea;
    border-color: #a9c4ea;
    box-shadow: none;
    cursor: not-allowed;
}
.app-auth-card .alert {
    border-radius: 8px;
    font-size: 13px;
    padding: 10px 12px;
    margin-bottom: 16px;
}
.app-auth-card .field-validation-error {
    display: block;
    color: #c53030;
    font-size: 12px;
    margin-bottom: 6px;
}
.app-auth-footer {
    margin-top: 18px;
    text-align: center;
    font-size: 12px;
    color: #8593a3;
}

/* ---------- Account / Company info pages (マニュアルと統一: カードなし) ---------- */
.account-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 10px 0 40px 0;
    color: #333;
}
.account-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e7e7e7;
}
.account-header h1 {
    margin: 0 0 6px 0;
    font-size: 28px;
    font-weight: 600;
}
.account-header .account-lead {
    margin: 0;
    color: #666;
    font-size: 14px;
}
.account-body {
    padding: 0 4px;
}
.account-form {
    max-width: 480px;
}
.account-form .form-group {
    margin-bottom: 14px;
}
.account-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 6px;
    letter-spacing: 0.02em;
}
.account-code {
    text-align: center;
    letter-spacing: 0.4em;
    font-size: 20px;
    font-weight: 600;
    max-width: 220px;
}
.account-actions {
    margin-top: 18px;
}
.account-info-table {
    width: 100%;
    max-width: 560px;
    margin: 0;
}
.account-info-table > thead > tr > th,
.account-info-table > tbody > tr > td {
    vertical-align: middle;
}
.account-section {
    margin-bottom: 24px;
}
.account-section h2 {
    margin: 0 0 10px 0;
    padding-left: 10px;
    border-left: 4px solid #337ab7;
    font-size: 17px;
    font-weight: 600;
    color: #2a2a2a;
}
.twofactor-qr {
    margin: 4px 0 16px;
}
.twofactor-qr img {
    max-width: 220px;
    height: auto;
}
/* 2段階認証 設定ブロック */
.twofactor-setup {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    align-items: flex-start;
    background: #fafafa;
    border: 1px solid #e7e7e7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    max-width: 720px;
}
.twofactor-setup-qr {
    flex: 0 0 auto;
    text-align: center;
}
.twofactor-setup-qr img {
    max-width: 200px;
    height: auto;
    background: #fff;
    padding: 6px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}
.twofactor-setup-qr .twofactor-setup-qr-caption {
    margin-top: 6px;
    font-size: 12px;
    color: #666;
}
.twofactor-setup-info {
    flex: 1 1 260px;
    min-width: 240px;
}
.twofactor-setup-info .form-group {
    margin-bottom: 12px;
}
.twofactor-setup-info .form-control[readonly] {
    background: #fff;
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px;
}
.twofactor-uri-details {
    margin-top: 4px;
    font-size: 12px;
    color: #555;
}
.twofactor-uri-details > summary {
    cursor: pointer;
    color: #337ab7;
    outline: none;
    margin-bottom: 6px;
}
.twofactor-verify {
    max-width: 360px;
}
.twofactor-verify .account-code {
    max-width: 200px;
}
/* 2段階認証 設定済みステータス */
.twofactor-status {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 560px;
    padding: 18px 22px;
    background: #f3faf5;
    border: 1px solid #cce8d4;
    border-radius: 8px;
    margin-bottom: 18px;
}
.twofactor-status-icon {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #3c763d;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}
.twofactor-status-body {
    flex: 1 1 auto;
    min-width: 0;
}
.twofactor-status-title {
    margin: 0 0 2px 0;
    font-size: 16px;
    font-weight: 600;
    color: #2a2a2a;
}
.twofactor-status-text {
    margin: 0;
    font-size: 13px;
    color: #5b6b5d;
}
.twofactor-disable {
    max-width: 560px;
    padding: 14px 18px;
    border: 1px solid #f0dcb0;
    background: #fdf8ec;
    border-radius: 8px;
}
.twofactor-disable-text {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #6b5a2b;
}
.loading-cell {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.app-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-top-color: #337ab7;
    border-radius: 50%;
    animation: app-spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 4px;
}
@keyframes app-spin {
    to { transform: rotate(360deg); }
}
.loading-dots::after {
    content: '';
    display: inline-block;
    width: 1em;
    text-align: left;
    animation: app-dots 1.2s steps(4, end) infinite;
}
@keyframes app-dots {
    0%   { content: ''; }
    25%  { content: '.'; }
    50%  { content: '..'; }
    75%  { content: '...'; }
    100% { content: ''; }
}
/* リネーム直後のファイル行を一時的にハイライト */
.file-rename-highlight {
    animation: file-rename-highlight-fade 6s ease-out forwards;
}
@keyframes file-rename-highlight-fade {
    0%   { background-color: #fff3a8; box-shadow: inset 0 0 0 2px #f0c419; }
    70%  { background-color: #fff3a8; box-shadow: inset 0 0 0 2px #f0c419; }
    100% { background-color: transparent; box-shadow: inset 0 0 0 0 transparent; }
}


